1
Support / ArrayIndexOutOfBoundsException in World.renderScene()
« on: October 28, 2012, 11:57:38 pm »
Hi there, I got this report today from a couple of users. Stacktrace follows:
java.lang.ArrayIndexOutOfBoundsException
at com.threed.jpct.CompiledInstance.fill(CompiledInstance.java:1017)
at com.threed.jpct.Object3DCompiler.compile(Object3DCompiler.java:145)
at com.threed.jpct.World.compile(World.java:1911)
at com.threed.jpct.World.renderScene(World.java:1035)
The full code that triggers this crash is the following:
mFrameBuffer.clear();
mSkyBox.render(mWorld, mFrameBuffer);
mWorld.renderScene(mFrameBuffer); <----- This is the culprit
mWorld.draw(mFrameBuffer);
mFrameBuffer.display();
java.lang.ArrayIndexOutOfBoundsException
at com.threed.jpct.CompiledInstance.fill(CompiledInstance.java:1017)
at com.threed.jpct.Object3DCompiler.compile(Object3DCompiler.java:145)
at com.threed.jpct.World.compile(World.java:1911)
at com.threed.jpct.World.renderScene(World.java:1035)
The full code that triggers this crash is the following:
mFrameBuffer.clear();
mSkyBox.render(mWorld, mFrameBuffer);
mWorld.renderScene(mFrameBuffer); <----- This is the culprit
mWorld.draw(mFrameBuffer);
mFrameBuffer.display();