Skip to content

Fix tray icon not appearing on Windows 10#364

Merged
kdroidFilter merged 1 commit intomasterfrom
fix/windows10-tray-crash
Feb 3, 2026
Merged

Fix tray icon not appearing on Windows 10#364
kdroidFilter merged 1 commit intomasterfrom
fix/windows10-tray-crash

Conversation

@kdroidFilter
Copy link
Owner

Summary

  • Update winlib submodule: tray_enable_dark_mode() is now guarded with SEH to catch access violations from the undocumented uxtheme.dll ordinal 135 on some Windows 10 builds
  • Catch Throwable instead of Exception in the tray thread to handle java.lang.Error: Invalid memory access
  • Add initLatch.countDown() in finally block as a safety net so the calling thread is never deadlocked and can fall back to AWT gracefully

Fixes #350

- Guard tray_enable_dark_mode() with SEH in native code to catch access
  violations from the undocumented uxtheme.dll ordinal 135
- Catch Throwable (not just Exception) in WindowsTrayManager tray thread
- Move initLatch.countDown() into finally block so the calling thread is
  never deadlocked and can fall back to AWT gracefully
@kdroidFilter kdroidFilter merged commit 3863963 into master Feb 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tray icon doesn't appear on Windows 10

1 participant