Can't fix error coming from com.jme3.util.TempVars - ArrayIndexOutOfBoundsException: 5

Been getting this error for a few days, perhaps a week (I loose track of time), it’s got me stumped, throws after the game has been running for a while. I probably did something dumb. Any input would be much appreciated :slight_smile:

Thanks guys

Sep 2, 2011 5:47:12 PM handleError

SEVERE: Uncaught exception thrown in Thread[LWJGL Renderer Thread,5,main]

java.lang.ArrayIndexOutOfBoundsException: 5

at com.jme3.util.TempVars.get(

at com.jme3.math.Matrix4f.fillFloatBuffer(

at com.jme3.shader.Uniform.setValue(

at com.jme3.renderer.RenderManager.updateUniformBindings(

at com.jme3.material.Material.render(

at com.jme3.renderer.RenderManager.renderGeometry(

at com.jme3.renderer.queue.RenderQueue.renderGeometryList(

at com.jme3.renderer.queue.RenderQueue.renderQueue(

at com.jme3.renderer.RenderManager.renderViewPortQueues(

at com.jme3.renderer.RenderManager.flushQueue(

at com.jme3.renderer.RenderManager.renderViewPort(

at com.jme3.renderer.RenderManager.render(


at com.jme3.system.lwjgl.LwjglAbstractDisplay.runLoop(

at com.jme3.system.lwjgl.LwjglDisplay.runLoop(



You probably release the temp vars twice somewhere.

Actually, that error indicates that more than 5 temp vars have been requested on that thread without being released. So it may be that something somewhere is not releasing its tempvars like it should be.