Skip to content

[Win32] Shell image broken #2037

Open
Open

Description

@tmssngr

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
Image

Environment:

  1. Select the platform(s) on which the behavior is seen:
    • All OS
    • Windows
    • Linux
    • macOS
  1. Additional OS info (e.g. OS version, Linux Desktop, etc)
    Windows 11

Activity

  1. tmssngr commented on Apr 22, 2025

    @tmssngr
    ContributorAuthor

    It looks like this behavior is not fixed, but changes during runtime (an invalid image can turn into a correct one).

  2. tmssngr commented on Apr 24, 2025

    @tmssngr
    ContributorAuthor

    As this screenshot indicates, the icon is set (see hover), but does not show correctly in the status bar
    Image

  3. tmssngr commented on Apr 28, 2025

    @tmssngr
    ContributorAuthor

    @HeikoKlare Could this bug be resolved with your commit 28fdeb6?

  4. HeikoKlare commented on Apr 29, 2025

    @HeikoKlare
    Contributor

    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 😟

  5. HeikoKlare commented on May 13, 2025

    @HeikoKlare
    Contributor

    @tmssngr Can you please reevaluate with latest master state? We are not able to reproduce the issue.
    There was another issue with the program icon used for the shell (#2139), but the issue was introduced after the problematic state you refer to. When doing the fix, we also did not experience your 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.

  6. fedejeanne commented on May 13, 2025

    @fedejeanne
    Member

    There was another issue with the program icon used for the shell (#2139), but the issue was introduced after the problematic state you refer to.

    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.

  7. tmssngr commented on May 13, 2025

    @tmssngr
    ContributorAuthor

    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.

  8. fedejeanne commented on May 13, 2025

    @fedejeanne
    Member

    Hm, ok. I see that you used a commit that does not contain my fix for #2139 (b227750) so it might be indeed some other issue.

    I'm fine with closing this issue until the problem is reproducible.

  9. HeikoKlare commented on May 13, 2025

    @HeikoKlare
    Contributor

    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.

  10. tmssngr commented on May 13, 2025

    @tmssngr
    ContributorAuthor

    Right now the Windows taskbar shows no icon while the shell's left top and the Alt-Tab popup does. Hence I reopen.

    Image
    Is there anything I can debug to understand this problem?

  11. HeikoKlare commented on May 13, 2025

    @HeikoKlare
    Contributor

    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, ...

  12. tmssngr commented on May 13, 2025

    @tmssngr
    ContributorAuthor

    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?

  13. HannesWell commented on May 13, 2025

    @HannesWell
    Member

    I also see some missing icons at the Eclipse item in the Windows toolbar and IIRC also for the shell.
    Currently it doesn't happen, but I'll keep an eye on it. My settings are:
    Win10, 4K-Monitors at 175% zoom, swt.autoScale=quarter and swt.autoScale.method=SMOOTH.

  14. 43 remaining items

  15. HeikoKlare commented on Mar 2, 2026

    @HeikoKlare
    Contributor

    @tmssngr can you share the exact steps to reproduce the issue with a standalone SWT snippet / example?

  16. tmssngr commented on Mar 2, 2026

    @tmssngr
    ContributorAuthor

    No, I could not reproduce the problem with a standalone SWT snippet. My test "procedure" to reliably reproduce it I've reported on Dec 23, 2025 in this thread.

  17. merks commented on Mar 4, 2026

    @merks
    Contributor

    This morning my computer woke up like this:

    Image

    The second icon on the right in the installer which fixes itself by moving it to another monitor:

    Image

    The installer is using these SWT bundles:

    Image
  18. HeikoKlare commented on Mar 4, 2026

    @HeikoKlare
    Contributor

    Thank you for the update. The SWT bundles are obviously up-to-date.

    I invested some time yesterday and tried hard to find a reproducer (sending the laptop to standby with/without monitor of different zoom connected and removing/attaching it while in standby, application placed on either monitor etc.) but everything worked as expected for me. Maybe the behavior even depends on environmental properties like the Windows version or even the standby S states supported by the CPU/firmware...

    I reopen this as it's definitely not fixed and attach the "help wanted" label because

    We are looking for a reproducer

  19. added
    help wantedExtra attention is needed
    WindowsHappens on Windows OS
    bugSomething isn't working
    on Mar 4, 2026
  20. tmssngr commented on Mar 4, 2026

    @tmssngr
    ContributorAuthor

    I did not encounter this bug in combination with sleep/hibernate, but instead the first time after a reboot.

  21. deepika-u commented on Mar 4, 2026

    @deepika-u
    Contributor

    Usually i dont see but i did see this issue. But today when i closed eclipse and freshly relaunched, when the workspace prompt window comes - i did see this like a transient state. But after you select the workspace and say launch, it shows properly and before this screen comes also, its fine.

    Image
  22. deepika-u commented on Mar 4, 2026

    @deepika-u
    Contributor

    when the workspace prompt window comes - i did see this like a transient state. But after you select the workspace and say launch, it shows properly and before this screen comes also, its fine.

    Next relaunch, i didnt see this again. Again after a restart of laptop, attempted multiple relaunches - still couldnt see it again.

  23. jding-tlnd commented on Jun 10, 2026

    @jding-tlnd

    Hi, I'm experiencing this issue on org.eclipse.swt.win32.win32.x86_64_3.133.0.v20260225-1014 while org.eclipse.swt.win32.win32.x86_64_3.124.200.v20231113-1355 seems fine.
    when I open an eclipse rcp product, a login dialog open before workbench start, let's say LogInDialog(PlatformUI.createDisplay().getActiveShell()) , at this time this parentShell is null, after the logInDialog open, the image in taskbar is broken. The workaround seems if change the system display scale, the image get back to the correct one. It seems there has a delay image reset in org.eclipse.swt.widgets.Decorations.handleDPIChange(Event, float) of org.eclipse.swt.win32.win32.x86_64_3.133.0.v20260225-1014.
    Some changes in 3.133 might bring this regression issue.

    Image Image
  24. c36n commented on Jul 21, 2026

    @c36n

    Hi, we are experiencing this issue on Eclipse Version: 2026-06 (4.40.0) with Build id: 20260604-0653 and org.eclipse.swt.win32.win32.x86_64_3.134.0.v20260515-1429. The issue is not consistently reproducible, but it occurs primarily after the system resumes from hibernation or sleep mode. In these cases, the Eclipse toolbar/taskbar icon is sometimes lost and replaced by a generic icon:
    Image

  25. tmssngr commented on Jul 28, 2026

    @tmssngr
    ContributorAuthor

    Could you reliably reproduce the problem, e.g. after reboot/re-login or screen-resolution change?

  26. c36n commented on Jul 28, 2026

    @c36n

    There was no screen resolution change. The last time I encountered this issue was after extracting a zipped Eclipse installation and launching the eclipse.exe from the File Explorer on my secondary monitor. The workspace selection dialog appeared on the primary monitor, and the eclipse icon in the task bar was broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    WindowsHappens on Windows OSbugSomething isn't workinghelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions