@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.
When using the wxWebView functionality for opening links in a new child window the process crashes with a SEGFAULT.
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]
samples/webview sample—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()
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.![]()
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.![]()
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.![]()
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.![]()