Login  Register

Re: Thread blocking issue with AWT (but not NEWT) on OSX

Posted by Sven Gothel on Nov 08, 2012; 2:18pm
URL: https://forum.jogamp.org/Thread-blocking-issue-with-AWT-but-not-NEWT-on-OSX-tp4026674p4026826.html

On 11/08/2012 03:49 AM, Sven Gothel wrote:

> On 11/08/2012 03:38 AM, ac [via jogamp] wrote:
>> Well, maybe I should just move to NEWT through NewtCanvasAWT. The deadlock
>> doesn't appear to happen in that case.
>>
>
> Yes, it's more stable - not just in regards to our code,
> but the JRE OSX AWT implementation as well.
>
> However, I will still complete the tests w/ jdk7u-dev
> and try one more workaround - maybe I see something.
>
> I am also sure that the upcoming OSX JRE/AWT release
> will have these things stabilized.
> At least we have source code (OpenJDK) to look at and analyze.
>
Good news, the setTitle, etc bug is not present w/ [openjdk] jdk7u!

On the other hand, I have found a threading bug in AWT GLCanvas
in case other threads injected 'display()' (animator) before
issuing removeNotify(). In that case, the display() is still
processed 'later on' after disposal.
Thanx to your test case, which triggers this situation occasionally.

After fix I will retest w/ jdk6.

> ~Sven


signature.asc (907 bytes) Download Attachment