NEWT blocks SWT Thread

classic Classic list List threaded Threaded
4 messages Options
sam
Reply | Threaded
Open this post in threaded view
|

NEWT blocks SWT Thread

sam
hey all,

I have an eclipse RCP application with JOGL. I tried to use the NEWT + NewtSWTCanvas but I had the problem that it somehow blocks the SWT Dispatch thread.

To be more precise:

During rendering I do schedule some Display.asyncExec tasks, but they are never executed. However if I switch to a non NEWT window, all tasks are executes. So the NEWT windows blocks somehow the SWT Dispatch thread.

tested with 2.0-rc11
Win7-64Bit

What can I do?
Reply | Threaded
Open this post in threaded view
|

Re: NEWT blocks SWT Thread

Sven Gothel
Administrator
On 11/28/2012 05:03 PM, samg [via jogamp] wrote:

> hey all,
>
> I have an eclipse RCP application with JOGL. I tried to use the NEWT +
> NewtSWTCanvas but I had the problem that it somehow blocks the SWT Dispatch
> thread.
>
> To be more precise:
>
> During rendering I do schedule some Display.asyncExec tasks, but they are
> never executed.

> However if I switch to a non NEWT window, all tasks are
> executes. So the NEWT windows blocks somehow the SWT Dispatch thread.

We just have fixed an SWT/NEWT deadlock, see bug 628
  <https://jogamp.org/bugzilla/show_bug.cgi?id=628>

>
> tested with 2.0-rc11
> Win7-64Bit

But your report is different, i.e. non execution of the async tasks
which I actually have experienced as well on the Windows platform
with SWT version 4.3.0 M3.

Pls file a new bug report so we can track this issue properly.

>
> What can I do?

Wait until I have fixed it :)

~Sven



signature.asc (909 bytes) Download Attachment
sam
Reply | Threaded
Open this post in threaded view
|

Re: NEWT blocks SWT Thread

sam
ok I will test the next autobuild and if the error still occurs I will create a bug report

thx
sam
Reply | Threaded
Open this post in threaded view
|

Re: NEWT blocks SWT Thread

sam
ok

I have tested the autobuild from 20121127 but it didn't help.

I created a little test setup under :

git@bitbucket.org:sgratzl/jogltest.git

containing a project: testjogl3

the project contains to main classes which should perform the same thing: showing a message box when the context is initialized.

the first  uses the SWT GLcanvas, the other one NEWT -> in the first case the message box will be shown in the other one, it won't. In addition after I close the window it tries to now open the message box but as the display is already disposed it will raise an error

see bug report: https://jogamp.org/bugzilla/show_bug.cgi?id=643