Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 540124

Summary: Eclipse hangs in CI when run on VNC
Product: [Eclipse Project] Platform Reporter: Christian Dietrich <christian.dietrich.opensource>
Component: IDEAssignee: Platform-UI-Inbox <Platform-UI-Inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov, daniel_megert, ericwill, loskutov, xixiyan
Version: 4.10   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
See Also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=540106
https://bugs.eclipse.org/bugs/show_bug.cgi?id=540083
Whiteboard:
Attachments:
Description Flags
JStack at hang
none
Another JStack Log none

Description Christian Dietrich CLA 2018-10-15 04:01:13 EDT
Created attachment 276239 [details]
JStack at hang

I am not sure how to correctly address this problem. so i will try to do it with this bug.

we at xtext run ui tests with maven tycho. these tests work fine with eclipse oxygen, photon, 2018-09 and they used to work with 2018-12 as well until recently.

how we have the problem that the test eclipse is stuck after running all tests.

Environment
- Tycho 1.3.0-SNAPSHOT
- Eclipse 4.10 I Builds
- Display is provided via xvncserver

when the shutdown hangs and i connect via vnc client to the display and klick into the window then the eclipse shutdown suddenly works.

are you aware of any changes that could cause the problem?
do you have any hints how to further analyze the problem?

Thanks
Christian
Comment 1 Christian Dietrich CLA 2018-10-15 04:14:36 EDT
steps to reproduce

git clone git@github.com:eclipse/xtext-eclipse.git
cd xtext-eclipse
git checkout -b cd_bug540124 origin/cd_bug540124
vncserver :99
export DISPLAY=:99
mvn clean install -Platest
Comment 2 Christian Dietrich CLA 2018-10-15 04:21:58 EDT
Created attachment 276241 [details]
Another JStack Log
Comment 3 Andrey Loskutov CLA 2018-10-15 06:16:50 EDT
Bug 540106 related?
Comment 4 Andrey Loskutov CLA 2018-10-15 06:19:07 EDT
I wonder if the fix for bug 540083 is causing this?
Comment 5 Christian Dietrich CLA 2018-10-15 06:34:30 EDT
we have other tests that are "stuck".
this problems happens after disable the tests that are stuck
https://github.com/eclipse/xtext-eclipse/issues/862
Comment 6 Alexander Kurtakov CLA 2018-10-15 08:12:38 EDT
(In reply to Andrey Loskutov from comment #3)
> Bug 540106 related?

let's find out and revert the change.
Comment 7 Alexander Kurtakov CLA 2018-10-15 08:16:07 EDT
(In reply to Alexander Kurtakov from comment #6)
> (In reply to Andrey Loskutov from comment #3)
> > Bug 540106 related?
> 
> let's find out and revert the change.

This is not the bug Id I was looking for. Andrey, you mentioned some change that might cause it - what was it?
Comment 8 Andrey Loskutov CLA 2018-10-15 08:33:33 EDT
(In reply to Alexander Kurtakov from comment #7)
> (In reply to Alexander Kurtakov from comment #6)
> > (In reply to Andrey Loskutov from comment #3)
> > > Bug 540106 related?
> > 
> > let's find out and revert the change.
> 
> This is not the bug Id I was looking for. Andrey, you mentioned some change
> that might cause it - what was it?

Bug 540083 patch https://git.eclipse.org/r/#/c/130859/, the code issues some extra GTK call on draw: https://git.eclipse.org/r/#/c/130859/1/bundles/org.eclipse.swt/Eclipse+SWT/gtk/org/eclipse/swt/widgets/Control.java

May be this is what causing GTK wait forever.
Comment 9 Christian Dietrich CLA 2018-10-16 12:42:34 EDT
i an confirm that the new platform from this morning fixes the problem on xtext side
Comment 10 Alexander Kurtakov CLA 2018-10-16 13:13:33 EDT
Marking as resolved as per previous comment.