MondayHopscotch / Helm

1 stars 0 forks source link

App crashing from call to dispose() #343

Closed MondayHopscotch closed 6 years ago

MondayHopscotch commented 6 years ago
java.lang.IllegalArgumentException: 

  at com.badlogic.gdx.utils.BufferUtils.disposeUnsafeByteBuffer (BufferUtils.java:507)

  at com.badlogic.gdx.graphics.glutils.VertexArray.dispose (VertexArray.java:65)

  at com.badlogic.gdx.graphics.Mesh.dispose (Mesh.java:507)

  at com.badlogic.gdx.graphics.g2d.SpriteBatch.dispose (SpriteBatch.java:1013)

  at com.badlogic.gdx.scenes.scene2d.Stage.dispose (Stage.java:825)

  at com.bitdecay.helm.screen.TitleScreen.dispose (TitleScreen.java:399)

  at com.bitdecay.helm.Helm.dispose (Helm.java:107)

  at com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame (AndroidGraphics.java:482)

  at android.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1571)

  at android.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1270)

It appears that things are being disposed of for us. We need to handle this better so the app doesn't crash.