Login  Register

Re: Exception in JoglPipeline#freeDisplayList

Posted by gouessej on Oct 20, 2014; 8:59am
URL: https://forum.jogamp.org/Exception-in-JoglPipeline-freeDisplayList-tp4033403p4033408.html

Hi

Please use the latest version of Java3D (currently 1.6.0 pre11) with JOGL 2.2.4. I remind you that I fixed a bug which impacts Java3D on some machines under Windows.

Moreover, it would be fine if you gave us a small test case to reproduce your bug. I have looked at our code:
https://github.com/hharrison/java3d-core/blob/master/src/classes/share/javax/media/j3d/JoglPipeline.java#L7628
https://github.com/hharrison/java3d-core/blob/master/src/classes/share/javax/media/j3d/JoglPipeline.java#L8772
https://github.com/hharrison/java3d-core/blob/master/src/classes/share/javax/media/j3d/Renderer.java#L367

Please enable the assertions with -ea and run your software again. There is an assertion somewhere. It would tell us whether the Java3D Context is null.

Actually, in my humble opinion, the call of Canvas3D.freeContextResources() should be moved into the braces above in the renderer as calling it when there is no Java3D Context is useless. I don't think that JoglContext can be bound to nothing (no GLContext).

I thank you for posting your stack trace but please give us a test case. A stack trace isn't enough.

Edit.: When I see this code, I still think that it's overcomplicated and useless. Using display lists is a bad idea and Java3D should rely directly on GLCanvas and GLJPanel instead of doing its own wrapping and poor management of the context.
Julien Gouesse | Personal blog | Website