Login  Register

GLWindow.setSize exception upgrading to rc8

Posted by jouvieje on May 06, 2012; 3:14pm
URL: https://forum.jogamp.org/GLWindow-setSize-exception-upgrading-to-rc8-tp3966421.html

I trying to upgrade to rc8 from jogl 661.

When my application is starting, the frame is resized. Now with rc8, using a NewtCanvasAWT prevents my application from starting by the exception below which shows up after a 5s freeze (screenshop during the freeze).
rc6 and rc7 also show this problem.

I'm running Windows 7 64 bit with a NVidia GTX 260 with drivers up to date (296.10).

Using GLCanvas instead of NEWT solve the problem, ie everything start properly and no freeze, but would be better if I could fix the exception with newt.
Is someone have seen this problem or have a suggestion to fix it ?

Exception in thread "RenderLoop-0" java.lang.RuntimeException: Waited 5000ms for: <7ef3de76, 2b521f12>[count 1, qsz 0, owner <RenderLoop-0>] - <main-Display-Windows_nil-1-EDT-1>
	at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:182)
	at jogamp.opengl.GLContextImpl.lockConsiderFailFast(GLContextImpl.java:238)
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:393)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:415)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:560)
	at com.jogamp.newt.opengl.GLWindow$1.windowResized(GLWindow.java:91)
	at jogamp.newt.WindowImpl.consumeWindowEvent(WindowImpl.java:2314)
	at jogamp.newt.WindowImpl.sendWindowEvent(WindowImpl.java:2257)
	at jogamp.newt.WindowImpl.sizeChanged(WindowImpl.java:2401)
	at jogamp.newt.driver.windows.WindowsWindow.reconfigureWindow0(Native Method)
	at jogamp.newt.driver.windows.WindowsWindow.reconfigureWindowImpl(WindowsWindow.java:201)
	at jogamp.newt.WindowImpl$SetSizeAction.run(WindowImpl.java:821)
	at jogamp.newt.DisplayImpl.runOnEDTIfAvail(DisplayImpl.java:193)
	at jogamp.newt.WindowImpl.runOnEDTIfAvail(WindowImpl.java:1578)
	at jogamp.newt.WindowImpl.setSize(WindowImpl.java:844)
	at com.jogamp.newt.opengl.GLWindow.setSize(GLWindow.java:340)
	at jogamp.newt.awt.event.AWTParentWindowAdapter$1.run(AWTParentWindowAdapter.java:101)
	at com.jogamp.common.util.RunnableTask.run(RunnableTask.java:116)
	at jogamp.newt.DefaultEDTUtil$EventDispatchThread.run(DefaultEDTUtil.java:295)
java.lang.RuntimeException: Waited 5000ms for: <7ef3de76, 3c925617>[count 1, qsz 0, owner <main-Display-Windows_nil-1-EDT-1>] - <RenderLoop-0>
	at jogamp.common.util.locks.RecursiveLockImpl01Unfairish.lock(RecursiveLockImpl01Unfairish.java:182)
	at jogamp.newt.WindowImpl.lockSurface(WindowImpl.java:562)
	at jogamp.opengl.GLDrawableImpl.lockSurface(GLDrawableImpl.java:195)
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:397)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:415)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
	at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:560)
	at jouvieje.scene.target.jogl2.NativeCanvas_jogl2.onDisplay(NativeCanvas_jogl2.java:121)
	at jouvieje.opengl.RenderLoop$Loop.run(RenderLoop.java:62)
Jérôme