Bug 563990 - [GTK][webkit] Eclipse freezes sometimes when showing proposals
Summary: [GTK][webkit] Eclipse freezes sometimes when showing proposals
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 4.15   Edit
Hardware: PC Linux
: P3 normal with 5 votes (vote)
Target Milestone: ---   Edit
Assignee: Platform-SWT-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-05 10:04 EDT by Alexander Suter CLA
Modified: 2020-12-21 05:50 EST (History)
4 users (show)

See Also:


Attachments
Threaddump (86.87 KB, text/plain)
2020-06-05 10:04 EDT, Alexander Suter CLA
no flags Details
JVM Crash after taking a thread dump (364.52 KB, text/x-log)
2020-06-05 11:02 EDT, Alexander Suter CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.