java.lang.IllegalArgumentException: buffer not allocated with newUnsafeByteBuffer or already disposed

GitHub | rafcolson | 7 months ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Bug: don't dispose of already disposed models in Bdx.dispose()

    GitHub | 7 months ago | rafcolson
    java.lang.IllegalArgumentException: buffer not allocated with newUnsafeByteBuffer or already disposed
  2. 0

    Bug: Scene Restart Doesn't End GameObjects

    GitHub | 1 year ago | SolarLune
    java.lang.IllegalArgumentException: buffer not allocated with newUnsafeByteBuffer or already disposed

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      buffer not allocated with newUnsafeByteBuffer or already disposed

      at com.badlogic.gdx.utils.BufferUtils.disposeUnsafeByteBuffer()
    2. libGDX Core
      Model.dispose
      1. com.badlogic.gdx.utils.BufferUtils.disposeUnsafeByteBuffer(BufferUtils.java:507)
      2. com.badlogic.gdx.graphics.glutils.VertexBufferObject.dispose(VertexBufferObject.java:260)
      3. com.badlogic.gdx.graphics.Mesh.dispose(Mesh.java:507)
      4. com.badlogic.gdx.graphics.g3d.Model.dispose(Model.java:352)
      4 frames
    3. com.nilunder.bdx
      Bdx.main
      1. com.nilunder.bdx.Scene.dispose(Scene.java:404)
      2. com.nilunder.bdx.Scene.runObjectLogic(Scene.java:883)
      3. com.nilunder.bdx.Scene.update(Scene.java:921)
      4. com.nilunder.bdx.Bdx.main(Bdx.java:255)
      4 frames
    4. com.raco.test
      BdxApp.render
      1. com.raco.test.BdxApp.render(BdxApp.java:31)
      1 frame
    5. libGDX Android Backend
      AndroidGraphics.onDrawFrame
      1. com.badlogic.gdx.backends.android.AndroidGraphics.onDrawFrame(AndroidGraphics.java:474)
      1 frame
    6. Android Platform
      GLSurfaceView$GLThread.run
      1. android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1531)
      2. android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1248)
      2 frames