-
Notifications
You must be signed in to change notification settings - Fork 166
[Win32] Shell image broken #2037
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
Comments
It looks like this behavior is not fixed, but changes during runtime (an invalid image can turn into a correct one). |
@HeikoKlare Could this bug be resolved with your commit 28fdeb6? |
To be honest, I cannot say whether that commit might have fixed it. The mentioned commit fixes a slight change in behavior that was introduced in the recent months, but without knowing which commit extractly introduced the behavior you report and without being able to properly reproduce it, it's hard to say whether it is fixed now 😟 |
@tmssngr Can you please reevaluate with latest master state? We are not able to reproduce the issue. For a reproduction, please also report all relevant configuration (monitor setups, zoom, SWT configuration like autoscale etc.). It's likely that this is somehow related to specific autoscale settings and monitor zooms, but hard to analyze without knowing about the actual settings. |
I just added a Workaround to #2139. In there, I mention if the window is not minimized then the issue does not occur. You could try that @tmssngr and see if that's also the case for you (i.e. in this issue). I assume we're all talking about the exact same issue, it's just tricky to nail it down. |
I was not able to reliably reproduce the problem. After having switched to SWT commit b8dd804, I suggest to close this ticket for now and will reopen it if the problem occurs again. |
This issue was there before the issue fixed with #2139 was introduced, so rather unlikely that the fix affected this PR. Still, there were so many changes to images that it might just have a been a "bad" development state in which the original issue occurred. |
First thing I would do is to collect all information on how to reproduce so that we can easily start debugging, i.e, the version of SWT, all zoom- and auto-scale-related settings, the workflow to achieve that result, ... |
IIRC, I wrote that the problem is not reproducible reliably. Is there some assertion which can be added when setting the image to the shell? |
I also see some missing icons at the Eclipse item in the Windows toolbar and IIRC also for the shell. |
I’ve seen this too but it comes and goes and is currently gone. My main monitor is at 100%. |
Do you know whether that might have been #2139 or is/was it something different?
I have to admit if all shell images (shell itself, application switch preview, taskbar etc.) are retrieved from the same image instance set at the same place. If that's the case, it is probably set via |
@tmssngr Is the version of SWT with this issue in the latest version of SmartGit Preview? Does it occur in the main SG Shell or a child Shell? Any more clues (screen resolution, scaling?) |
The latest SmartGit 25.1 preview build is based on b8dd804. The problem did not occur with the SWT build used in SmartGit 24.1. I have seen it for top level shells on Windows. My Windows machines use 150% and 175% zoom. |
Note that the mentioned commit is affected by #2139. |
I just have one monitor here. So you suggest this bug might be fixed by updating to latest master? |
It might. The version you refer to definitely contained a bug regarding program icons (as documented in the referenced issue). Whether or nor that's the cause for the behavior you have faced is hard to say. |
I've heavily tested against this issue on latest master state:
I was not able to produce a broken shell image in any of the use cases. |
I've also not seen this in days... |
So cherry-picking d12ad69 would be sufficient to get the fix? After the regressions I had the last 3 times I've upgraded SWT, I'm somewhat reluctant to update to the most bleeding edge state. |
It will resolve #2139. Since there is no reproduction for your exact issue, it's hard to say whether it fixes your issue.
To be honest, I really don't like such "passive aggresive" formulations. Which regressions do you refer to? Note that you seem to have always updated to development states, so there may of course be issues in such states. We have just reached M3, so the current master state will be (almost) equal to what the next release contains. |
I'm cherry-picking d12ad69 and will report after a couple of daily usage whether the missing app icons still appear. |
Unfortunately, having cherry-picked d12ad69 did not fix the broken shell image problem for me. |
Describe the bug
After having upgraded SWT from commit 1ced8a9 to 3670670 in our application it happens occasionally that the image for some shell is missing.
To Reproduce
Unfortunately, I have not yet found a way to reproduce it reliably.
Expected behavior
The set image should be used. It work without problem until at least commit 1ced8a9.
Screenshots

Environment:
Windows 11
The text was updated successfully, but these errors were encountered: