wails/v2/internal/frontend/desktop
Lea Anthony 7ee2b2d856
fix(v2/linux): fix crash on panic in JS-bound Go methods (#4855)
* fix(v2/linux): fix crash on panic in JS-bound Go methods

WebKit2GTK installs signal handlers after gtk_main() starts, overriding
our SA_ONSTACK fix. This causes Go panics (e.g., nil pointer dereference)
in JS-bound methods to crash with 'non-Go code set up signal handler
without SA_ONSTACK flag'.

Fix by deferring signal handler installation via g_idle_add() to run
after GTK main loop starts, ensuring we fix handlers AFTER WebKit
has installed its own.

Fixes #3965

* docs: add changelog entry for Linux signal handler fix

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-25 12:38:58 +11:00
..
darwin fix(v2): prevent WebView crash on macOS 26 during rapid UI updates (#4806) 2026-01-13 22:05:05 +11:00
linux fix(v2/linux): fix crash on panic in JS-bound Go methods (#4855) 2026-01-25 12:38:58 +11:00
windows Prevent DLL hijacking by setting default DLL directories on initialization (#4207) 2025-09-24 15:44:58 +10:00
desktop_darwin.go [linux] Better Go 1.16 support 2022-01-31 21:21:48 +11:00
desktop_linux.go [linux] get compiling working 2021-11-13 17:06:48 -08:00
desktop_windows.go [linux] Better Go 1.16 support 2022-01-31 21:21:48 +11:00