-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Windows (v3): Sometimes clicking the systray notifcation menu icon crashes #4151
Comments
I'm guessing that there's a race condition between the popup being drawn and the TrackPopupMenu call. We could incorporate a debounce. Was it the button to show the menu over and over again? |
So, I can confirm that the issue with being unable to "click off" the menu seems to be a Windows bug (I can reproduce this with Windows Defender, and it actually pops the menu "under" the taskbar.) But I think we should be able to avoid a crash in this case still. Screen.Recording.2025-03-19.at.3.42.54.PM.mov |
On MacOs on a fresh install of a wails3 project, following the docs for the systray also crashes the program when clicking outside of the application. Screen.Recording.2025-03-26.at.23.01.23.mov(the recording doesn't show the mouse icon changes to a loading icon when hovering over the wails app) System┌──────────────────────────────────────────────────┐ Build EnvironmentWails CLI | v3.0.0-alpha.9 Go Version | go1.24.1 |
Description
All I did was run the systray-menu example and click the icon over and over. Eventually it crashes. (I've seen this behavior in our own app too without repeatedly clicking the icon. Probably some kind of race.)
https://discord.com/channels/1042734330029547630/1351996470974484632
To Reproduce
cd v3/examples/systray-menu
go run .
Expected behaviour
No crashes :)
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
No response
The text was updated successfully, but these errors were encountered: