Frequent Android Crashes

@JBean I’m not aware of any additional back button fixes since then. Have you released with that build or later? Do you have crash traces?

@greg.brady I know we are still working on the PackageState error. But regardless, we really need to see the stack traces to really know what’s going on. The images don’t really help that much.

Rob

Here is the top trace for the package state trace error:

“main” prio=5 tid=1 Native

  | group=“main” sCount=1 dsCount=0 obj=0x74c7f658 self=0xb2a04400

  | sysTid=29658 nice=0 cgrp=default sched=0/0 handle=0xb5710534

  | state=S schedstat=( 216140235066 104225737700 549289 ) utm=16035 stm=5578 core=1 HZ=100

  | stack=0xbe137000-0xbe139000 stackSize=8MB

  | held mutexes=

  #00  pc 00000000000174d4  /system/lib/libc.so (syscall+28)

  #01  pc 00000000000471ff  /system/lib/libc.so (pthread_join+146)

  #02  pc 0000000000015b58  /data/app/com.gbeegames.stellartrek-1/lib/arm/libopenal.so (alcDestroyContext+516)

  #03  pc 0000000000008ed7  /data/app/com.gbeegames.stellartrek-1/lib/arm/libalmixer.so (ALmixer_Quit+230)

  #04  pc 000000000011d48c  /data/app/com.gbeegames.stellartrek-1/lib/arm/libcorona.so (???)

  #05  pc 000000000011f8c0  /data/app/com.gbeegames.stellartrek-1/lib/arm/libcorona.so (???)

  #06  pc 000000000012f9b4  /data/app/com.gbeegames.stellartrek-1/lib/arm/libcorona.so (???)

  #07  pc 000000000002b6fc  /data/app/com.gbeegames.stellartrek-1/lib/arm/libcorona.so (???)

  #08  pc 000000000002e9f8  /data/app/com.gbeegames.stellartrek-1/lib/arm/libcorona.so (Java_com_ansca_corona_JavaToNativeShim_nativeDone+28)

  #09  pc 00000000000315c5  /data/app/com.gbeegames.stellartrek-1/oat/arm/base.odex (Java_com_ansca_corona_JavaToNativeShim_nativeDone__J+80)

  at com.ansca.corona.JavaToNativeShim.nativeDone (Native method)

  at com.ansca.corona.JavaToNativeShim.destroy (JavaToNativeShim.java:277)

  at com.ansca.corona.Controller.destroy (Controller.java:286)

  • locked <0x0314548b> (a com.ansca.corona.Controller)

  at com.ansca.corona.CoronaRuntime.dispose (CoronaRuntime.java:88)

  at com.ansca.corona.CoronaActivity.onDestroy (CoronaActivity.java:1732)

  at android.app.Activity.performDestroy (Activity.java:6900)

  at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1175)

  at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4243)

  at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:4274)

  at android.app.ActivityThread.-wrap6 (ActivityThread.java)

  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1556)

  at android.os.Handler.dispatchMessage (Handler.java:102)

  at android.os.Looper.loop (Looper.java:154)

  at android.app.ActivityThread.main (ActivityThread.java:6196)

  at java.lang.reflect.Method.invoke! (Native method)

  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:888)

  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:778)

“Jit thread pool worker thread 0” tid=2 Native 

“Jit thread pool worker thread 0” prio=5 tid=2 Native (still starting up)

  | group="" sCount=1 dsCount=0 obj=0x0 self=0xa7014d00

  | sysTid=29662 nice=9 cgrp=default sched=0/0 handle=0xb2107920

  | state=S schedstat=( 433537400 355228232 550 ) utm=28 stm=14 core=7 HZ=100

  | stack=0xb2009000-0xb200b000 stackSize=1022KB

  | held mutexes=

  #00  pc 00000000000174d4  /system/lib/libc.so (syscall+28)

  #01  pc 00000000000b6fc9  /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)

  #02  pc 0000000000345909  /system/lib/libart.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+160)

  #03  pc 0000000000345133  /system/lib/libart.so (_ZN3art16ThreadPoolWorker3RunEv+62)

  #04  pc 0000000000344c61  /system/lib/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+64)

  #05  pc 0000000000046ed3  /system/lib/libc.so (_ZL15__pthread_startPv+22)

  #06  pc 0000000000019aed  /system/lib/libc.so (__start_thread+6)

“FinalizerWatchdogDaemon” tid=4 Waiting 

“FinalizerWatchdogDaemon” daemon prio=5 tid=4 Waiting

  | group=“system” sCount=1 dsCount=0 obj=0x12c05160 self=0xa7016100

  | sysTid=29667 nice=0 cgrp=default sched=0/0 handle=0xb1bff920

  | state=S schedstat=( 22024158 39796679 327 ) utm=1 stm=0 core=6 HZ=100

  | stack=0xb1afd000-0xb1aff000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x0fec8968> (a java.lang.Daemons$FinalizerWatchdogDaemon)

  at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded (Daemons.java:269)

  • locked <0x0fec8968> (a java.lang.Daemons$FinalizerWatchdogDaemon)

  at java.lang.Daemons$FinalizerWatchdogDaemon.run (Daemons.java:249)

  at java.lang.Thread.run (Thread.java:761)

“ReferenceQueueDaemon” tid=5 Waiting 

“ReferenceQueueDaemon” daemon prio=5 tid=5 Waiting

  | group=“system” sCount=1 dsCount=0 obj=0x12c051f0 self=0xa7015700

  | sysTid=29665 nice=0 cgrp=default sched=0/0 handle=0xb1f07920

  | state=S schedstat=( 881987554 123768903 918 ) utm=82 stm=5 core=6 HZ=100

  | stack=0xb1e05000-0xb1e07000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x08046181> (a java.lang.Class<java.lang.ref.ReferenceQueue>)

  at java.lang.Daemons$ReferenceQueueDaemon.run (Daemons.java:150)

  • locked <0x08046181> (a java.lang.Class<java.lang.ref.ReferenceQueue>)

  at java.lang.Thread.run (Thread.java:761)

“FinalizerDaemon” tid=6 Waiting 

“FinalizerDaemon” daemon prio=5 tid=6 Waiting

  | group=“system” sCount=1 dsCount=0 obj=0x12c05280 self=0xa7015c00

  | sysTid=29666 nice=0 cgrp=default sched=0/0 handle=0xb1e02920

  | state=S schedstat=( 110125946 57780511 589 ) utm=7 stm=2 core=6 HZ=100

  | stack=0xb1d00000-0xb1d02000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x0a590226> (a java.lang.Object)

  at java.lang.Object.wait (Object.java:407)

  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:188)

  • locked <0x0a590226> (a java.lang.Object)

  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:209)

  at java.lang.Daemons$FinalizerDaemon.run (Daemons.java:204)

  at java.lang.Thread.run (Thread.java:761)

“Binder:29658_1” tid=8 Native 

“Binder:29658_1” prio=5 tid=8 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c053a0 self=0xa7016b00

  | sysTid=29669 nice=0 cgrp=default sched=0/0 handle=0xb18f7920

  | state=S schedstat=( 6117276270 12133083323 31895 ) utm=185 stm=425 core=7 HZ=100

  | stack=0xb17fb000-0xb17fd000 stackSize=1014KB

  | held mutexes=

  #00  pc 0000000000048488  /system/lib/libc.so (__ioctl+8)

  #01  pc 000000000001aaef  /system/lib/libc.so (ioctl+38)

  #02  pc 000000000003cd65  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+168)

  #03  pc 000000000003ce5d  /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+8)

  #04  pc 000000000003d3e3  /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46)

  #05  pc 000000000004f819  /system/lib/libbinder.so (???)

  #06  pc 000000000000e39d  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+140)

  #07  pc 0000000000066ac5  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)

  #08  pc 0000000000046ed3  /system/lib/libc.so (_ZL15__pthread_startPv+22)

  #09  pc 0000000000019aed  /system/lib/libc.so (__start_thread+6)

“Binder:29658_2” tid=9 Native 

“Binder:29658_2” prio=5 tid=9 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05430 self=0xb2a04900

  | sysTid=29670 nice=0 cgrp=default sched=0/0 handle=0xaba8d920

  | state=S schedstat=( 6144480725 12033326397 31983 ) utm=188 stm=425 core=6 HZ=100

  | stack=0xab991000-0xab993000 stackSize=1014KB

  | held mutexes=

  #00  pc 0000000000048488  /system/lib/libc.so (__ioctl+8)

  #01  pc 000000000001aaef  /system/lib/libc.so (ioctl+38)

  #02  pc 000000000003cd65  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+168)

  #03  pc 000000000003ce5d  /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+8)

  #04  pc 000000000003d3e3  /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46)

  #05  pc 000000000004f819  /system/lib/libbinder.so (???)

  #06  pc 000000000000e39d  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+140)

  #07  pc 0000000000066ac5  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)

  #08  pc 0000000000046ed3  /system/lib/libc.so (_ZL15__pthread_startPv+22)

  #09  pc 0000000000019aed  /system/lib/libc.so (__start_thread+6)

“Profile Saver” tid=10 Native 

“Profile Saver” daemon prio=10 tid=10 Native

  | group=“system” sCount=1 dsCount=0 obj=0x12c054c0 self=0xb2a04e00

  | sysTid=29672 nice=-10 cgrp=default sched=0/0 handle=0xab98e920

  | state=S schedstat=( 12645833 1615104 30 ) utm=0 stm=0 core=6 HZ=100

  | stack=0xab892000-0xab894000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d4  /system/lib/libc.so (syscall+28)

  #01  pc 00000000000b6fc9  /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)

  #02  pc 000000000025b77d  /system/lib/libart.so (_ZN3art12ProfileSaver3RunEv+296)

  #03  pc 000000000025cab9  /system/lib/libart.so (_ZN3art12ProfileSaver21RunProfileSaverThreadEPv+52)

  #04  pc 0000000000046ed3  /system/lib/libc.so (_ZL15__pthread_startPv+22)

  #05  pc 0000000000019aed  /system/lib/libc.so (__start_thread+6)

“GLThread 3557” tid=11 Waiting 

“GLThread 3557” prio=5 tid=11 Waiting

  | group=“main” sCount=1 dsCount=0 obj=0x12c060e0 self=0xa706ef00

  | sysTid=29678 nice=0 cgrp=default sched=0/0 handle=0xab84e920

  | state=S schedstat=( 2437995778793 112158923107 619861 ) utm=236049 stm=7749 core=0 HZ=100

  | stack=0xab74c000-0xab74e000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x05f1ae67> (a com.ansca.corona.graphics.opengl.GLSurfaceView$GLThreadManager)

  at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.guardedRun (GLSurfaceView.java:1564)

  • locked <0x05f1ae67> (a com.ansca.corona.graphics.opengl.GLSurfaceView$GLThreadManager)

  at com.ansca.corona.graphics.opengl.GLSurfaceView$GLThread.run (GLSurfaceView.java:1378)

“RenderThread” tid=14 Native 

“RenderThread” prio=5 tid=14 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05670 self=0xa7072600

  | sysTid=29686 nice=0 cgrp=default sched=1073741825/1 handle=0x97df5920

  | state=S schedstat=( 522294446 247257019 732 ) utm=36 stm=14 core=3 HZ=100

  | stack=0x97cf9000-0x97cfb000 stackSize=1014KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 0000000000011d57  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)

  #04  pc 0000000000011c53  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26)

  #05  pc 0000000000029101  /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+284)

  #06  pc 000000000000e39d  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+140)

  #07  pc 0000000000066ac5  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)

  #08  pc 0000000000046ed3  /system/lib/libc.so (_ZL15__pthread_startPv+22)

  #09  pc 0000000000019aed  /system/lib/libc.so (__start_thread+6)

“hwuiTask1” tid=15 Native 

“hwuiTask1” prio=5 tid=15 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05700 self=0x9a2f6d00

  | sysTid=29688 nice=-2 cgrp=default sched=1073741825/1 handle=0x977cc920

  | state=S schedstat=( 6038649 11704115 41 ) utm=0 stm=0 core=6 HZ=100

  | stack=0x976d0000-0x976d2000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d4  /system/lib/libc.so (syscall+28)

  #01  pc 0000000000046a5d  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)

  #02  pc 0000000000029993  /system/lib/libhwui.so (???)

  #03  pc 0000000000029909  /system/lib/libhwui.so (???)

  #04  pc 000000000000e419  /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+264)

  #05  pc 0000000000066ac5  /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80)

  #06  pc 0000000000046ed3  /system/lib/libc.so (_ZL15__pthread_startPv+22)

  #07  pc 0000000000019aed  /system/lib/libc.so (__start_thread+6)

“FileObserver” tid=16 Native 

“FileObserver” prio=5 tid=16 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c058b0 self=0x94ad3d00

  | sysTid=29827 nice=0 cgrp=default sched=0/0 handle=0x99ce4920

  | state=S schedstat=( 998282 12175257 23 ) utm=0 stm=0 core=2 HZ=100

  | stack=0x99be2000-0x99be4000 stackSize=1038KB

  | held mutexes=

  #00  pc 00000000000494d8  /system/lib/libc.so (read+8)

  #01  pc 00000000000c35b5  /system/lib/libandroid_runtime.so (???)

  #02  pc 0000000000bdbcf3  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_FileObserver_00024ObserverThread_observe__I+78)

  at android.os.FileObserver$ObserverThread.observe (Native method)

  at android.os.FileObserver$ObserverThread.run (FileObserver.java:86)

“Okio Watchdog” tid=17 Waiting 

“Okio Watchdog” daemon prio=5 tid=17 Waiting

  | group=“main” sCount=1 dsCount=0 obj=0x12c05790 self=0x95ae4a00

  | sysTid=29704 nice=0 cgrp=default sched=0/0 handle=0x94f7f920

  | state=S schedstat=( 9279534 15707495 136 ) utm=0 stm=0 core=5 HZ=100

  | stack=0x94e7d000-0x94e7f000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x05b4d414> (a java.lang.Class<com.android.okhttp.okio.AsyncTimeout>)

  at com.android.okhttp.okio.AsyncTimeout.awaitTimeout (AsyncTimeout.java:311)

  • locked <0x05b4d414> (a java.lang.Class<com.android.okhttp.okio.AsyncTimeout>)

  at com.android.okhttp.okio.AsyncTimeout.-wrap0 (AsyncTimeout.java)

  at com.android.okhttp.okio.AsyncTimeout$Watchdog.run (AsyncTimeout.java:286)

“background thread” tid=18 Native 

“background thread” prio=5 tid=18 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05820 self=0x95ae4f00

  | sysTid=29707 nice=0 cgrp=default sched=0/0 handle=0x92f2f920

  | state=S schedstat=( 1152236 3185000 21 ) utm=0 stm=0 core=2 HZ=100

  | stack=0x92e2d000-0x92e2f000 stackSize=1038KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 0000000000011d57  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)

  #04  pc 0000000000011c53  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26)

  #05  pc 0000000000092c89  /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)

  #06  pc 0000000000c00bad  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)

  at android.os.MessageQueue.nativePollOnce (Native method)

  at android.os.MessageQueue.next (MessageQueue.java:323)

  at android.os.Looper.loop (Looper.java:136)

  at android.os.HandlerThread.run (HandlerThread.java:61)

“Binder:29658_3” tid=25 Native 

“Binder:29658_3” prio=5 tid=25 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c0c310 self=0x823f6400

  | sysTid=30139 nice=0 cgrp=default sched=0/0 handle=0x887f1920

  | state=S schedstat=( 6055087789 11860394648 31292 ) utm=199 stm=405 core=5 HZ=100

  | stack=0x886f5000-0x886f7000 stackSize=1014KB

  | held mutexes=

  #00  pc 0000000000048488  /system/lib/libc.so (__ioctl+8)

  #01  pc 000000000001aaef  /system/lib/libc.so (ioctl+38)

  #02  pc 000000000003cd65  /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+168)

  #03  pc 000000000003ce5d  /system/lib/li

“GoogleApiHandler” tid=26 Native 

“GoogleApiHandler” prio=5 tid=26 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05940 self=0x94d9cf00

  | sysTid=29838 nice=9 cgrp=default sched=0/0 handle=0x986d7920

  | state=S schedstat=( 20777709 29470784 73 ) utm=1 stm=0 core=3 HZ=100

  | stack=0x985d5000-0x985d7000 stackSize=1038KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 0000000000011d57  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)

  #04  pc 0000000000011c53  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26)

  #05  pc 0000000000092c89  /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)

  #06  pc 0000000000c00bad  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)

  at android.os.MessageQueue.nativePollOnce (Native method)

  at android.os.MessageQueue.next (MessageQueue.java:323)

  at android.os.Looper.loop (Looper.java:136)

  at android.os.HandlerThread.run (HandlerThread.java:61)

“Chrome_IOThread” tid=27 Native 

“Chrome_IOThread” prio=7 tid=27 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c059d0 self=0x94d9d400

  | sysTid=29839 nice=-4 cgrp=default sched=0/0 handle=0x984ff920

  | state=S schedstat=( 2160685846 831004703 5125 ) utm=156 stm=58 core=6 HZ=100

  | stack=0x98403000-0x98405000 stackSize=1014KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 000000000003c5c9  /data/app/com.android.chrome-2/base.apk (???)

“Chrome_ProcessLauncherThread” tid=28 Native 

“Chrome_ProcessLauncherThread” prio=5 tid=28 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05a60 self=0x94d9d900

  | sysTid=29845 nice=0 cgrp=default sched=0/0 handle=0x8d100920

  | state=S schedstat=( 1549632 5822501 23 ) utm=0 stm=0 core=3 HZ=100

  | stack=0x8cffe000-0x8d000000 stackSize=1038KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 0000000000011d57  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)

  #04  pc 0000000000011c53  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26)

  #05  pc 0000000000092c89  /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)

  #06  pc 0000000000c00bad  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)

  at android.os.MessageQueue.nativePollOnce (Native method)

  at android.os.MessageQueue.next (MessageQueue.java:323)

  at android.os.Looper.loop (Looper.java:136)

  at android.os.HandlerThread.run (HandlerThread.java:61)

“GAC_Executor[0]” tid=31 Waiting 

“GAC_Executor[0]” prio=5 tid=31 Waiting

  | group=“main” sCount=1 dsCount=0 obj=0x12c05af0 self=0x94d9f700

  | sysTid=29853 nice=0 cgrp=default sched=0/0 handle=0x882f0920

  | state=S schedstat=( 7455836 5437241 26 ) utm=0 stm=0 core=7 HZ=100

  | stack=0x881ee000-0x881f0000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x021494bd> (a java.lang.Object)

  at java.lang.Thread.parkFor$ (Thread.java:2127)

  • locked <0x021494bd> (a java.lang.Object)

  at sun.misc.Unsafe.park (Unsafe.java:325)

  at java.util.concurrent.locks.LockSupport.park (LockSupport.java:161)

  at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2035)

  at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)

  at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1058)

  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1118)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)

  at com.google.android.gms.internal.ef.run (unavailable)

  at java.lang.Thread.run (Thread.java:761)

“TaskSchedulerSi” tid=32 Native 

“TaskSchedulerSi” prio=5 tid=32 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05b80 self=0x91d4b000

  | sysTid=29849 nice=0 cgrp=default sched=0/0 handle=0x886f2920

  | state=S schedstat=( 14912237 8809586 63 ) utm=0 stm=0 core=6 HZ=100

  | stack=0x885f6000-0x885f8000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d4  /system/lib/libc.so (syscall+28)

  #01  pc 0000000000046a5d  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)

  #02  pc 0000000000039bb1  /data/app/com.android.chrome-2/base.apk (???)

“CleanupReference” tid=33 Waiting 

“CleanupReference” daemon prio=5 tid=33 Waiting

  | group=“main” sCount=1 dsCount=0 obj=0x12c05c10 self=0x91d4ce00

  | sysTid=29854 nice=0 cgrp=default sched=0/0 handle=0x881eb920

  | state=S schedstat=( 762969 386458 3 ) utm=0 stm=0 core=7 HZ=100

  | stack=0x880e9000-0x880eb000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x0f431ab2> (a java.lang.Object)

  at java.lang.Object.wait (Object.java:407)

  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:188)

  • locked <0x0f431ab2> (a java.lang.Object)

  at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:209)

  at org.chromium.android_webview.CleanupReference$1.run (CleanupReference.java:3)

“ConnectivityManager” tid=34 Native 

“ConnectivityManager” prio=5 tid=34 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05ca0 self=0x91d4dd00

  | sysTid=29855 nice=0 cgrp=default sched=0/0 handle=0x880e6920

  | state=S schedstat=( 4438180 14943539 34 ) utm=0 stm=0 core=3 HZ=100

  | stack=0x87fe4000-0x87fe6000 stackSize=1038KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 0000000000011d57  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)

  #04  pc 0000000000011c53  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26)

  #05  pc 0000000000092c89  /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)

  #06  pc 0000000000c00bad  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)

  at android.os.MessageQueue.nativePollOnce (Native method)

  at android.os.MessageQueue.next (MessageQueue.java:323)

  at android.os.Looper.loop (Looper.java:136)

  at android.os.HandlerThread.run (HandlerThread.java:61)

“AudioThread” tid=35 Native 

“AudioThread” prio=5 tid=35 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05d30 self=0x91d4e700

  | sysTid=29847 nice=0 cgrp=default sched=0/0 handle=0x888f0920

  | state=S schedstat=( 61379851 66400050 365 ) utm=4 stm=1 core=0 HZ=100

  | stack=0x887f4000-0x887f6000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d8  /system/lib/libc.so (syscall+32)

  #01  pc 0000000000046a5d  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)

  #02  pc 0000000000052455  /data/app/com.android.chrome-2/base.apk (???)

“Chrome_InProcGpuThread” tid=36 Native 

“Chrome_InProcGpuThread” prio=7 tid=36 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05dc0 self=0x91d4ec00

  | sysTid=29856 nice=-4 cgrp=default sched=0/0 handle=0x87bff920

  | state=S schedstat=( 777869926 207218412 1197 ) utm=58 stm=18 core=0 HZ=100

  | stack=0x87b03000-0x87b05000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d8  /system/lib/libc.so (syscall+32)

  #01  pc 0000000000046a5d  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)

  #02  pc 0000000000052455  /data/app/com.android.chrome-2/base.apk (???)

“Chrome_InProcRendererThread” tid=37 Native 

“Chrome_InProcRendererThread” prio=5 tid=37 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05e50 self=0x91d4f100

  | sysTid=29857 nice=0 cgrp=default sched=0/0 handle=0x87b00920

  | state=S schedstat=( 4567836340 1533877380 4651 ) utm=395 stm=61 core=4 HZ=100

  | stack=0x87a04000-0x87a06000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d8  /system/lib/libc.so (syscall+32)

  #01  pc 0000000000046a5d  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)

  #02  pc 0000000000052455  /data/app/com.android.chrome-2/base.apk (???)

“TaskSchedulerBa” tid=39 Native 

“TaskSchedulerBa” prio=5 tid=39 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c05ee0 self=0x90da7a00

  | sysTid=29842 nice=0 cgrp=default sched=0/0 handle=0x8e164920

  | state=S schedstat=( 20969526 11655944 156 ) utm=0 stm=0 core=1 HZ=100

  | stack=0x8e068000-0x8e06a000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d8  /system/lib/libc.so (syscall+32)

  #01  pc 0000000000046a5d  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)

  #02  pc 0000000000052455  /data/app/com.android.chrome-2/base.apk (???)

“GAC_Executor[1]” tid=40 Waiting 

“GAC_Executor[1]” prio=5 tid=40 Waiting

  | group=“main” sCount=1 dsCount=0 obj=0x12c05f70 self=0x91d4f600

  | sysTid=29865 nice=0 cgrp=default sched=0/0 handle=0x87282920

  | state=S schedstat=( 5611615 19528593 30 ) utm=0 stm=0 core=7 HZ=100

  | stack=0x87180000-0x87182000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x0960ca03> (a java.lang.Object)

  at java.lang.Thread.parkFor$ (Thread.java:2127)

  • locked <0x0960ca03> (a java.lang.Object)

  at sun.misc.Unsafe.park (Unsafe.java:325)

  at java.util.concurrent.locks.LockSupport.park (LockSupport.java:161)

  at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2035)

  at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)

  at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1058)

  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1118)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)

  at com.google.android.gms.internal.ef.run (unavailable)

  at java.lang.Thread.run (Thread.java:761)

“Compositor” tid=42 Native 

“Compositor” prio=7 tid=42 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c0c0d0 self=0x90d91d00

  | sysTid=29862 nice=-4 cgrp=default sched=0/0 handle=0x8757f920

  | state=S schedstat=( 347112703 139003327 1064 ) utm=30 stm=3 core=6 HZ=100

  | stack=0x87483000-0x87485000 stackSize=1014KB

  | held mutexes=

  #00  pc 00000000000174d4  /system/lib/libc.so (syscall+28)

  #01  pc 0000000000046a5d  /system/lib/libc.so (_ZL24__pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102)

  #02  pc 0000000000039bb1  /data/app/com.android.chrome-2/base.apk (???)

“JavaBridge” tid=44 Native 

“JavaBridge” prio=7 tid=44 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c0c160 self=0x87ecef00

  | sysTid=29875 nice=0 cgrp=default sched=0/0 handle=0x8557f920

  | state=S schedstat=( 39748072 32168181 174 ) utm=2 stm=1 core=2 HZ=100

  | stack=0x8547d000-0x8547f000 stackSize=1038KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 0000000000011d57  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)

  #04  pc 0000000000011c53  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26)

  #05  pc 0000000000092c89  /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)

  #06  pc 0000000000c00bad  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)

  at android.os.MessageQueue.nativePollOnce (Native method)

  at android.os.MessageQueue.next (MessageQueue.java:323)

  at android.os.Looper.loop (Looper.java:136)

  at android.os.HandlerThread.run (HandlerThread.java:61)

“pool-2-thread-1” tid=45 Waiting 

“pool-2-thread-1” prio=5 tid=45 Waiting

  | group=“main” sCount=1 dsCount=0 obj=0x12c0c1f0 self=0x87ecf400

  | sysTid=29878 nice=0 cgrp=default sched=0/0 handle=0x850ff920

  | state=S schedstat=( 19415525 14839164 53 ) utm=0 stm=1 core=1 HZ=100

  | stack=0x84ffd000-0x84fff000 stackSize=1038KB

  | held mutexes=

  at java.lang.Object.wait! (Native method)

  • waiting on <0x0d151d80> (a java.lang.Object)

  at java.lang.Thread.parkFor$ (Thread.java:2127)

  • locked <0x0d151d80> (a java.lang.Object)

  at sun.misc.Unsafe.park (Unsafe.java:325)

  at java.util.concurrent.locks.LockSupport.park (LockSupport.java:161)

  at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2035)

  at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)

  at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1058)

  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1118)

  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)

  at java.lang.Thread.run (Thread.java:761)

“LooperProvider” tid=51 Native 

“LooperProvider” prio=5 tid=51 Native

  | group=“main” sCount=1 dsCount=0 obj=0x12c0c280 self=0x94d04900

  | sysTid=29918 nice=0 cgrp=default sched=0/0 handle=0x7fdaf920

  | state=S schedstat=( 12022244 33301977 50 ) utm=0 stm=0 core=0 HZ=100

  | stack=0x7fcad000-0x7fcaf000 stackSize=1038KB

  | held mutexes=

  #00  pc 0000000000048348  /system/lib/libc.so (__epoll_pwait+20)

  #01  pc 0000000000019e9d  /system/lib/libc.so (epoll_pwait+60)

  #02  pc 0000000000019ecd  /system/lib/libc.so (epoll_wait+12)

  #03  pc 0000000000011d57  /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118)

  #04  pc 0000000000011c53  /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26)

  #05  pc 0000000000092c89  /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)

  #06  pc 0000000000c00bad  /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+96)

  at android.os.MessageQueue.nativePollOnce (Native method)

  at android.os.MessageQueue.next (MessageQueue.java:323)

  at android.os.Looper.loop (Looper.java:136)

  at android.os.HandlerThread.run (HandlerThread.java:61)

“Signal Catcher” tid=3 Runnable 

“Signal Catcher” daemon prio=5 tid=3 Runnable

  | group=“system” sCount=0 dsCount=0 obj=0x12c050d0 self=0xa7015200

  | sysTid=29664 nice=0 cgrp=default sched=0/0 handle=0xb2006920

  | state=R schedstat=( 97381620 17337132 108 ) utm=2 stm=6 core=6 HZ=100

  | stack=0xb1f0a000-0xb1f0c000 stackSize=1014KB

  | held mutexes= “mutator lock”(shared held)

  #00  pc 0000000000351ba1  /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128)

  #01  pc 00000000003323a5  /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+308)

  #02  pc 00000000003443c1  /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+620)

  #03  pc 000000000033e3cb  /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+330)

  #04  pc 000000000033e0c7  /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+586)

  #05  pc 000000000033de1f  /system/lib/libart.so (_ZN3art10ThreadList14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+574)

  #06  pc 00000000003232b5  /system/lib/libart.so (_ZN3art7Runtime14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+124)

  #07  pc 0000000000327d3b  /system/lib/libart.so (_ZN3art13SignalCatcher13HandleSigQuitEv+1394)

  #08  pc 0000000000326ead  /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+352)

  #09  pc 0000000000046ed3  /system/lib/libc.so (_ZL15__pthread_startPv+22)

  #10  pc 0000000000019aed  /system/lib/libc.so (__start_thread+6)

“HeapTaskDaemon” tid=7 Blocked 

“HeapTaskDaemon” daemon prio=5 tid=7 Blocked

  | group=“system” sCount=1 dsCount=0 obj=0x12c05310 self=0xa7016600

  | sysTid=29668 nice=0 cgrp=default sched=0/0 handle=0xb1afa920

  | state=S schedstat=( 8944132054 588649333 2817 ) utm=801 stm=92 core=7 HZ=100

  | stack=0xb19f8000-0xb19fa000 stackSize=1038KB

  | held mutexes=

  #00  pc 00000000000174d4  /system/lib/libc.so (syscall+28)

  #01  pc 00000000000b6fc9  /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)

  #02  pc 00000000001b51e5  /system/lib/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+288)

  #03  pc 00000000001b585d  /system/lib/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+44)

  #04  pc 000000000042a41f  /data/dalvik-cache/arm/system@framework@boot.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+74)

  at dalvik.system.VMRuntime.runHeapTasks (Native method)

  • waiting to lock an unknown object

  at java.lang.Daemons$HeapTaskDaemon.run (Daemons.java:433)

  at java.lang.Thread.run (Thread.java:761)

apTaskDaemon" tid=7 Blocked 

“HeapTaskDaemon” daemon prio=5 tid=7 Blocked | group=“system” sCount=1 dsCount=0 obj=0x12c05310 self=0xa7016600 | sysTid=29668 nice=0 cgrp=default sched=0/0 handle=0xb1afa920 | state=S schedstat=( 8944132054 588649333 2817 ) utm=801 stm=92 core=7 HZ=100 | stack=0xb19f8000-0xb19fa000 stackSize=1038KB | held mutexes=

 

#00 pc 00000000000174d4 /system/lib/libc.so (syscall+28)

 

#01 pc 00000000000b6fc9 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92)

 

#02 pc 00000000001b51e5 /system/lib/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+288)

 

#03 pc 00000000001b585d /system/lib/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+44)

 

#04 pc 000000000042a41f /data/dalvik-cache/arm/system@framework@boot.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+74)

 

at dalvik.system.VMRuntime.runHeapTasks (Native method)

  • waiting to lock an unknown object

 

at java.lang.Daemons$HeapTaskDaemon.run (Daemons.java:433)

 

at java.lang.Thread.run (Thread.java:761)

Thank you for the report, I don’t think they’re are connected, but it is worth looking into. Thank you. It would be nice if you could provide a sample app where you are getting this errors, and submit a bug with them.

OK some some crashes have reduced which is great.  Here is a long stack trace (from today using 3175) which might help @vlad?

#00 pc 00000000000a2f94 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libopenal.so #01 pc 0000000000016874 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libopenal.so (alcCreateContext+436) #02 pc 0000000000005ff7 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libalmixer.so (ALmixer\_Init+214) #03 pc 000000000011f7fc /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #04 pc 00000000000fe0ac /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #05 pc 000000000000cc04 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #06 pc 000000000001ce18 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #07 pc 000000000000d050 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #08 pc 000000000000c35c /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #09 pc 000000000000d1c8 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #10 pc 00000000000055a0 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so (lua\_pcall+88) #11 pc 0000000000006ff8 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #12 pc 000000000000cc04 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #13 pc 000000000001ce18 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #14 pc 000000000000d050 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #15 pc 000000000000c35c /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #16 pc 000000000000d1c8 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so #17 pc 00000000000055a0 /data/app/com.spheregamestudios.spacecity-1/lib/arm/liblua.so (lua\_pcall+88) #18 pc 00000000000f59e8 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #19 pc 00000000000d7b80 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #20 pc 000000000012f540 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #21 pc 00000000001314f0 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #22 pc 000000000012f9f8 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #23 pc 0000000000130754 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #24 pc 000000000002b530 /data/app/com.spheregamestudios.spacecity-1/lib/arm/libcorona.so #25 pc 000000000094d24d /data/app/com.spheregamestudios.spacecity-1/oat/arm/base.odex

Dear, is there any new solution to this problem? I’m also being very impacted by these flaws!

@greg.brady that seems to be an OpenAL crash. You can try to build with audio2 for Android and see if that works for you. Please be aware, there are a couple of known bugs with the audio2 setup so you will need to test it thoroughly.

To use audio2 you can put this at the top of main.lua

if audio2 then audio=audio2; al=nil; print("=====\>\> Using audio2!!! \<\<=====") end

Note, this only changes audio to use audio to on a real Android device. The simulator, iOS or other platforms will continue to use the OpenAL based audio.

There are reports that this clears up the OpenAL crash error, but we still consider this beta, so testing your app very well is important before you push an update.

@joeversh, please see my response on your other post.

Rob

I have the same issue and have no luck fixing this? Did it fix for you, if yes how?

fyi, seems that 3175 has “helped” re openal/almixer, but isn’t completely fixed, still the #1 ANR with new build:  (bitmap stuff having been previously resolved)

Build 2017.3179 (Nov 24 2017 03:07:35) executing service org.davebollinger.dropstack/shared.google.play.services.base.PackageStateChangedService Example devices: Samsung Galaxy S5 (kltetfnvzw), 2048MB RAM, Android 6.0 bq Aquaris X (bardock), 3072MB RAM, Android 7.1 Samsung Galaxy Note8 (greatlte), 6144MB RAM, Android 7.1 Samsung Galaxy A7(2016) (a7xltechn), 3072MB RAM, Android 6.0 "main" tid=1 Native "main" prio=5 tid=1 Native | group="main" sCount=1 dsCount=0 obj=0x75d64360 self=0xb48b6500 | sysTid=30665 nice=-4 cgrp=default sched=0/0 handle=0xb6fc6b4c | state=S schedstat=( 0 0 0 ) utm=84 stm=37 core=3 HZ=100 | stack=0xbe11a000-0xbe11c000 stackSize=8MB | held mutexes= #00 pc 0000000000017638 /system/lib/libc.so (syscall+28) #01 pc 000000000003fd35 /system/lib/libc.so (pthread\_join+124) #02 pc 0000000000015b58 /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libopenal.so (alcDestroyContext+516) #03 pc 0000000000008ed7 /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libalmixer.so (ALmixer\_Quit+230) #04 pc 000000000011d53c /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???) #05 pc 000000000011f970 /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???) #06 pc 000000000012fa64 /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???) #07 pc 000000000002b6fc /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (???) #08 pc 000000000002e9f8 /mnt/asec/org.davebollinger.dropstack-2/lib/arm/libcorona.so (Java\_com\_ansca\_corona\_JavaToNativeShim\_nativeDone+28) #09 pc 00000000001dbff5 /data/dalvik-cache/arm/mnt@asec@org.davebollinger.dropstack-2@base.apk@classes.dex (Java\_com\_ansca\_corona\_JavaToNativeShim\_nativeDone\_\_J+80) at com.ansca.corona.JavaToNativeShim.nativeDone (Native method) at com.ansca.corona.JavaToNativeShim.destroy (JavaToNativeShim.java:277) at com.ansca.corona.Controller.destroy (Controller.java:286) - locked \<0x0641162d\> (a com.ansca.corona.Controller) at com.ansca.corona.CoronaRuntime.dispose (CoronaRuntime.java:88) at com.ansca.corona.CoronaActivity.onDestroy (CoronaActivity.java:1732) at android.app.Activity.performDestroy (Activity.java:7130) at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1171) at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5117) at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:5162) at android.app.ActivityThread.-wrap9 (ActivityThread.java) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1880) at android.os.Handler.dispatchMessage (Handler.java:102) at android.os.Looper.loop (Looper.java:148) at android.app.ActivityThread.main (ActivityThread.java:7325) at java.lang.reflect.Method.invoke! (Native method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)

can I ask what android app is keeps crashing ? URL to the app ?

https://play.google.com/store/apps/details?id=org.davebollinger.dropstack

davebollinger, thank you for the URL… I played for a while the game, it works for me… maybe you know how to reproduce the bug/crash ?

Nope, unfortunately that’s heart of the problem - if I knew how to reproduce and/or what was causing it, and thought there was something/anything that *I* could do about it, then I’d have tried it.  I’ve ran it many hundreds of times on devices that have reported the problem but haven’t yet been able to duplicate it myself.

Plus, it’s only a ~1% problem, and seemingly only on certain devices, so it takes a lot of user sessions to reveal the problem via android vitals reporting.  But it happens enough to impact ranking, despite my inability to reproduce.

Based on all the “destroy/dispose” -type stuff that’s going on, and particularly destroylng the openal context, my “feeling” is that it is only happening at app close, though there’s very little that I’m doing at app close that I can even alter in my own code, and most of the crash report seems to stem from deeply internal Corona shutdown stuff.  (granted that I have no ability to trace the internal calls, so my guesses are just based on the phrases present in the stack trace)

I run around 0.5% ANR/crash rate but when that is thousands of sessions per day it is, as @dave points out, a bad ranking signal for sure.

This problem is not something, I believe, we are doing as developers.  If it was I would suspect the percentages would be considerably higher.

Vlad has confirmed a lot of the error logs are occurring when our apps close… surely core could simply suppress errors raised when an app is closing as a simple fix.

@vitaly1, @davebollinger: I have several apps that reproduce the ANR that Dave reported.

Here’s one: https://play.google.com/store/apps/details?id=se.appfamily.puzzle.super2.free

Steps to reproduce:

  1. Start app

  2. Exit by pressing back button twice (on my Pixel C tablet, Android 8.0.0 I need to swipe up from bottom to reveal status bar since app runs in Immersive mode)

Repeat the steps above, and after 2 - 8 repetitions the app will start to a black screen. What has actually happened is that the previous instance has not shut down properly, so the app has re-opened to a state where there is no UI. Tap the screen and the back button about 50 times and eventually the OS will dump the trace file.

Trace file: https://www.dropbox.com/s/eg7ag0wowurc6ss/ANR_traces.txt?dl=0

Some pointers for the file (start, exit, restart): https://www.dropbox.com/s/qg7twipk508z0ds/ANR_notes.txt?dl=0

Logcat output: https://www.dropbox.com/s/4yxddl0mn33t4ts/ANR_logcat.txt?dl=0

I’ve tried these steps in a bunch of my apps.

For me, the ANR happens in apps that initialize Kidoz and cache ads. I have tried the following configurations:

  • Rewarded

  • Panel and rewarded and intersitial

  • Panel and interstitial 

The ANR happens in both previous and current Kidoz versions.

The ANR does NOT happen in apps where Kidoz plugin is configured but un-used (i.e., if you pay to remove all ads). It also does NOT happen in apps which do not use Kidoz.

Important: I don’t think this is to do with Kidoz specifically, but I’m exhausted from chasing this issue so have not tried builds with just Admob. For example, I believe that Dave does NOT use Kidoz, yet sees this ANR. Perhaps something to do with plugins storing ad data on exit, who knows.

Thanks Per!  I’ll try reproducing via back button spam.

I’ll also confirm that I’m NOT using Kidoz, but am using Admob.  I can also confirm that it’s not isolated to a single app, but the session counts and thus quantity of crash reports vary considerably, so not all apps demonstrate the fault so “obviously”.  but fe, here’s another one with enough daily volume to easily notice:  link (also built with 2017.3179, but I won’t reproduce the trace here again, as it’s essentially the same one previously provided for the other app)

Based on Per’s comment, I also checked a paid-only no-ads app, and true enough it has had ZERO crashes OR anr’s over the last 60 days (longest reporting period available via gplay vitals) across ALL versions (including those that were released before the recent attempt to fix openal/almixer).  However, that’s perhaps only of anecdotal value, because unfortunately that paid app doesn’t have anywhere near the same daily volume.  (still, “zero” is a pretty good rate! :D)

[edit: forum editor keeps deleting the url]

Please note I’m not “spamming” the back button. I simply start the app, and exit via back button with double-press (I have a key listener requiring two quick presses to exit, in order to avoid accidental exit).

I’ve experimented with os.exit() now, in the system exit event handler. Seems to trigger a crash rather than an ANR. Feels like it happens less often than the ANR. Don’t know if those backtraces will have anything useful, but I found it interesting to see the following after Corona reports the applicationExit:

a) chromium. I guess a webview for the ads?

B) Two network requests left hanging.

I’m a bit tired so these things might be completely unrelated and simply caused by the unclean exit. But perhaps something related to the ad plugin is not cleaned up in certain situations.

12-11 21:21:42.094  1610  1610 I Corona  : /DUMP: [System] applicationExit  (@D:\Dropbox\Code\workspace-Corona\DevProjects\Pop Balloons Rewarded unlock\main.lua:func:280)

12-11 21:21:42.104  1610  2049 E chromium : [ERROR:gl_fence_egl.cc(34)] Failed to get EGLSync attribute. error code:12300

12-11 21:21:42.104  1610  1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=1 refcnt=1

12-11 21:21:42.115  1610  1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=1 refcnt=1

12-11 21:21:42.137  1610  1610 D NvOsDebugPrintf: NvEglHandle: Unfreed handle upon egl deinit: type=2 refcnt=2

12-11 21:21:42.264   948  1198 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [LISTEN id=56, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@477a37c)

12-11 21:21:42.265   948  4258 I ActivityManager: Process se.appfamily.balloonpopfree (pid 1610) has died: cch  CEM

12-11 21:21:42.265   948  1029 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [LISTEN id=56, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]

12-11 21:21:42.265   948  1545 I WindowManager: WIN DEATH: Window{13c268d u0 se.appfamily.balloonpopfree/com.ansca.corona.CoronaActivity}

12-11 21:21:42.266   948  1401 D ConnectivityService: ConnectivityService NetworkRequestInfo binderDied(NetworkRequest [LISTEN id=55, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ], android.os.BinderProxy@8a89405)

12-11 21:21:42.266  1827  1827 I cr_ChildProcessService: Destroying ChildProcessService pid=1827

12-11 21:21:42.267   948  1029 E ConnectivityService: RemoteException caught trying to send a callback msg for NetworkRequest [LISTEN id=55, [ Capabilities: INTERNET&NOT_RESTRICTED&TRUSTED&FOREGROUND] ]

12-11 21:21:42.269   948  4258 I ActivityManager: Killing 1827:com.android.chrome:sandboxed_process0/u0a672i12 (adj 0): isolated not needed

12-11 21:21:42.270   948   969 W ActivityManager: setHasOverlayUi called on unknown pid: 1610

12-11 21:21:42.296   948   964 W zygote64: failed to open /acct/uid_99012/pid_1827/cgroup.procs: No such file or directory

12-11 21:21:46.721   948   961 E memtrack: Couldn’t load memtrack module

12-11 21:21:46.721   948   961 W android.os.Debug: failed to get memory consumption info: -1

I’m getting more and more frequent reports of this issue:

signal 5 (SIGTRAP), code 1 (TRAP\_BRKPT)

\*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* pid: 0, tid: 0 \>\>\> com.kavrakids.Cats\_Dogs\_Photo\_Jigsaw\_Puzzle \<\<\< backtrace: #00 pc 00000000002dfc72 /data/app/com.google.android.webview-2/lib/arm/libwebviewchromium.so

Currently I don’t have more info than this, but googling it gave this: https://groups.google.com/forum/#!topic/google-admob-ads-sdk/I6giN0VbVa0

I’m not using Admob, but I am using Kidoz plugin and calls system.openURL in a couple of places. Nothing fancy. 

When is the libwebview library used?

I have 2 very frequent crashes that puts me above the threshold for a bunch of my apps:

signal 5 (SIGTRAP), code 4 (TRAP\_HWBKPT) Lenovo Tab 7 Essential (TB-7304F), 1024MB RAM, Android 7.0 \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* pid: 0, tid: 0 \>\>\> com.yogergames.peg\_puzzle\_1 \<\<\< backtrace: #00 pc 0000000000593c5a /data/app/com.android.chrome-1/base.apk

signal 5 (SIGTRAP), code 1 (TRAP\_BRKPT) base.apk Sony Xperia XZs (SO-03J), 4096MB RAM, Android 7.1 \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* \*\*\* pid: 0, tid: 0 \>\>\> com.kavrakids.Cats\_Dogs\_Photo\_Jigsaw\_Puzzle \<\<\< backtrace: #00 pc 0000000000593c5a /data/app/com.android.chrome-2/base.apk

Both using Corona version 2017.3184. I haven’t been able to reproduce.

I’m using plugins

plugin.kidoz

plugin.google.iap.v3

plugin.google.play.services

I’m calling system.openURL from a couple of places to open google play links / youtube / facebook. 

This plugin needs to go away:  plugin.google.play.services

I don’t know if that’s the cause, but it’s based on Google Play v4 and they are now on v11.

Rob

Thanks Rob, tried it (actually just remove the plugin) and get the crashes a bit less frequently now. I’ll keep an eye on it for a few more days.