Reply – Re: Blank Window - Porting Joe Groff's OpenGL Tutorial to JOGL
Your Name
Subject
Message
or Cancel
In Reply To
Re: Blank Window - Porting Joe Groff's OpenGL Tutorial to JOGL
— by Sven Gothel Sven Gothel
On Wednesday, October 06, 2010 13:36:27 gouessej [via jogamp] wrote:
>
> I get this when using your source code:

The RecursiveToolkitLock starvation is addressed with commit c8a9c59e4838cd43090378a7ed60544449472801

~Sven

>
> java.lang.Exception: Previously locked by Thread[main,5,main], lock:
> com.jogamp.nativewindow.impl.RecursiveToolkitLock@36baa466
> at
> com.jogamp.nativewindow.impl.RecursiveToolkitLock.lock(RecursiveToolkitLock.java:112)
> at
> com.jogamp.nativewindow.impl.jawt.JAWTWindow.lockSurface(JAWTWindow.java:109)
> at
> com.jogamp.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:173)
> at
> com.jogamp.opengl.impl.GLDrawableImpl.setRealized(GLDrawableImpl.java:137)
> at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:436)
> at java.awt.Container.addNotify(Container.java:2578)
> at java.awt.Window.addNotify(Window.java:663)
> at java.awt.Frame.addNotify(Frame.java:470)
> at java.awt.Window.show(Window.java:859)
> at java.awt.Component.show(Component.java:1563)
> at java.awt.Component.setVisible(Component.java:1515)
> at java.awt.Window.setVisible(Window.java:842)
> at org.maoni.jogl.test.JOGLTest.main(JOGLTest.java:29)
> Exception in thread "Timer-0" javax.media.opengl.GLException:
> java.lang.RuntimeException: Waited 5000ms for: Thread[main,5,main] -
> Thread[AWT-EventQueue-0,6,main], with recursionCount 0, lock:
> com.jogamp.nativewindow.impl.RecursiveToolkitLock@36baa466
> at
> com.jogamp.opengl.impl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:101)
> at
> com.jogamp.opengl.impl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:192)
> at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:164)
> at
> javax.media.opengl.awt.GLCanvas.maybeDoSingleThreadedWorkaround(GLCanvas.java:594)
> at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:302)
> at com.jogamp.opengl.util.AnimatorImpl.display(AnimatorImpl.java:51)
> at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:98)
> at com.jogamp.opengl.util.FPSAnimator$1.run(FPSAnimator.java:114)
> at java.util.TimerThread.mainLoop(Timer.java:512)
> at java.util.TimerThread.run(Timer.java:462)
> Caused by: java.lang.RuntimeException: Waited 5000ms for:
> Thread[main,5,main] - Thread[AWT-EventQueue-0,6,main], with recursionCount
> 0, lock: com.jogamp.nativewindow.impl.RecursiveToolkitLock@36baa466
> at
> com.jogamp.nativewindow.impl.RecursiveToolkitLock.lock(RecursiveToolkitLock.java:106)
> at
> com.jogamp.nativewindow.impl.jawt.JAWTWindow.lockSurface(JAWTWindow.java:109)
> at
> com.jogamp.opengl.impl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:173)
> at
> com.jogamp.opengl.impl.GLContextImpl.makeCurrentLocking(GLContextImpl.java:352)
> at com.jogamp.opengl.impl.GLContextImpl.makeCurrent(GLContextImpl.java:314)
> at
> com.jogamp.opengl.impl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:276)
> at
> javax.media.opengl.awt.GLCanvas$DisplayOnEventDispatchThreadAction.run(GLCanvas.java:677)
> at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:199)
> at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
> at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
> at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
> at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
> at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
> at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
>