Andengine应用程序启动时偶尔会发生IndexOutOfBoundsException

时间:2015-06-21 20:47:25

标签: java android mobile andengine

我有一个使用AndEngine的Android应用程序,我在应用程序启动时遇到这个零星的错误。有时会记录此错误,但仅在应用程序启动时记录。有没有人有同样的错误?

java.lang.IndexOutOfBoundsException: Invalid index 4, size is 4
        at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)
        at java.util.ArrayList.get(ArrayList.java:308)
        at org.andengine.entity.Entity.onManagedDraw(Entity.java:1382)
        at org.andengine.entity.scene.Scene.onManagedDraw(Scene.java:260)
        at org.andengine.entity.Entity.onDraw(Entity.java:1160)
        at org.andengine.engine.Engine.onDrawScene(Engine.java:627)
        at org.andengine.engine.Engine.onDrawFrame(Engine.java:617)
        at org.andengine.opengl.view.EngineRenderer.onDrawFrame(EngineRenderer.java:105)
        at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1522)
        at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)

0 个答案:

没有答案