You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
systray crashes on macOS due to dual NSApplication run loops #11
Egressor crashes with SIGTRAP: trace trap on macOS when the system tray
is enabled alongside the Wails desktop UI.
The root cause is that systray.Run() starts its own NSApplication run
loop in a goroutine, while Wails already owns the main thread. macOS
requires all UI work to happen on a single main thread — two competing
run loops cause a fatal signal.
github.com/wailsapp/wails/v2/...darwin._Cfunc_RunMainLoop() (goroutine 1, main thread)
The fix is to use systray.Register() instead of systray.Run(). Register() sets up the tray icon and menus but lets the existing run
loop (Wails) handle events, avoiding the conflict.
Activity