Hi all,
I have a problem when I try to reload a SimpleJMEApplet. This is the trace I got:
java.lang.NullPointerException
at org.lwjgl.opengl.GL11.glDeleteTextures(GL11.java:716)
at com.jme.scene.state.lwjgl.LWJGLTextureState.deleteAll(Unknown Source)
at com.jme.scene.Text.resetFontTexture(Unknown Source)
at com.jmex.awt.applet.SimpleJMEApplet.init(Unknown Source)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Seems that some textures has not been correctly cleaned. I try to reset the DisplaySystem previous to init the applet but the problem continues. I was using a pretty new CVS version but I have updated my jmonkey version and the problem is still here.
Someone has detected that? Any idea to solve this point?
Thanks in advance,
Juan
i am not familiar with Applets, but when seeing GL11 and Thread in the same backtrace i immidiately think of GameTaskQueue Manager
Try to wrap the Text.resetFontTexture in GameTask which gets executed in the OpenGL thread.
see:
http://www.jmonkeyengine.com/wiki/doku.php?id=some_standardgame_frequently_asked_questions#are_gametasks_a_way_to_insert_code_in_the_main_opengl_thread_queue_from_outside
Problem is with SimpleJMEApplet calling resetFontTexture outside of teh openGL thread.
Also see: http://www.jmonkeyengine.com/jmeforum/index.php?topic=8987.0