XWT locked on initialization in 4.1 / Linux GTKhttps://www.eclipse.org/forums/index.php/mv/msg/203556/650768/#msg_650768
My pure E4 4.1 application hangs on startup when starting the org.eclipse.e4.xwt bundle : the start method of the activator class calls XWT.runOnUIThread(...), which enters an infinite loop waiting for the XWT initializers to be initialized (XWT.checkInitialization())

The problem seems to be that XWT.checkInitialization() is called on bundle activation, before having initialized XWT, thus locking the calling thread.

Looking at the code of the XWT.runOnUIThread(...), it seems that this behaviour is specific to the GTK & Cocoa platforms.

Any help would be appreciated on how to properly initialize XWT on GTK.

Sun]]>Sun Volland2011-01-26T13:20:01-00:00Re: XWT locked on initialization in 4.1 / Linux GTKhttps://www.eclipse.org/forums/index.php/mv/msg/203556/650867/#msg_650867
fill a bug with a testcase if it is possible.

Regards
Yves
"Sun" <sun.volland@free.fr> wrote in message
news:ihp6na$bfj$1@news.eclipse.org...
> Hi,
>
> My pure E4 4.1 application hangs on startup when starting the
> org.eclipse.e4.xwt bundle : the start method of the activator class calls
> XWT.runOnUIThread(...), which enters an infinite loop waiting for the XWT
> initializers to be initialized (XWT.checkInitialization())
>
> The problem seems to be that XWT.checkInitialization() is called on bundle
> activation, before having initialized XWT, thus locking the calling
> thread.
>
> Looking at the code of the XWT.runOnUIThread(...), it seems that this
> behaviour is specific to the GTK & Cocoa platforms.
>
> Any help would be appreciated on how to properly initialize XWT on GTK.
>
> Sun]]>Yves YANG2011-01-26T23:09:26-00:00Re: XWT locked on initialization in 4.1 / Linux GTKhttps://www.eclipse.org/forums/index.php/mv/msg/203556/650998/#msg_650998

Yves YANG wrote on Wed, 26 January 2011 18:09

We have tested it in GTK with Linux, not on GTK & Cocoa platforms. Please
fill a bug with a testcase if it is possible.

Well I guess I wasn't clear, in this case the problem happens with GTK on Linux (SuSE SLED 11.0 to be precise), and the code looks like the same initialization logic is used for GTK and Cocoa, but I did not try on Cocoa.

That's why I'm not sure it is a bug or an incorrect use of the XWT API.

The test-case is relatively straightforward : it is a pure-E4 application, with a bundle providing an e4-fragment to the E4 application mode. The activator of this bundle references the XWT class (this bundle plugs XWT UIs into the application), causing the org.eclipse.e4.xwt bundle to be loaded by OSGi, triggering it's activator and finally blocking on the checkInitialization() method, causing the app to hang on startup.

For information, the same process works fine with the E4 July 2010 release.

I'm quite new to E4, so if you guess this should still work, I will fill a bug report.

Best regards
Yves YANG
"Sun" <sun.volland@free.fr> wrote in message
news:ihrnoq$h0l$1@news.eclipse.org...
> Yves YANG wrote on Wed, 26 January 2011 18:09
>> We have tested it in GTK with Linux, not on GTK & Cocoa platforms. Please
>> fill a bug with a testcase if it is possible.
>
>
> Well I guess I wasn't clear, in this case the problem happens with GTK on
> Linux (SuSE SLED 11.0 to be precise), and the code looks like the same
> initialization logic is used for GTK and Cocoa, but I did not try on
> Cocoa.
>
> That's why I'm not sure it is a bug or an incorrect use of the XWT API.
>
> The test-case is relatively straightforward : it is a pure-E4 application,
> with a bundle providing an e4-fragment to the E4 application mode. The
> activator of this bundle references the XWT class (this bundle plugs XWT
> UIs into the application), causing the org.eclipse.e4.xwt bundle to be
> loaded by OSGi, triggering it's activator and finally blocking on the
> checkInitialization() method, causing the app to hang on startup.
>
> For information, the same process works fine with the E4 July 2010
> release.
>
> I'm quite new to E4, so if you guess this should still work, I will fill a
> bug report.
>
> Sun]]>Yves YANG2011-01-30T01:10:53-00:00Re: XWT locked on initialization in 4.1 / Linux GTKhttps://www.eclipse.org/forums/index.php/mv/msg/203556/665868/#msg_665868
I have this problem on Cocoa.
What is the bug number for this?

rgds Christophe

On 27-01-11 13:23, Sun wrote:
> Yves YANG wrote on Wed, 26 January 2011 18:09
>> We have tested it in GTK with Linux, not on GTK & Cocoa platforms.
>> Please fill a bug with a testcase if it is possible.
>
>
> Well I guess I wasn't clear, in this case the problem happens with GTK
> on Linux (SuSE SLED 11.0 to be precise), and the code looks like the
> same initialization logic is used for GTK and Cocoa, but I did not try
> on Cocoa.
>
> That's why I'm not sure it is a bug or an incorrect use of the XWT API.
>
> The test-case is relatively straightforward : it is a pure-E4
> application, with a bundle providing an e4-fragment to the E4
> application mode. The activator of this bundle references the XWT class
> (this bundle plugs XWT UIs into the application), causing the
> org.eclipse.e4.xwt bundle to be loaded by OSGi, triggering it's
> activator and finally blocking on the checkInitialization() method,
> causing the app to hang on startup.
>
> For information, the same process works fine with the E4 July 2010 release.
>
> I'm quite new to E4, so if you guess this should still work, I will fill
> a bug report.
>
> Sun]]>Christophe Bouhier2011-04-17T15:09:56-00:00