Skip to content

Log an error, when GC with Image in unsupported use cases #204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
akoch-yatta opened this issue Jan 21, 2025 · 6 comments · May be fixed by eclipse-platform/eclipse.platform.swt#1979
Open
Assignees
Labels
Enhancement A Request for an Enhancement of an Existing Feature HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT
Milestone

Comments

@akoch-yatta
Copy link

akoch-yatta commented Jan 21, 2025

We should log an error or at least a warning when creating a GC on any image that is not supposed to be used for modifying it. This includes at least:

  • all dynamic images (retrieved via any of the existing providers) except ImageGcDrawer
  • all images for which handles in other zoom values have already been created
@akoch-yatta akoch-yatta converted this from a draft issue Jan 21, 2025
@akoch-yatta akoch-yatta added SWT Issue for SWT HiDPI A HiDPI-Related Issue or Feature Enhancement A Request for an Enhancement of an Existing Feature labels Jan 21, 2025
@akoch-yatta akoch-yatta added this to the 4.36 M1 milestone Jan 21, 2025
@ShahzaibIbrahim ShahzaibIbrahim self-assigned this Apr 1, 2025
@ShahzaibIbrahim ShahzaibIbrahim moved this from 🔖 Ready: Atomic to 🏗 In Work: Short in HiDPI Apr 1, 2025
@ShahzaibIbrahim ShahzaibIbrahim moved this from 🏗 In Work: Short to 👀 In Review in HiDPI Apr 2, 2025
@ShahzaibIbrahim
Copy link

For the case where we use initialize Image with GC with providers we see spam of logs due to scaleToUsingSmoothScaling method used in ImageFileNameProvider and ImageDataProviders. For now we hold it, until we find a way to scale image smoothly in providers without using GC.

@fedejeanne fedejeanne modified the milestones: 4.36 M1, 4.36 M2 Apr 16, 2025
@ShahzaibIbrahim ShahzaibIbrahim moved this from 👀 In Review to ❌ Blocked in HiDPI Apr 23, 2025
@ShahzaibIbrahim
Copy link

Currently blocked, see eclipse-platform/eclipse.platform.swt#1979 (review)

@HeikoKlare
Copy link
Contributor

What is the prerequisite for unblocking this issue?

@ShahzaibIbrahim
Copy link

@HeikoKlare There are two things actually.

  1. We cant log an error in case when GC is used for Images created with ImageProvider because we do it in Smooth scaling all the time and that floods the logs.
  2. There was a debate between you and christoph whether to throw an error or just log a warning and from the conversation I am not sure if we have a conclusion yet.

If I know the answer of these two, this ticket will be unblocked.

@HeikoKlare
Copy link
Contributor

The problem is: I don't see that we have any trigger for the two mentioned issues being resolved or at least worked on, so this will probably remain blocked forever. Let's put this on the weekly topic list for short discussion and finding an agreement how to proceed.

@HeikoKlare
Copy link
Contributor

Todo:

  • Guard the warning behind SWT strict checks
  • Solve the issue with reporting unsupported use case in smooth scaling

@HeikoKlare HeikoKlare moved this from ❌ Blocked to 🔖 Ready: Atomic in HiDPI Apr 28, 2025
@ShahzaibIbrahim ShahzaibIbrahim moved this from 🔖 Ready: Atomic to 👀 In Review in HiDPI May 2, 2025
@fedejeanne fedejeanne modified the milestones: 4.36 M2, 4.36 M3 May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement A Request for an Enhancement of an Existing Feature HiDPI A HiDPI-Related Issue or Feature SWT Issue for SWT
Projects
Status: 👀 In Review
Development

Successfully merging a pull request may close this issue.

4 participants