[Webkit-unassigned] [Bug 243401] [GTK] webkit_web_context_get_default() crashes in Eclipse since webkit-gtk v2.36.5, v2.36.4 was fine

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 1 09:50:42 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=243401

Kristóf Marussy <kristof at marussy.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kristof at marussy.com

--- Comment #6 from Kristóf Marussy <kristof at marussy.com> ---
It looks like Eclipse uses the "main" JVM thread (where the Java main function is called) as the UI thread. However, this thread is not the main OS thread of the Eclipse process (i.e., the one running the C main function of the JVM). For example, when I ran Eclipse to test this, the Eclipse instance got the PID 65892, but the JVM thread dump (from VisualVM) indicated the LWP 65898 as the "main" JVM thread. Indeed, LWP 65898 is the second thread spawned by PID 65892, while LWP 65892 is of course the main OS thread. Therefore, it might be impossible for Eclipse to use the main OS thread as the UI thread, since that thread is taken for other purposes by the underlying JVM.

Eclipse calls native code (including GTK and WebKit) via JNI on the JVM "main" thread. When I pause Eclipse with a JVM debugger, its "main" JVM thread is sitting in, e.g., a native gtk_main_iteration_do call, happily chugging away on a non-main OS thread.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220801/833eea52/attachment-0001.htm>


More information about the webkit-unassigned mailing list