NEW 283681
[GTK] Web inspector web process crashes immediately in WebCore::PlatformDisplayDefault::create
https://bugs.webkit.org/show_bug.cgi?id=283681
Summary [GTK] Web inspector web process crashes immediately in WebCore::PlatformDispl...
Michael Catanzaro
Reported 2024-11-25 09:43:51 PST
Using Epiphany Tech Preview with WebKitGTK 2.47.1, my web inspector is completely broken. It just crashes immediately every time I open it: (gdb) bt #0 __pthread_kill_implementation (threadid=<optimized out>, signo=signo@entry=6, no_tid=no_tid@entry=0) at pthread_kill.c:44 #1 0x00007f858c89ae03 in __pthread_kill_internal (threadid=<optimized out>, signo=6) at pthread_kill.c:78 #2 0x00007f858c84208e in __GI_raise (sig=sig@entry=6) at ../sysdeps/posix/raise.c:26 #3 0x00007f858c829882 in __GI_abort () at abort.c:79 #4 0x00007f858f658b38 in WebCore::PlatformDisplayDefault::create () at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebCore/platform/graphics/egl/PlatformDisplayDefault.cpp:41 #5 0x00007f858dac931b in WebKit::WebProcess::initializePlatformDisplayIfNeeded (this=0x7f857a0340c0) at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:162 #6 0x00007f858dab76c5 in WebKit::DrawingAreaCoordinatedGraphics::updatePreferences (this=0x7f857a0b0f00, store=...) at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp:218 #7 0x00007f858da6b99f in WebKit::WebPage::updateAfterDrawingAreaCreation (this=0x7f857a001200, parameters=...) at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/WebPage.cpp:1136 #8 WebKit::WebPage::WebPage (this=0x7f857a001200, pageID=..., parameters=...) at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/WebPage.cpp:851 #9 0x00007f858da6a086 in WebKit::WebPage::create (pageID=..., parameters=...) at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebPage/WebPage.cpp:501 #10 0x00007f858d886bbd in WebKit::WebProcess::createWebPage (this=0x7f857a0340c0, pageID=..., parameters=...) at /buildstream/gnome/sdk/webkitgtk-6.0.bst/Source/WebKit/WebProcess/WebProcess.cpp:904 Crash is: std::unique_ptr<PlatformDisplayDefault> PlatformDisplayDefault::create() { auto glDisplay = GLDisplay::create(eglGetDisplay(EGL_DEFAULT_DISPLAY)); if (!glDisplay) { WTFLogAlways("Could not create default EGL display: %s. Aborting...", GLContext::lastErrorString()); CRASH(); } It works perfectly fine if I open a private instance. Only my main profile is broken. It's not running in a terminal and it's not printing to my journal, so no way to know what the lastErrorString() is....
Attachments
Michael Catanzaro
Comment 1 2024-11-25 13:05:40 PST
I just ran Epiphany in a terminal for three hours hoping to find what the last error string was, but no luck. The web inspector is working fine now. No crashes. Huh. Maybe we should change this to crash with g_error() so that the error message will be visible in the stack trace.
Note You need to log in before you can comment on or make changes to this bug.