wxWEBVIEW_WEBKIT2 (GTK3) crashes when opening child Window (master and 3.3.2) (Issue #26298)

23 views
Skip to first unread message

mcorino

unread,
Mar 15, 2026, 3:54:07 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
mcorino created an issue (wxWidgets/wxWidgets#26298)

Description

@vadz While working on the integration of wxWebView in wxRuby3 I encountered a SIGSEGV issue in the the ported WebView sample on opening a link in a new (child) window.
Testing confirmed the same issue happens in the standard wxWidgets samples/webview sample.

Bug description:

When using the wxWebView functionality for opening links in a new child window the process crashes with a SEGFAULT.

Stack trace:

The relevant part of the stack trace is:

/home/martin/.rvm/rubies/ruby-4.0.1/lib/libruby.so.4.0(rb_print_backtrace+0x5) [0x7f483b570a76] /home/martin/.rvm/src/ruby-4.0.1/vm_dump.c:1105
/home/martin/.rvm/rubies/ruby-4.0.1/lib/libruby.so.4.0(rb_vm_bugreport) /home/martin/.rvm/src/ruby-4.0.1/vm_dump.c:1450
/home/martin/.rvm/rubies/ruby-4.0.1/lib/libruby.so.4.0(rb_bug_for_fatal_signal+0x105) [0x7f483b321d55] /home/martin/.rvm/src/ruby-4.0.1/error.c:1131
/home/martin/.rvm/rubies/ruby-4.0.1/lib/libruby.so.4.0(sigsegv+0x42) [0x7f483b49e312] /home/martin/.rvm/src/ruby-4.0.1/signal.c:948
/usr/lib/libjavascriptcoregtk-4.1.so.0(0x7f48160752c1) [0x7f48160752c1]
/usr/lib/libc.so.6(0x7f483ae892d0) [0x7f483ae892d0]
/home/martin/develop/WxRuby/wxRuby3/ext/wxWidgets/install/lib/libwx_gtk3u_webview-3.3.so.3(wxgtk_webview_webkit_ready_to_show+0x109) [0x7f481f792489]
/usr/lib/libgobject-2.0.so.0(g_closure_invoke+0x19c) [0x7f481ccc697c]
/usr/lib/libgobject-2.0.so.0(0x7f481cce57eb) [0x7f481cce57eb]
/usr/lib/libgobject-2.0.so.0(0x7f481cce784f) [0x7f481cce784f]
/usr/lib/libgobject-2.0.so.0(g_signal_emit_valist+0x39) [0x7f481cce7ac9]
/usr/lib/libgobject-2.0.so.0(g_signal_emit+0x94) [0x7f481cce7b84]
/usr/lib/libwebkit2gtk-4.1.so.0(0x7f48176443db) [0x7f48176443db]
/usr/lib/libwebkit2gtk-4.1.so.0(0x7f4817b32ab5) [0x7f4817b32ab5]
/usr/lib/libwebkit2gtk-4.1.so.0(0x7f481769c49c) [0x7f481769c49c]
/usr/lib/libwebkit2gtk-4.1.so.0(0x7f4817b25f48) [0x7f4817b25f48]
/usr/lib/libwebkit2gtk-4.1.so.0(0x7f4817b284e4) [0x7f4817b284e4]
/usr/lib/libjavascriptcoregtk-4.1.so.0(0x7f4816078f9f) [0x7f4816078f9f]
/usr/lib/libjavascriptcoregtk-4.1.so.0(0x7f4816079140) [0x7f4816079140]
/usr/lib/libglib-2.0.so.0(0x7f481bcccf4d) [0x7f481bcccf4d]
/usr/lib/libglib-2.0.so.0(0x7f481bcce617) [0x7f481bcce617]
/usr/lib/libglib-2.0.so.0(g_main_loop_run+0x137) [0x7f481bcce9d7]
/usr/lib/libgtk-3.so.0(gtk_main+0x8f) [0x7f481c56bc0f]

To Reproduce:

  1. Build and run the standard samples/webview sample
  2. Open the context menu on the 'Python' link
  3. Select the option 'Open Link in New Window'
  4. See error

Platform and version information

  • wxWidgets version you use: master and 3.3.2
  • wxWidgets port you use: wxGTK
  • OS and its version: Manjaro Linux
    • GTK version: 3.24.51
    • Which GDK backend is used: X11
    • Desktop environment : KDE


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26298@github.com>

VZ

unread,
Mar 15, 2026, 4:49:10 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26298)

Thanks, I can indeed reproduce this, will look.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26298/4063860275@github.com>

VZ

unread,
Mar 15, 2026, 5:01:33 PM (2 days ago) Mar 15
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26298)

OK, this was because ready-to-show signal was unexpectedly generated twice. I'll push a fix soon and I guess it also should be applied to 3.2.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26298/4063879629@github.com>

mcorino

unread,
Mar 16, 2026, 6:23:04 AM (2 days ago) Mar 16
to wx-...@googlegroups.com, Subscribed
mcorino left a comment (wxWidgets/wxWidgets#26298)

Interestingly any hyperlink opening a new window itself through a javascript call doesn't have this problem I noticed.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issues/26298/4066623485@github.com>

VZ

unread,
Mar 17, 2026, 9:22:04 AM (17 hours ago) Mar 17
to wx-...@googlegroups.com, Subscribed

Closed #26298 as completed via f5ffe79.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/issue/26298/issue_event/23643769177@github.com>

Reply all
Reply to author
Forward
0 new messages