Login  Register

Crash with AWT based windows

Posted by Job Zwiers on Jan 11, 2011; 1:04pm
URL: https://forum.jogamp.org/Crash-with-AWT-based-windows-tp2234133.html

Hi,

After seeing that Jogl2 now has a stable release, I tried to run some webstart demos, and to run Justin's tutorials.
Unfortunately, both the demos and the "Creating a Window" tutorial crash with the message:

 "Java(TM) Platform SE binary has stopped working".  

(But a few demos at the bottom of the list,  using NEWT (I think), ran fine)

System: win 7 , 32bit Java 1.6.0_23, geforece 8800GTS, Nvidia driver 260.99 (WHQL).
(Some other similar system, but with older Java, older drivers, has no problems)

By playing around I found that inserting a short delay before  frame.setVisible(true); helped,
at least, sometimes, when the delay is not  too short. That suggested as timing/synchronization problem.

Running with SwingUtilities.invokeLater also helped.

Is this  a known bug?  Should it matter if I use "InvokeLater", or would it be just an accident that it helped in this case?