Bug 563990

Summary: [GTK][webkit] Eclipse freezes sometimes when showing proposals
Product: [Eclipse Project] Platform Reporter: Alexander Suter <alexander.suter>
Component: SWTAssignee: Platform-SWT-Inbox <platform-swt-inbox>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: christian.strebel, loskutov, reguel.wermelinger, simeon.danailov.andreev
Version: 4.15   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=564911
https://bugs.eclipse.org/bugs/show_bug.cgi?id=569853
Whiteboard:
Attachments:
Description Flags
Threaddump
none
JVM Crash after taking a thread dump none

Description Alexander Suter CLA 2020-06-05 10:04:17 EDT
Created attachment 283178 [details]
Threaddump

Eclipse is freezing when showing proposals in Java Editor. It seems that it want to show a swt webkit browser.

We built a product out of the eclipse platform and have implemented an own "Web Editor" which is based on a JavaFX. As soon as this was in charge eclipse freezes when showing proposals in the Java Editor.

JavaFX changes the name of the 'main'-Thread to "JavaFX Application Thread". This is not very nice, but maybe no problem at all?

It seems that somewhere here is something strange:
org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)

I think its a locking issue in webkit, but I'm not really sure ...

Have a look at the ThreadDump.
Comment 1 Andrey Loskutov CLA 2020-06-05 10:39:53 EDT
Please provide exact Eclipse, GTK3 and webkit versions you are using.
Comment 2 Alexander Suter CLA 2020-06-05 10:47:13 EDT
Eclipse: 4.15.0.v20200305-0155
GTK: org.eclipse.swt.internal.gtk.version=3.24.18 / libgtk-3-0:amd64 3.24.18-1ubuntu1 amd64
WebKit: org.eclipse.swt.gtk.linux.x86_64 / 3.114.0.v20200304-0601
Comment 3 Alexander Suter CLA 2020-06-05 10:56:04 EDT
But the thread dump is from an older version of eclipse. At the moment I'm not able to take a thread dump anymore, because the jvm is crashing (bug in jvm). I will try to take another one, somehow. But its maybe the same place where the application is hanging.
Comment 4 Andrey Loskutov CLA 2020-06-05 10:57:25 EDT
Please attach JVM crash log file.
Comment 5 Alexander Suter CLA 2020-06-05 11:02:01 EDT
Created attachment 283179 [details]
JVM Crash after taking a thread dump

When creating a thread dump jvm is crashing. Therefore I have reported a bug report: https://github.com/AdoptOpenJDK/openjdk-support/issues/122
Comment 6 Alexander Suter CLA 2020-06-08 05:41:47 EDT
The AdoptOpenJDK team has closed the issue https://github.com/AdoptOpenJDK/openjdk-support/issues/122. The assumption is that this must be fixed in the native libraries of eclipse.
Comment 7 Alexander Suter CLA 2020-08-03 07:48:29 EDT
As stated in https://github.com/AdoptOpenJDK/openjdk-support/issues/122 the root cause seems to be in Eclipse or the product (Axon.ivy).
Comment 8 Simeon Andreev CLA 2020-12-21 04:16:59 EST
(In reply to Alexander Suter from comment #7)
> As stated in https://github.com/AdoptOpenJDK/openjdk-support/issues/122 the
> root cause seems to be in Eclipse or the product (Axon.ivy).

The first SWT commit that I can see the jstack crash with is: https://git.eclipse.org/c/platform/eclipse.platform.swt.git/commit/?id=558be9a19c6de3c914ccbed0ac541d5c849bf1f5

Probably best to move this discussion in a separate ticket though.