Crash on older/low-end CPUs (EXCEPTION_ILLEGAL_INSTRUCTION in WinTray.dll due to AVX instructions)
Nobody has claimed this yet.
- Dominant language
- No language data
- Stars
- 345
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
Hi,The application crashes immediately on startup when trying to initialize the system tray icon. The crash occurs in the com.kdroid.composetray native library (WinTray.dll). Reason for the crash:
The native library appears to be compiled with AVX (Advanced Vector Extensions) support. However, my processor (Intel Celeron G1820) physically lacks AVX support (Intel disabled AVX on Celeron/Pentium CPUs of that generation). As a result, the JVM encounters an EXCEPTION_ILLEGAL_INSTRUCTION (0xc000001d) at the specific AVX instruction vpxor xmm0, xmm0, xmm0 inside WinTray.dll and terminates. Environment details:App Version: 1.2.1 OS: Windows 11, 64 bit Build 22621 CPU: Intel(R) Celeron(R) CPU G1820 @ 2.70GHz (No AVX support) Runtime: OpenJDK Runtime Environment Microsoft-8905927 (21.0.2+13) Relevant part of the stack trace:PlaintextCurrent thread (0x00000235b6da8a50): JavaThread "WindowsTray-Thread" [_thread_in_native, id=5564, stack(0x00000035b8b00000,0x00000035b8c00000) (1024K)]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j com.kdroid.composetray.lib.windows.WindowsNativeBridge.nativeGetNotificationIconsPosition([I)I+0
j com.kdroid.composetray.lib.windows.a.a(Ljava/lang/String;)Z+5
j com.kdroid.composetray.lib.windows.a.a(Lcom/kdroid/composetray/lib/windows/a;Ljava/util/List;)V+161
Instructions: (pc=0x00007ff89c281715)
0x00007ff89c281715: c5 f9 ef c0 48 8d 4d c0 c5 f8 11 45 c0 e8 69 fc
Suggested fix:Please consider recompiling WinTray.dll (or updating the com.kdroid.composetray dependency) with broader CPU architecture targets (e.g., standard SSE4.2 instead of AVX), or adding a fallback mechanism to disable the system tray if the native library fails to load.Thank you!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with hs_err_pid5188.log and the Java frames for WindowsNativeBridge.nativeGetNotificationIconsPosition, then inspect how com.kdroid.composetray loads WinTray.dll. Done means establishing whether the crash is handled in this repository or the dependency and verifying startup on a CPU without AVX.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100