Re: prebuilt jar files available
Posted by ylliac on Jun 04, 2012; 7:17am
URL: https://forum.jogamp.org/prebuilt-jar-files-available-tp3997991p4025138.html
Thank you for the update Harvey.
I can't download the jar for j3dutils but the others files helped debugging and I found that the problem is in GraphicsConfigTemplate3D.runMonitor(int action) :
static void runMonitor(int action) {
// user thread will locked the globalLock when Renderer
// thread invoke this function so we can't use
// the same lock.
synchronized (monitorLock) {
switch (action) {
case J3dThread.WAIT:
// Issue 279 - loop until ready
while (threadWaiting) {
try {
monitorLock.wait(); <----- IT WAITS FOREVER :)
} catch (InterruptedException e) {
System.err.println(e);
}
}
break;
case J3dThread.NOTIFY:
monitorLock.notify();
threadWaiting = false;
break;
}
}
}
It seems that the monitorLock is never unlocked and I don't know why. Any idea ?
I found that J3dThread.NOTIFY should be sent by the Renderer in the doWork() method, but if the program is blocked, the renderer is probably not launched ?
Antoine