JOGL 2.3.1 Unit Test thread lock

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

JOGL 2.3.1 Unit Test thread lock

gregirvine
I compiled JOGL 2.3.1 on a GLIB1 RHEL6-based linux successfully, but while running the unit tests I had a thread lock.
Ironically the thread lock is very similar to the infrequent thread lock I see in one of our applications.

    [junit] Testcase: test12RealizeGLCanvasOnMainTUseGLCanvasSize(com.jogamp.opengl.test.junit.jogl.awt.TestBug572AWT): Caused an ERROR
    [junit] test timed out after 10000 milliseconds
    [junit] java.lang.Exception: test timed out after 10000 milliseconds
    [junit]     at sun.misc.Unsafe.park(Native Method)
    [junit]     at java.util.concurrent.locks.LockSupport.park(LockSupport.java:156)
    [junit]     at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:811)
    [junit]     at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:842)
    [junit]     at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1178)
    [junit]     at java.util.concurrent.locks.ReentrantLock$NonfairSync.lock(ReentrantLock.java:186)
    [junit]     at java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:262)
    [junit]     at sun.awt.SunToolkit.awtLock(SunToolkit.java:234)
    [junit]     at sun.awt.X11.XAwtState.getGrabWindow(XAwtState.java:105)
    [junit]     at sun.awt.X11.XGlobalCursorManager.updateGrabbedCursor(XGlobalCursorManager.java:89)
    [junit]     at sun.awt.X11.XGlobalCursorManager.updateCursorOutOfJava(XGlobalCursorManager.java:100)
    [junit]     at sun.awt.GlobalCursorManager._updateCursor(GlobalCursorManager.java:168)
    [junit]     at sun.awt.GlobalCursorManager.updateCursorImmediately(GlobalCursorManager.java:82)
    [junit]     at sun.awt.X11.XComponentPeer.updateCursorImmediately(XComponentPeer.java:833)
    [junit]     at java.awt.Component.updateCursorImmediately(Component.java:2943)
    [junit]     at java.awt.Component.show(Component.java:1559)
    [junit]     at java.awt.Window.show(Window.java:871)
    [junit]     at java.awt.Component.show(Component.java:1584)
    [junit]     at java.awt.Component.setVisible(Component.java:1536)
    [junit]     at java.awt.Window.setVisible(Window.java:841)
    [junit]     at com.jogamp.opengl.test.junit.jogl.awt.TestBug572AWT$1.run(TestBug572AWT.java:103)
    [junit]     at com.jogamp.opengl.test.junit.jogl.awt.TestBug572AWT.testRealizeGLCanvas(TestBug572AWT.java:110)
    [junit]     at com.jogamp.opengl.test.junit.jogl.awt.TestBug572AWT.test12RealizeGLCanvasOnMainTUseGLCanvasSize(TestBug572AWT.java:164)
    [junit]
    [junit]
    [junit] X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 1/1, reusable (open, marked uncloseable): 0, pending (open in creation order): 1)
    [junit] X11Util: Open X11 Display Connections: 1
    [junit] X11Util: Open[0]: NamedX11Display[:0.0, 0x83440a0, refCount 1, unCloseable false]
Reply | Threaded
Open this post in threaded view
|

Re: JOGL 2.3.1 Unit Test thread lock

gouessej
Administrator
Hi

Maybe you can reopen the bug report 572 and indicate in which version the regression reappears.
Julien Gouesse | Personal blog | Website