Community
Participate
Working Groups
Created attachment 284786 [details] Stacktraces of blocking threads We are developing a product based on Eclipse RCP. With Eclipse platform 4.17 our application does not shutdown anymore. With Eclipse platform 4.16 the shutdown still works. We noticed that in Eclipse 4.17 a Display.syncExec() was add to method MenuManagerRenderer.contextDisposed(). It looks like that syncExec() call prevents our application to terminate. We added the stacktraces in the attachments.
Regression from bug 563386. @Hans: could you please provide a simple standalone example demonstrating the problem?
Created attachment 284857 [details] Very small sample to reproduce the bug Here comes a very small bug sample that I stripped down from our code. I also checked the sample code against v4.16 and with v4.16 I see the 'org.eclipse.swt.SWTException: Invalid thread access' issue.
(In reply to Hans Schoen from comment #2) > Created attachment 284857 [details] > Very small sample to reproduce the bug > > Here comes a very small bug sample that I stripped down from our code. > > I also checked the sample code against v4.16 and with v4.16 I see the > 'org.eclipse.swt.SWTException: Invalid thread access' issue. That was the point of the fix for bug 563386, but now we have a deadlock instead :-(. I can reproduce. Amazingly how less code is needed to create a deadlock :-) @Karsten: any objections if we simply replace syncExec() with asyncExec()?
New Gerrit change created: https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/172734
(In reply to Eclipse Genie from comment #4) > New Gerrit change created: > https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/172734 @Alex: that fixes the deadlock, wondering if we should take it into 4.18 RC1?
Gerrit change https://git.eclipse.org/r/c/platform/eclipse.platform.ui/+/172734 was merged to [master]. Commit: http://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=7a122a55c4932a0da80decae4566b2ee89c19582
Thanks Alex.