Hi,
Since we upgraded our application to use 1.1.0-b11 from 1.1.0-b10, it occasionally fails to create and initialize GLCanvas.
JOGL prints out the following message:
Error: view width or height == 0at “/Users/kbr/JavaNet/jogl/src/native/jogl/MacOSXWindowSystemInterface.m:createContext:46”
and throws an exception. I’m including the stack trace below.
We cannot reproduce the problem with JOGL 1.1.0-b10 (we’ve been using 1.1.0-b10 since it was released, and never had this problem). I imagine this is likely related to one of the two OS X specific thread issues addressed in b11, but I’m not sure which one.
On some machines this happens about one out of ten times, consistently. On other machines, in happens every time.
(It happens about 1/10 of the time on a dual G5 with a NVIDIA GeForce FX 5200 Ultra running OS X 10.3. Same on a single G5 with a nVidia GeForce4 MX running 10.3. Happens every time on a iBook G4 with 10.4.)
No problems at all on Windows.
Has anyone had the same problem since upgrading to b11? Any ideas?
Thanks,
Andrei
–
Here is the exception and stack trace:
apple.awt.EventQueueExceptionHandler Caught Throwable : net.java.games.jogl.GLException: Error creating nsContext
net.java.games.jogl.GLException: Error creating nsContext
at net.java.games.jogl.impl.macosx.MacOSXGLContext.create(MacOSXGLContext.java:158)
at net.java.games.jogl.impl.macosx.MacOSXGLContext.makeCurrent(MacOSXGLContext.java:168)
at net.java.games.jogl.impl.macosx.MacOSXOnscreenGLContext.makeCurrent(MacOSXOnscreenGLContext.java:118)
at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:246)
at net.java.games.jogl.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:236)
at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:133)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:1092)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)