After the javascriptcoregtk4.1 2.44.0-2.fc39 update, Eclipse keeps crashing every time it will try to render HTML. Reproducible: Always Steps to Reproduce: 1. Open Eclipse in a Wayland session. 2. Open any Java source file. 3. Hover over a Java class or method from the base class library like String to shot its javadoc 4. The UI hangs and a few second later it crashes. Actual Results: Eclipse crashed completely Expected Results: A Javadoc tooltip is shown. Running Eclipse with the X11 backed instead of Wayland with GDK_BACKEND=x11 is a workaround.
Created attachment 2023056 [details] Java crash log
The Java crash report is missing function names and line numbers, so not very useful. Try to take the stack trace manually using gdb: https://handbook.gnome.org/issues/stack-traces.html. Don't worry about all the confusing Java frames in the backtrace; we just care about the C and C++ stuff on top.
Created attachment 2023091 [details] Stack frames obtained with gdb
Well you didn't follow the instructions properly, but in this case it was good enough. There's only two places it can be crashing: void AcceleratedBackingStoreDMABuf::ensureGLContext() { if (m_gdkGLContext) return; GUniqueOutPtr<GError> error; #if USE(GTK4) m_gdkGLContext = adoptGRef(gdk_surface_create_gl_context(gtk_native_get_surface(gtk_widget_get_native(m_webPage.viewWidget())), &error.outPtr())); #else m_gdkGLContext = adoptGRef(gdk_window_create_gl_context(gtk_widget_get_window(m_webPage.viewWidget()), &error.outPtr())); #endif if (!m_gdkGLContext) g_error("GDK is not able to create a GL context: %s.", error->message); if (!gdk_gl_context_realize(m_gdkGLContext.get(), &error.outPtr())) g_error("GDK failed to realize the GL context: %s.", error->message); } You'll see an error message in your journal (or in your terminal if you run Eclipse from a terminal). Please post the error message. Then we can move this to an upstream issue tracker (likely WebKit Bugzilla, or maybe the GTK issue tracker).
Created attachment 2023132 [details] stack with debuginfo Sorry I missed the message: Missing separate debuginfos, use: dnf debuginfo-install webkit2gtk4.1-2.44.0-2.fc39.x86_64 And the only stack trace it generated was the one at the start of the gdb session. Retried before installing the debuginfo and this time it generated fine The message before the crash is: (Eclipse:26511): Gdk-CRITICAL **: 12:06:11.663: gdk_window_create_gl_context: assertion 'GDK_IS_WINDOW (window)' failed
Let me add that it crashes only on tooltips with HTML, not on the Javadoc view that is displayed on a portion of the main window.
(In reply to Robert Marcano from comment #5) > The message before the crash is: > > (Eclipse:26511): Gdk-CRITICAL **: 12:06:11.663: > gdk_window_create_gl_context: assertion 'GDK_IS_WINDOW (window)' failed Huh, wow, OK. Next step is to report this on WebKit Bugzilla. Select the WebKitGTK component.
Great, thanks.
*** Bug 2271558 has been marked as a duplicate of this bug. ***