Bug with SimpleCanvasImpl?

Hi guys,



I have updated, a few days ago, my version of jME libs with the nightly build I found on the web site.

I have a map editor that was fully working. It uses a JFrame that contains a derivate of a SimpleCanvasImpl which I use as a JMECanvasImplementor.

Even if my implementation do nothing, I get this error :


java.lang.NullPointerException
   at com.jme.scene.state.lwjgl.LWJGLZBufferState.enableDepthTest(Unknown Source)
   at com.jme.scene.state.lwjgl.LWJGLZBufferState.apply(Unknown Source)
   at com.jme.renderer.lwjgl.LWJGLRenderer.clearZBuffer(Unknown Source)
   at com.jme.renderer.lwjgl.LWJGLRenderer.clearBuffers(Unknown Source)
   at com.jmex.awt.SimpleCanvasImpl.doRender(Unknown Source)
   at com.jmex.awt.lwjgl.LWJGLCanvas.paintGL(Unknown Source)
   at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:295)
   at org.lwjgl.opengl.AWTGLCanvas.update(AWTGLCanvas.java:313)
   at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
   at sun.awt.RepaintArea.paint(RepaintArea.java:216)
   at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
   at java.awt.Component.dispatchEventImpl(Component.java:4031)
   at java.awt.Component.dispatchEvent(Component.java:3803)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
   at com.jme.scene.state.lwjgl.LWJGLZBufferState.enableDepthTest(Unknown Source)
   at com.jme.scene.state.lwjgl.LWJGLZBufferState.apply(Unknown Source)
   at com.jme.renderer.lwjgl.LWJGLRenderer.clearZBuffer(Unknown Source)
   at com.jme.renderer.lwjgl.LWJGLRenderer.clearBuffers(Unknown Source)
   at com.jmex.awt.SimpleCanvasImpl.doRender(Unknown Source)
   at com.jmex.awt.lwjgl.LWJGLCanvas.paintGL(Unknown Source)
   at org.lwjgl.opengl.AWTGLCanvas.paint(AWTGLCanvas.java:295)
   at org.lwjgl.opengl.AWTGLCanvas.update(AWTGLCanvas.java:313)
   at sun.awt.RepaintArea.updateComponent(RepaintArea.java:239)
   at sun.awt.RepaintArea.paint(RepaintArea.java:216)
   at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
   at java.awt.Component.dispatchEventImpl(Component.java:4031)
   at java.awt.Component.dispatchEvent(Component.java:3803)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
   at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



I tried to put back my old version of JME libs and it works.
I have also tried what I found on this kind of error in the forum but it still won't work.
Any idea ?

Thanks  :)

The stack indicates the code is executing outside of the render context thread.  It might be a bug in jME, but if it was working before, and is not now, but the tests are still working, then it is possilbe you were relying on a bug/loophole in the older code to have your code work.

Ok, thanks !



I will check my code but I really don't see what I'm doing wrong  :expressionless:

Sorry for the dealy, but I'm through something else  :stuck_out_tongue:



I got the same problem with the RenControlEditor demo.



Please, can someone tell me if he/she manage to launch this demo ?

No help ? ok  :cry:



I finally found the problem.

Once again, the jars I have taken from the nightly build zip are bad.

When I created my own jar from the nightly build sources, everything works fine !



Could you explain me how and when is created the nightly build zip with the jars ?

Nightly are built with the ant build script in cvs.