sourcemars / cocos2d-android-1

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

By pressing Pwer Button again and again concurrentModificationException comes #94

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Pressing power button call onPause of main activity
2. Again Pressing power button will call onResume 
3. By pressing again and again in no time. These two fnctions call again and 
again and crashes at the end

What is the expected output? What do you see instead?
The expected output is the code run smoothly without any crash

What version of the product are you using? On what operating system?
cocos2D version is 0.99.4. The OS version is 2.3.3

Please provide any additional information below.
The crash log is :

08-15 13:53:40.531: DEBUG/dalvikvm(25863): TRACE stop requested, but not running
08-15 13:53:40.631: WARN/dalvikvm(25863): threadid=13: thread exiting with 
uncaught exception (group=0x40015560)
08-15 13:53:40.631: DEBUG/FlurryAgent(25863): Ending session
08-15 13:53:40.641: ERROR/AndroidRuntime(25863): FATAL EXCEPTION: GLThread 14
08-15 13:53:40.641: ERROR/AndroidRuntime(25863): 
java.util.ConcurrentModificationException
08-15 13:53:40.641: ERROR/AndroidRuntime(25863):     at 
java.util.WeakHashMap$HashIterator.next(WeakHashMap.java:165)
08-15 13:53:40.641: ERROR/AndroidRuntime(25863):     at 
org.cocos2d.opengl.GLResourceHelper$2.perform(GLResourceHelper.java:89)
08-15 13:53:40.641: ERROR/AndroidRuntime(25863):     at 
org.cocos2d.opengl.GLResourceHelper.update(GLResourceHelper.java:124)
08-15 13:53:40.641: ERROR/AndroidRuntime(25863):     at 
org.cocos2d.nodes.CCDirector.drawCCScene(CCDirector.java:684)
08-15 13:53:40.641: ERROR/AndroidRuntime(25863):     at 
org.cocos2d.nodes.CCDirector.onDrawFrame(CCDirector.java:649)
08-15 13:53:40.641: ERROR/AndroidRuntime(25863):     at 
android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1363)
08-15 13:53:40.641: ERROR/AndroidRuntime(25863):     at 
android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1118)

Original issue reported on code.google.com by nou...@tintash.com on 15 Aug 2011 at 10:00