Created attachment 622 [details]
Simple source for a test case, run Renderer.java
When using the NewtCanvasAWT bridge class on Mac OSX with Java 7 only the first opened window will have a valid OpenGL canvas. The second or more windows only show a default window fill.
This only seems to affect Mac OSX and works correctly with the Apple provided Java 6 JRE, but not Oracle Java 7 (we have not tried Java 8).
Attached is a fairly simple test case (a stripped down version of the Jaamsim renderer) that tries to open 3 red windows.
Add unit tests demonstrating multiple NewtCanvasAWT instances are working
Enhance following performance test cases, adding NewtCanvasAWT,
beside GLCanvas and GLJPanel, 25 instances:
Adding simple com.jogamp.opengl.test.junit.newt.TestMultipleNewtCanvasAWT
w/ two instances.
Manually tested on GNU/Linux and OSX (java7 and java8).
This bug report is invalid.
@Matt: I glanced over your ZIP file contents and did not try it, since:
- too complex (not containing minimal use case)
- not a unit test
Okay, we found our problem.
You are right, it was not a JOGL bug, instead we were foolishly setting the AWT frame visible from a thread that wasn't the AWT event thread.
It does seem like a very unexpected failure case for that though.