华为 荣耀6 至尊版,测试游戏关卡时,调用了pauseAllEffects来暂停音效,然后,然后就崩溃了。。。。
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
at java.util.HashMap$EntryIterator.next(HashMap.java:843)
at java.util.HashMap$EntryIterator.next(HashMap.java:841)
at org.cocos2dx.lib.Cocos2dxSound.pauseAllEffects(Cocos2dxSound.java:207)
at org.cocos2dx.lib.Cocos2dxHelper.pauseAllEffects(Cocos2dxHelper.java:240)
at org.cocos2dx.lib.Cocos2dxRenderer.nativeRender(Native Method)
at org.cocos2dx.lib.Cocos2dxRenderer.onDrawFrame(Cocos2dxRenderer.java:104)
at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532)
at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1249)
```
16个其他线程
AsyncTask #1 (id=8364,state=WAITING)
java.lang.Object.wait(Native Method)
java.lang.Thread.parkFor(Thread.java:1205)
sun.misc.Unsafe.park(Unsafe.java:325)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
java.lang.Thread.run(Thread.java:841)
SoundPoolThread (id=8362,state=RUNNABLE)
dalvik.system.NativeStart.run(Native Method)
Binder_3 (id=8372,state=RUNNABLE)
dalvik.system.NativeStart.run(Native Method)
SoundPool (id=8361,state=RUNNABLE)
dalvik.system.NativeStart.run(Native Method)
Binder_1 (id=8359,state=RUNNABLE)
dalvik.system.NativeStart.run(Native Method)
AsyncTask #2 (id=8365,state=WAITING)
java.lang.Object.wait(Native Method)
java.lang.Thread.parkFor(Thread.java:1205)
sun.misc.Unsafe.park(Unsafe.java:325)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:410)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
java.lang.Thread.run(Thread.java:841)
Signal Catcher (id=8354,state=WAITING)
dalvik.system.NativeStart.run(Native Method)
main (id=1,state=RUNNABLE)
android.os.MessageQueue.nativePollOnce(Native Method)
android.os.MessageQueue.next(MessageQueue.java:138)
android.os.Looper.loop(Looper.java:123)
android.app.ActivityThread.main(ActivityThread.java:5327)
java.lang.reflect.Method.invokeNative(Native Method)
java.lang.reflect.Method.invoke(Method.java:515)
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:680)
dalvik.system.NativeStart.main(Native Method)
Binder_2 (id=8360,state=RUNNABLE)
dalvik.system.NativeStart.run(Native Method)
pool-2-thread-1 (id=8371,state=WAITING)
java.lang.Object.wait(Native Method)
java.lang.Thread.parkFor(Thread.java:1205)
sun.misc.Unsafe.park(Unsafe.java:325)
java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2017)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:1050)
java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take(ScheduledThreadPoolExecutor.java:778)
java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1035)
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1097)
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
java.lang.Thread.run(Thread.java:841)
Thread-8373 (id=8373,state=RUNNABLE)
dalvik.system.VMStack.getThreadStackTrace(Native Method)
java.lang.Thread.getStackTrace(Thread.java:579)
java.lang.Thread.getAllStackTraces(Thread.java:521)
com.testin.agent.d.f.a(Unknown Source)
com.testin.agent.d.a.a(Unknown Source)
com.testin.agent.a.c.run(Unknown Source)
Compiler (id=8355,state=WAITING)
dalvik.system.NativeStart.run(Native Method)
FinalizerWatchdogDaemon (id=8358,state=WAITING)
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:364)
java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject(Daemons.java:230)
java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:207)
java.lang.Thread.run(Thread.java:841)
GC (id=8353,state=WAITING)
dalvik.system.NativeStart.run(Native Method)
FinalizerDaemon (id=8357,state=WAITING)
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:401)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)
java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)
java.lang.Daemons$FinalizerDaemon.run(Daemons.java:170)
java.lang.Thread.run(Thread.java:841)
ReferenceQueueDaemon (id=8356,state=WAITING)
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Object.java:364)
java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:130)
java.lang.Thread.run(Thread.java:841)
```