Rajawali / RajawaliVR

Rajawali + Virtual Reality
Other
136 stars 61 forks source link

Getting Exeption on Surface Change #15

Open subirkumarsao opened 9 years ago

subirkumarsao commented 9 years ago

Reported in Stackoverflow: http://stackoverflow.com/questions/31593360/getting-exeption-on-surface-change

Got the below stacktrace as part of Crash Report. It looks like this problem is specific to one type of device OnePlusOne. Any pointers will be helpful.

java.lang.IllegalArgumentException: bitmap is recycled at android.opengl.GLUtils.texImage2D(GLUtils.java:112) at org.rajawali3d.materials.textures.ASingleTexture.add(ASingleTexture.java:186) at org.rajawali3d.materials.textures.TextureManager.taskAdd(TextureManager.java:110) at org.rajawali3d.materials.textures.TextureManager.taskReload(TextureManager.java:209) at org.rajawali3d.renderer.RajawaliRenderer.onRenderSurfaceSizeChanged(RajawaliRenderer.java:362) at org.rajawali3d.vr.renderer.RajawaliVRRenderer.onSurfaceChanged(RajawaliVRRenderer.java:88) at com.google.vrtoolkit.cardboard.CardboardViewJavaImpl$StereoRendererHelper.onSurfaceChanged(CardboardViewJavaImpl.java:931) at com.google.vrtoolkit.cardboard.CardboardViewJavaImpl$RendererHelper.onSurfaceChanged(CardboardViewJavaImpl.java:716) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1511) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1239)