wails/v2/internal/frontend
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
..
desktop fix(v2/linux): fix crash on panic in JS-bound Go methods (#4855) 2026-01-25 12:38:58 +11:00
devserver fix: correct message type to TextMessage 2025-04-15 15:42:10 +08:00
dispatcher feat: add option to disable panic recovery in message processing 2025-03-13 00:06:07 +00:00
originvalidator [V2] Add origin verification for bindings (#4480) 2025-08-13 08:50:23 +10:00
runtime Fixed HMTL DnD 2025-11-08 12:00:17 +11:00
utils [V2] add url validation for BrowserOpenURL (#4484) 2025-08-12 20:12:10 +10:00
calls.go [chore] lint fixes 2023-11-12 12:30:49 +11:00
dispatcher.go [windows-x] Update events system to accommodate dev build 2021-08-25 20:54:05 +10:00
events.go Add single listener deregistration (#1969) 2022-10-23 09:03:37 +11:00
frontend.go [chore] lint fixes 2023-11-12 12:30:49 +11:00