SeharAfzal / cocos2d-android-1

Automatically exported from code.google.com/p/cocos2d-android-1
0 stars 0 forks source link

java.lang.IllegalArgumentException: bitmap is recycled #132

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
i run the cocos-template on samsung nexus android 4.2.2 and emulator android 
4.0.I crashed like blow.but on android 2.x.x, it works fine.
07-17 16:22:31.486: E/AndroidRuntime(9507): FATAL EXCEPTION: GLThread 699
07-17 16:22:31.486: E/AndroidRuntime(9507): java.lang.IllegalArgumentException: 
bitmap is recycled
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
android.opengl.GLUtils.texImage2D(GLUtils.java:160)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.opengl.CCTexture2D.loadTexture(CCTexture2D.java:361)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.opengl.CCTexture2D.name(CCTexture2D.java:77)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.nodes.CCSprite.draw(CCSprite.java:871)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.nodes.CCNode.visit(CCNode.java:674)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.nodes.CCNode.visit(CCNode.java:680)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.nodes.CCNode.visit(CCNode.java:680)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.nodes.CCDirector.drawCCScene(CCDirector.java:683)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
org.cocos2d.nodes.CCDirector.onDrawFrame(CCDirector.java:651)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1516)
07-17 16:22:31.486: E/AndroidRuntime(9507):     at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
07-17 16:22:32.026: E/libEGL(9507): call to OpenGL ES API with no current 
context (logged once per thread)

Original issue reported on code.google.com by yanchend...@gmail.com on 17 Jul 2013 at 8:28

GoogleCodeExporter commented 9 years ago
Workaround?

Original comment by lsale...@hypertvx.com on 20 Nov 2013 at 3:58