Thanks Egon,
It crashes in different places each time I run. If I process step by step in debugging it runs fine sometimes. It is like a thread is using something that it is not ready yet.
Once it crashed here:
03-30 13:16:28.290 4119-4140/? W/jPCT-AE: [ 1522415788290 ] - WARNING: State: 0/0/0/0/0/0/0
03-30 13:16:28.300 4119-4140/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 1210
Process: com.marcelo.a3demo01, PID: 4119
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at com.threed.jpct.CompiledInstance._fill(CompiledInstance.java:1226)
at com.threed.jpct.CompiledInstance.fill(CompiledInstance.java:847)
at com.threed.jpct.Object3DCompiler.compile(Object3DCompiler.java:168)
at com.threed.jpct.World.compile(World.java:2109)
at com.threed.jpct.World.renderScene(World.java:1067)
at com.marcelo.a3demo01.MainActivity.onDrawFrame(MainActivity.java:108)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
03-30 13:16:28.407 4119-4141/? D/EGL_emulation: eglMakeCurrent: 0xa3f47c40: ver 2 0 (tinfo 0xa3f0b1b0)
@Override
public void onDrawFrame(GL10 gl10) {
fb.clear();
world.renderScene(fb); // this is the line 108
world.draw(fb);
fb.display();
}
It crashes in different places each time I run. If I process step by step in debugging it runs fine sometimes. It is like a thread is using something that it is not ready yet.
Once it crashed here:
03-30 13:16:28.290 4119-4140/? W/jPCT-AE: [ 1522415788290 ] - WARNING: State: 0/0/0/0/0/0/0
03-30 13:16:28.300 4119-4140/? E/AndroidRuntime: FATAL EXCEPTION: GLThread 1210
Process: com.marcelo.a3demo01, PID: 4119
java.lang.ArrayIndexOutOfBoundsException: length=0; index=0
at com.threed.jpct.CompiledInstance._fill(CompiledInstance.java:1226)
at com.threed.jpct.CompiledInstance.fill(CompiledInstance.java:847)
at com.threed.jpct.Object3DCompiler.compile(Object3DCompiler.java:168)
at com.threed.jpct.World.compile(World.java:2109)
at com.threed.jpct.World.renderScene(World.java:1067)
at com.marcelo.a3demo01.MainActivity.onDrawFrame(MainActivity.java:108)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1571)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1270)
03-30 13:16:28.407 4119-4141/? D/EGL_emulation: eglMakeCurrent: 0xa3f47c40: ver 2 0 (tinfo 0xa3f0b1b0)
@Override
public void onDrawFrame(GL10 gl10) {
fb.clear();
world.renderScene(fb); // this is the line 108
world.draw(fb);
fb.display();
}