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

Bug 347742

Summary: XWT locks on initialization with GTK
Product: [Technology] XWT Reporter: Mathieu Velten <mathieu.velten>
Component: CoreAssignee: Project Inbox <e4.xwt-inbox>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: nikita.tikhomirov, yves.yang
Version: unspecified   
Target Milestone: 0.10.0 RC   
Hardware: PC   
OS: Linux-GTK   
Whiteboard:
Attachments:
Description Flags
fix v1
yves.yang: iplog+
fix v2 none

Description Mathieu Velten CLA 2011-05-31 03:56:41 EDT
when XWT loads on linux GTK it fully blocks the eclipse UI, in the checkInitialization method.

after investigating it is because checkInitialization needs the initializers to be initialized, which is done in runInitializers. It is only called from XWTLoaderManager.getDefault, so I deduced that XWTLoaderManager.getDefault should be called before checkInitialization in runOnUIThread and it is not the case for gtk an cocoa.

You can find a patch attached that fix it, but I am not sure it is correct since I don't fully understand the code.
Comment 1 Mathieu Velten CLA 2011-05-31 03:57:07 EDT
Created attachment 196965 [details]
fix v1
Comment 2 Yves YANG CLA 2011-05-31 08:21:14 EDT
Thanks. I'll take care of the integration.
Comment 3 Yves YANG CLA 2011-06-03 03:18:14 EDT
committed in Head -> 20110603
Comment 4 Mathieu Velten CLA 2011-06-06 05:50:23 EDT
Thanks !
Comment 5 Nikita Tikhomirov CLA 2013-06-17 06:46:28 EDT
On source migration this line had disappeared again, I believe the same thing should be now fixed for org.eclipse.xwt.
Comment 6 Nikita Tikhomirov CLA 2013-06-17 07:07:35 EDT
Created attachment 232428 [details]
fix v2
Comment 7 Nikita Tikhomirov CLA 2013-06-17 07:18:08 EDT
BTW, is there any reason why that block of code special for gtk should exist?
Comment 8 Yves YANG CLA 2013-12-12 05:05:09 EST
The fix v2 is applied. Sorry for this error.