I am getting the Stack trace shown below when I startup my application. I'm at a loss for how to find out what is causing. It. I look at all the entry points into my application, but while they stay in the same classes the entry point moves around. It leads me to believe that the way to interpret this is as a dump of all the active running threads? Is this correct?
Some background about what is going on, this only seems to happen when my application is downloading a bunch of files it needs via OkHttp. So there are 2-3 files it downloads in parallel and unzips to start up. If I have already processed these files on a previous run I don't have the issues.
Another thing to note, this only seems to happen, when the device is being launched and debugged from Android Studio (2.2). It's possible that it happens when not attached, but I have not seen it.
Last, this is also only a problem on Android N
Runtime aborting...
Aborting thread:
"Jit thread pool worker thread 0" prio=5 tid=2 WaitingForDebuggerSend (still starting up)
| group="" sCount=0 dsCount=0 obj=0x0 self=0x7f74c0e000
| sysTid=23054 nice=9 cgrp=default sched=0/0 handle=0x7f7bb07450
| state=R schedstat=( 686048383 171778965 676 ) utm=58 stm=9 core=4 HZ=100
| stack=0x7f7ba09000-0x7f7ba0b000 stackSize=1021KB
| held mutexes= "abort lock"
native: #00 pc 0000000000479ebc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
native: #01 pc 0000000000479eb8 /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+216)
native: #02 pc 000000000044e260 /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+480)
native: #03 pc 000000000043c33c /system/lib64/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+56)
native: #04 pc 000000000043c1b8 /system/lib64/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+668)
native: #05 pc 000000000042fd34 /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+144)
native: #06 pc 00000000000e4d78 /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+1208)
native: #07 pc 00000000002f5f48 /system/lib64/libart.so (_ZN3art4JDWP9JdwpState19SetWaitForJdwpTokenEm+1000)
native: #08 pc 00000000002f5468 /system/lib64/libart.so (_ZN3art4JDWP9JdwpState24AcquireJdwpTokenForEventEm+124)
native: #09 pc 00000000002f4d20 /system/lib64/libart.so (_ZN3art4JDWP9JdwpState29SendRequestAndPossiblySuspendEPNS0_9ExpandBufENS0_17JdwpSuspendPolicyEm+248)
native: #10 pc 00000000002f9d0c /system/lib64/libart.so (_ZN3art4JDWP9JdwpState16PostClassPrepareEPNS_6mirror5ClassE+1380)
native: #11 pc 0000000000123ba4 /system/lib64/libart.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+804)
native: #12 pc 00000000001236e4 /system/lib64/libart.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+1484)
native: #13 pc 0000000000124674 /system/lib64/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+944)
native: #14 pc 000000000010bfb4 /system/lib64/libart.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEE+200)
native: #15 pc 00000000001910a0 /system/lib64/libart-compiler.so (_ZNK3art19HInstructionBuilder25IsOutermostCompilingClassEt+732)
native: #16 pc 0000000000190810 /system/lib64/libart-compiler.so (_ZN3art19HInstructionBuilder16BuildNewInstanceEtj+852)
native: #17 pc 000000000018aa6c /system/lib64/libart-compiler.so (_ZN3art19HInstructionBuilder21ProcessDexInstructionERKNS_11InstructionEj+3436)
native: #18 pc 0000000000189534 /system/lib64/libart-compiler.so (_ZN3art19HInstructionBuilder5BuildEv+1600)
native: #19 pc 00000000001626b8 /system/lib64/libart-compiler.so (_ZN3art13HGraphBuilder10BuildGraphEv+136)
native: #20 pc 00000000001c113c /system/lib64/libart-compiler.so (_ZNK3art18OptimizingCompiler10TryCompileEPNS_14ArenaAllocatorEPNS_19CodeVectorAllocatorEPKNS_7DexFile8CodeItemEjNS_10InvokeTypeEtjP8_jobjectRKS5_NS_6HandleINS_6mirror8DexCacheEEEPNS_9ArtMethodEb+3280)
native: #21 pc 00000000001c35d8 /system/lib64/libart-compiler.so (_ZN3art18OptimizingCompiler10JitCompileEPNS_6ThreadEPNS_3jit12JitCodeCacheEPNS_9ArtMethodEb+472)
native: #22 pc 0000000000151bb8 /system/lib64/libart-compiler.so (_ZN3art3jit11JitCompiler13CompileMethodEPNS_6ThreadEPNS_9ArtMethodEb+284)
native: #23 pc 000000000030d0b8 /system/lib64/libart.so (_ZN3art3jit3Jit13CompileMethodEPNS_9ArtMethodEPNS_6ThreadEb+492)
native: #24 pc 000000000030efa4 /system/lib64/libart.so (_ZN3art3jit14JitCompileTask3RunEPNS_6ThreadE+656)
native: #25 pc 0000000000466dd4 /system/lib64/libart.so (_ZN3art16ThreadPoolWorker3RunEv+88)
native: #26 pc 000000000046671c /system/lib64/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+116)
native: #27 pc 000000000006863c /system/lib64/libc.so (_ZL15__pthread_startPv+208)
native: #28 pc 000000000001d9fc /system/lib64/libc.so (__start_thread+16)
(no managed stack frames)
Dumping all threads without appropriate locks held: thread list lock mutator lock
All threads:
DALVIK THREADS (30):
"OkHttp http://172.31.6.143:8000/file/get/%7B%22ESN%22%3A%2235362607888370%22%2C%22Type%22%3A%22vPack%22%2C%22FolderName%22%3A%22ASR%7CEngine4%22%2C%22FileName%22%3A%22myFile1.dat%22%7D" prio=5 tid=22 Runnable
| group="" sCount=0 dsCount=0 obj=0x12e54310 self=0x7f5fe82c00
| sysTid=23374 nice=0 cgrp=default sched=0/0 handle=0x7f5eb1d450
| state=R schedstat=( 894025544 158405362 948 ) utm=76 stm=12 core=1 HZ=100
| stack=0x7f5ea1b000-0x7f5ea1d000 stackSize=1037KB
| held mutexes= "mutator lock"(shared held)
native: #00 pc 0000000000479ebc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
native: #01 pc 0000000000479eb8 /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+216)
native: #02 pc 000000000044e260 /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+480)
native: #03 pc 0000000000465ba8 /system/lib64/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+832)
native: #04 pc 000000000044f1c4 /system/lib64/libart.so (_ZN3art6Thread21RunCheckpointFunctionEv+192)
native: #05 pc 00000000005483cc /system/lib64/libart.so (_ZN3art14JniMethodStartEPNS_6ThreadE+176)
native: #06 pc 0000000000b29074 /system/framework/arm64/boot-framework.oat (Java_android_util_Log_println_1native__IILjava_lang_String_2Ljava_lang_String_2+128)
at android.util.Log.println_native(Native method)
at android.util.Log.i(Log.java:164)
at com.dematic.shared.common.Logger.i(Logger.java:236)
at com.dematic.workflow.requests.iws.FileDownloadRequest$1.onResponse(FileDownloadRequest.java:285)
at com.squareup.okhttp.Call$AsyncCall.execute(Call.java:177)
at com.squareup.okhttp.internal.NamedRunnable.run(NamedRunnable.java:33)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
"WelcomeActivity-Callback Executor" prio=5 tid=13 Runnable
| group="" sCount=0 dsCount=0 obj=0x12d20670 self=0x7f6201fe00
| sysTid=23344 nice=0 cgrp=default sched=0/0 handle=0x7f61898450
| state=R schedstat=( 2195523146 66879832 461 ) utm=219 stm=0 core=5 HZ=100
| stack=0x7f61796000-0x7f61798000 stackSize=1037KB
| held mutexes= "mutator lock"(shared held)
native: #00 pc 0000000000479ebc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
native: #01 pc 0000000000479eb8 /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+216)
native: #02 pc 000000000044e260 /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+480)
native: #03 pc 0000000000465ba8 /system/lib64/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+832)
native: #04 pc 000000000044f1c4 /system/lib64/libart.so (_ZN3art6Thread21RunCheckpointFunctionEv+192)
native: #05 pc 00000000002a66a8 /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+2672)
native: #06 pc 0000000000260a80 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+484)
native: #07 pc 000000000026670c /system/lib64/libart.so (_ZN3art11interpreter33ArtInterpreterToInterpreterBridgeEPNS_6ThreadEPKNS_7DexFile8CodeItemEPNS_11ShadowFrameEPNS_6JValueE+184)
native: #08 pc 0000000000286a7c /system/lib64/libart.so (_ZN3art11interpreter6DoCallILb0ELb0EEEbPNS_9ArtMethodEPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+568)
native: #09 pc 00000000002b8da4 /system/lib64/libart.so (_ZN3art11interpreterL8DoInvokeILNS_10InvokeTypeE4ELb0ELb0EEEbPNS_6ThreadERNS_11ShadowFrameEPKNS_11InstructionEtPNS_6JValueE+1216)
native: #10 pc 00000000002b4ddc /system/lib64/libart.so (_ZN3art11interpreter17ExecuteSwitchImplILb0ELb0EEENS_6JValueEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameES2_b+61860)
native: #11 pc 0000000000260a80 /system/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadEPKNS_7DexFile8CodeItemERNS_11ShadowFrameENS_6JValueEb+484)
native: #12 pc 00000000005497d8 /system/lib64/libart.so (artQuickToInterpreterBridge+832)
native: #13 pc 00000000000db2ac /system/lib64/libart.so (art_quick_to_interpreter_bridge+92)
native: #14 pc 00000000000d1bb4 /system/lib64/libart.so (art_quick_invoke_stub+580)
native: #15 pc 00000000000de87c /system/lib64/libart.so (_ZN3art9ArtMethod6InvokeEPNS_6ThreadEPjjPNS_6JValueEPKc+208)
native: #16 pc 000000000042974c /system/lib64/libart.so (_ZN3artL18InvokeWithArgArrayERKNS_33ScopedObjectAccessAlreadyRunnableEPNS_9ArtMethodEPNS_8ArgArrayEPNS_6JValueEPKc+108)
native: #17 pc 000000000042aa50 /system/lib64/libart.so (_ZN3art35InvokeVirtualOrInterfaceWithJValuesERKNS_33ScopedObjectAccessAlreadyRunnableEP8_jobjectP10_jmethodIDP6jvalue+372)
native: #18 pc 000000000044a040 /system/lib64/libart.so (_ZN3art6Thread14CreateCallbackEPv+1100)
native: #19 pc 000000000006863c /system/lib64/libc.so (_ZL15__pthread_startPv+208)
native: #20 pc 000000000001d9fc /system/lib64/libc.so (__start_thread+16)
at com.dematic.workflow.activities.CommunicationFragment$5.run(CommunicationFragment.java:510)
at java.lang.Thread.run(Thread.java:761)
"Jit thread pool worker thread 0" prio=5 tid=2 Runnable (still starting up)
| group="" sCount=0 dsCount=0 obj=0x0 self=0x7f74c0e000
| sysTid=23054 nice=9 cgrp=default sched=0/0 handle=0x7f7bb07450
| state=R schedstat=( 713413070 174046620 681 ) utm=60 stm=10 core=4 HZ=100
| stack=0x7f7ba09000-0x7f7ba0b000 stackSize=1021KB
| held mutexes= "abort lock" "mutator lock"(shared held)
native: #00 pc 0000000000479ebc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
native: #01 pc 0000000000479eb8 /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+216)
native: #02 pc 000000000044e260 /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+480)
native: #03 pc 0000000000465ba8 /system/lib64/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+832)
native: #04 pc 000000000045dd90 /system/lib64/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+476)
native: #05 pc 000000000045d98c /system/lib64/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+288)
native: #06 pc 000000000043c16c /system/lib64/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+592)
native: #07 pc 000000000042fd34 /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+144)
native: #08 pc 00000000000e4d78 /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+1208)
native: #09 pc 00000000002f5f48 /system/lib64/libart.so (_ZN3art4JDWP9JdwpState19SetWaitForJdwpTokenEm+1000)
native: #10 pc 00000000002f5468 /system/lib64/libart.so (_ZN3art4JDWP9JdwpState24AcquireJdwpTokenForEventEm+124)
native: #11 pc 00000000002f4d20 /system/lib64/libart.so (_ZN3art4JDWP9JdwpState29SendRequestAndPossiblySuspendEPNS0_9ExpandBufENS0_17JdwpSuspendPolicyEm+248)
native: #12 pc 00000000002f9d0c /system/lib64/libart.so (_ZN3art4JDWP9JdwpState16PostClassPrepareEPNS_6mirror5ClassE+1380)
native: #13 pc 0000000000123ba4 /system/lib64/libart.so (_ZN3art11ClassLinker11DefineClassEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEERKNS_7DexFileERKNS9_8ClassDefE+804)
native: #14 pc 00000000001236e4 /system/lib64/libart.so (_ZN3art11ClassLinker26FindClassInPathClassLoaderERNS_33ScopedObjectAccessAlreadyRunnableEPNS_6ThreadEPKcmNS_6HandleINS_6mirror11ClassLoaderEEEPPNS8_5ClassE+1484)
native: #15 pc 0000000000124674 /system/lib64/libart.so (_ZN3art11ClassLinker9FindClassEPNS_6ThreadEPKcNS_6HandleINS_6mirror11ClassLoaderEEE+944)
native: #16 pc 000000000010bfb4 /system/lib64/libart.so (_ZN3art11ClassLinker11ResolveTypeERKNS_7DexFileEtNS_6HandleINS_6mirror8DexCacheEEENS4_INS5_11ClassLoaderEEE+200)
native: #17 pc 00000000001910a0 /system/lib64/libart-compiler.so (_ZNK3art19HInstructionBuilder25IsOutermostCompilingClassEt+732)
native: #18 pc 0000000000190810 /system/lib64/libart-compiler.so (_ZN3art19HInstructionBuilder16BuildNewInstanceEtj+852)
native: #19 pc 000000000018aa6c /system/lib64/libart-compiler.so (_ZN3art19HInstructionBuilder21ProcessDexInstructionERKNS_11InstructionEj+3436)
native: #20 pc 0000000000189534 /system/lib64/libart-compiler.so (_ZN3art19HInstructionBuilder5BuildEv+1600)
native: #21 pc 00000000001626b8 /system/lib64/libart-compiler.so (_ZN3art13HGraphBuilder10BuildGraphEv+136)
native: #22 pc 00000000001c113c /system/lib64/libart-compiler.so (_ZNK3art18OptimizingCompiler10TryCompileEPNS_14ArenaAllocatorEPNS_19CodeVectorAllocatorEPKNS_7DexFile8CodeItemEjNS_10InvokeTypeEtjP8_jobjectRKS5_NS_6HandleINS_6mirror8DexCacheEEEPNS_9ArtMethodEb+3280)
native: #23 pc 00000000001c35d8 /system/lib64/libart-compiler.so (_ZN3art18OptimizingCompiler10JitCompileEPNS_6ThreadEPNS_3jit12JitCodeCacheEPNS_9ArtMethodEb+472)
native: #24 pc 0000000000151bb8 /system/lib64/libart-compiler.so (_ZN3art3jit11JitCompiler13CompileMethodEPNS_6ThreadEPNS_9ArtMethodEb+284)
native: #25 pc 000000000030d0b8 /system/lib64/libart.so (_ZN3art3jit3Jit13CompileMethodEPNS_9ArtMethodEPNS_6ThreadEb+492)
native: #26 pc 000000000030efa4 /system/lib64/libart.so (_ZN3art3jit14JitCompileTask3RunEPNS_6ThreadE+656)
native: #27 pc 0000000000466dd4 /system/lib64/libart.so (_ZN3art16ThreadPoolWorker3RunEv+88)
native: #28 pc 000000000046671c /system/lib64/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+116)
native: #29 pc 000000000006863c /system/lib64/libc.so (_ZL15__pthread_startPv+208)
native: #30 pc 000000000001d9fc /system/lib64/libc.so (__start_thread+16)
(no managed stack frames)
"main" prio=5 tid=1 Native
| group="" sCount=1 dsCount=0 obj=0x749f7f58 self=0x7f7c495a00
| sysTid=23048 nice=0 cgrp=default sched=0/0 handle=0x7f8041da98
| state=S schedstat=( 1739699657 190601242 967 ) utm=160 stm=13 core=2 HZ=100
| stack=0x7ff8da1000-0x7ff8da3000 stackSize=8MB
| held mutexes=
kernel: __switch_to+0x8c/0x98
kernel: futex_wait_queue_me+0xd4/0x130
kernel: futex_wait+0xfc/0x210
kernel: do_futex+0xe0/0x920
kernel: SyS_futex+0x11c/0x1b0
kernel: cpu_switch_to+0x48/0x4c
native: #00 pc 000000000001bc6c /system/lib64/libc.so (syscall+28)
native: #01 pc 00000000000e70c8 /system/lib64/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+156)
native: #02 pc 00000000005486a0 /system/lib64/libart.so (_ZN3artL12GoToRunnableEPNS_6ThreadE+328)
native: #03 pc 0000000000548514 /system/lib64/libart.so (_ZN3art12JniMethodEndEjPNS_6ThreadE+28)
native: #04 pc 0000000000c2999c /system/framework/arm64/boot-framework.oat (Java_android_view_ThreadedRenderer_nSyncAndDrawFrame__J_3JI+184)
at android.view.ThreadedRenderer.nSyncAndDrawFrame(Native method)
at android.view.ThreadedRenderer.draw(ThreadedRenderer.java:789)
at android.view.ViewRootImpl.draw(ViewRootImpl.java:2796)
at android.view.ViewRootImpl.performDraw(ViewRootImpl.java:2604)
at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:2211)
at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1246)
at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6301)
at android.view.Choreographer$CallbackRecord.run(Choreographer.java:871)
at android.view.Choreographer.doCallbacks(Choreographer.java:683)
at android.view.Choreographer.doFrame(Choreographer.java:619)
at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:857)
at android.os.Handler.handleCallback(Handler.java:751)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6077)
at java.lang.reflect.Method.invoke!(Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
"Signal Catcher" prio=5 tid=3 WaitingInMainSignalCatcherLoop
| group="" sCount=1 dsCount=0 obj=0x12cb9160 self=0x7f721a0000
| sysTid=23055 nice=0 cgrp=default sched=0/0 handle=0x7f7ba06450
| state=S schedstat=( 3247347 22885365 73 ) utm=0 stm=0 core=3 HZ=100
| stack=0x7f7b90c000-0x7f7b90e000 stackSize=1005KB
| held mutexes=
kernel: __switch_to+0x8c/0x98
kernel: do_sigtimedwait+0xec/0x1dc
kernel: SyS_rt_sigtimedwait+0xd8/0x134
kernel: cpu_switch_to+0x48/0x4c
native: #00 pc 000000000006ac54 /system/lib64/libc.so (__rt_sigtimedwait+8)
native: #01 pc 0000000000024d00 /system/lib64/libc.so (sigwait+120)
native: #02 pc 000000000044093c /system/lib64/libart.so (_ZN3art9SignalSet4WaitEv+48)
native: #03 pc 00000000004403f8 /system/lib64/libart.so (_ZN3art13SignalCatcher13WaitForSignalEPNS_6ThreadERNS_9SignalSetE+232)
native: #04 pc 000000000043e98c /system/lib64/libart.so (_ZN3art13SignalCatcher3RunEPv+400)
native: #05 pc 000000000006863c /system/lib64/libc.so (_ZL15__pthread_startPv+208)
native: #06 pc 000000000001d9fc /system/lib64/libc.so (__start_thread+16)
(no managed stack frames)
"OkHttp http://172.31.6.143:8000/file/get/%7B%22ESN%22%3A%2235362607888370%22%2C%22Type%22%3A%22vPack%22%2C%22FolderName%22%3A%22Files%22%2C%22FileName%22%3A%22my_file2.zip%22%7D" prio=5 tid=28 Runnable
| group="" sCount=0 dsCount=0 obj=0x12e544c0 self=0x7f5fe83600
| sysTid=23376 nice=0 cgrp=default sched=0/0 handle=0x7f5dc8f450
| state=R schedstat=( 855558938 180884175 597 ) utm=80 stm=4 core=2 HZ=100
| stack=0x7f5db8d000-0x7f5db8f000 stackSize=1037KB
| held mutexes= "mutator lock"(shared held)
at java.util.Calendar.setFieldsComputed(Calendar.java:1596)
at java.util.GregorianCalendar.computeFields(GregorianCalendar.java:2257)
at java.util.Calendar.setTimeInMillis(Calendar.java:1122)
at java.util.GregorianCalendar.<init>(GregorianCalendar.java:622)
at java.util.Calendar.createCalendar(Calendar.java:1025)
at java.util.Calendar.getInstance(Calendar.java:1019)
at okio.AsyncTimeout$Watchdog.run(AsyncTimeout.java:286)
"AsyncTask #1" prio=5 tid=18 TimedWaiting
| group="" sCount=1 dsCount=0 obj=0x12cfa9d0 self=0x7f62100600
| sysTid=23353 nice=0 cgrp=default sched=0/0 handle=0x7f60d7f450
| state=S schedstat=( 3985209 2741668 39 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7f60c7d000-0x7f60c7f000 stackSize=1037KB
| held mutexes=
kernel: __switch_to+0x8c/0x98
kernel: futex_wait_queue_me+0xd4/0x130
kernel: futex_wait+0xfc/0x210
kernel: futex_wait_restart+0x54/0x80
kernel: sys_restart_syscall+0x18/0x24
kernel: cpu_switch_to+0x48/0x4c
native: #00 pc 000000000001bc70 /system/lib64/libc.so (syscall+32)
native: #01 pc 00000000000e7668 /system/lib64/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadEli+176)
native: #02 pc 000000000037947c /system/lib64/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadElibNS_11ThreadStateE+676)
native: #03 pc 0000000000000980 /system/framework/arm64/boot.oat (Java_java_lang_Object_wait__JI+140)
at java.lang.Object.wait!(Native method)
- waiting on <0x0eb4e8d7> (a java.lang.Object)
at java.lang.Thread.parkFor$(Thread.java:2127)
- locked <0x0eb4e8d7> (a java.lang.Object)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:201)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2077)
at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:438)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1057)
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)
"AsyncTask #2" prio=5 tid=19 TimedWaiting
| group="" sCount=1 dsCount=0 obj=0x12cfaa60 self=0x7f74c2e600
| sysTid=23354 nice=0 cgrp=default sched=0/0 handle=0x7f60c7a450
| state=S schedstat=( 3302761 2719690 40 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7f60b78000-0x7f60b7a000 stackSize=1037KB
| held mutexes=
kernel: __switch_to+0x8c/0x98
kernel: futex_wait_queue_me+0xd4/0x130
kernel: futex_wait+0xfc/0x210
kernel: futex_wait_restart+0x54/0x80
kernel: sys_restart_syscall+0x18/0x24
kernel: cpu_switch_to+0x48/0x4c
native: #00 pc 000000000001bc70 /system/lib64/libc.so (syscall+32)
native: #01 pc 00000000000e7668 /system/lib64/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadEli+176)
native: #02 pc 000000000037947c /system/lib64/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadElibNS_11ThreadStateE+676)
native: #03 pc 0000000000000980 /system/framework/arm64/boot.oat (Java_java_lang_Object_wait__JI+140)
at java.lang.Object.wait!(Native method)
- waiting on <0x0f42d5c4> (a java.lang.Object)
at java.lang.Thread.parkFor$(Thread.java:2127)
- locked <0x0f42d5c4> (a java.lang.Object)
at sun.misc.Unsafe.park(Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:201)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2077)
at java.util.concurrent.LinkedBlockingQueue.poll(LinkedBlockingQueue.java:438)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1057)
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)
"hwuiTask1" prio=5 tid=20 Native
| group="" sCount=1 dsCount=0 obj=0x12d854c0 self=0x7f74d58a00
| sysTid=23355 nice=-2 cgrp=default sched=0/0 handle=0x7f60b55450
| state=S schedstat=( 1874432 2351405 40 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7f60a5b000-0x7f60a5d000 stackSize=1005KB
| held mutexes=
kernel: __switch_to+0x8c/0x98
kernel: futex_wait_queue_me+0xd4/0x130
kernel: futex_wait+0xfc/0x210
Related
Building android app out of basic and default 3d scene. * With no codes or any edits. Just to test if it works for android. * Tested with multiple Unity versions and emulator versions.
All tools and requirements are downloaded and install completed both with Unity Hub and Android Studio.
After build is completed, installed on android 33 emulator with google play services, it crashes on or after the splash screen.
Android studio shows a lot of errors on logcat and run window, I can not figure out their meaning or reasons or solution.
some of errors:
A/pany.Myproject4: runtime.cc:675] (no managed stack frames)
runtime.cc:675]
runtime.cc:675] "FinalizerWatchdogDaemon" prio=5 tid=15 Waiting
runtime.cc:675] | group="" sCount=1 ucsCount=0 flags=1 obj=0x12c35038 self=0x78b036508ad0
runtime.cc:675] | sysTid=8040 nice=4 cgrp=top-app sched=0/0 handle=0x78ae5afa4cf0
runtime.cc:675] | state=S schedstat=( 218112 4742853 2 ) utm=0 stm=0 core=1 HZ=100
runtime.cc:675] | stack=0x78ae5aea2000-0x78ae5aea4000 stackSize=1035KB
runtime.cc:675] | held mutexes=
runtime.cc:675] native: #00 pc 000000000005bd56 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+22) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #01 pc 00000000003f96ee /apex/com.android.art/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+110) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #02 pc 00000000007196a9 /apex/com.android.art/lib64/libart.so (art::Monitor::Wait(art::Thread*, long, int, bool, art::ThreadState)+601) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #03 pc 000000000071af3c /apex/com.android.art/lib64/libart.so (art::Monitor::Wait(art::Thread*, art::ObjPtr<art::mirror::Object>, long, int, bool, art::ThreadState)+316) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] at java.lang.Object.wait(Native method)
runtime.cc:675] - waiting on <0x0c056076> (a java.lang.Daemons$FinalizerWatchdogDaemon)
runtime.cc:675] at java.lang.Object.wait(Object.java:442)
runtime.cc:675] at java.lang.Object.wait(Object.java:568)
runtime.cc:675] at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded(Daemons.java:385)
runtime.cc:675] - locked <0x0c056076> (a java.lang.Daemons$FinalizerWatchdogDaemon)
runtime.cc:675] at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:365)
runtime.cc:675] at java.lang.Daemons$Daemon.run(Daemons.java:140)
runtime.cc:675] at java.lang.Thread.run(Thread.java:1012)
runtime.cc:675]
runtime.cc:675] "binder:8004_3" prio=5 tid=16 Native
runtime.cc:675] | group="" sCount=1 ucsCount=0 flags=1 obj=0x12e00020 self=0x78b03650a6a0
runtime.cc:675] | sysTid=8049 nice=0 cgrp=top-app sched=0/0 handle=0x78ae5aae1cf0
runtime.cc:675] | state=S schedstat=( 78868 208711 2 ) utm=0 stm=0 core=2 HZ=100
runtime.cc:675] | stack=0x78ae5a9eb000-0x78ae5a9ed000 stackSize=987KB
runtime.cc:675] | held mutexes=
runtime.cc:675] native: #00 pc 00000000000b78c7 /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+7) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #01 pc 00000000000691e8 /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+216) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #02 pc 0000000000084737 /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+295) (BuildId: b3a72b1c424e4f5102278f425945a7c8)
runtime.cc:675] native: #03 pc 0000000000084607 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+23) (BuildId: b3a72b1c424e4f5102278f425945a7c8)
runtime.cc:675] native: #04 pc 000000000001377f /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+175) (BuildId: bf3f66fd6f5b7c78306a1c8270331f22)
runtime.cc:675] native: #05 pc 00000000000e1bec /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140) (BuildId: b950a9a75dc46caf12ef19f599b16141)
runtime.cc:675] native: #06 pc 00000000000cccba /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #07 pc 0000000000060cc7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] (no managed stack frames)
runtime.cc:675]
runtime.cc:675] "binder:8004_4" prio=5 tid=17 Native
runtime.cc:675] | group="" sCount=1 ucsCount=0 flags=1 obj=0x12e40020 self=0x78b0365115e0
runtime.cc:675] | sysTid=8051 nice=0 cgrp=top-app sched=0/0 handle=0x78ae5a9e4cf0
A/pany.Myproject4: runtime.cc:675] | state=S schedstat=( 544912 468940 2 ) utm=0 stm=0 core=0 HZ=100
runtime.cc:675] | stack=0x78ae5a8ee000-0x78ae5a8f0000 stackSize=987KB
runtime.cc:675] | held mutexes=
runtime.cc:675] native: #00 pc 00000000000b78c7 /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+7) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #01 pc 00000000000691e8 /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+216) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #02 pc 0000000000084737 /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+295) (BuildId: b3a72b1c424e4f5102278f425945a7c8)
runtime.cc:675] native: #03 pc 0000000000084607 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+23) (BuildId: b3a72b1c424e4f5102278f425945a7c8)
runtime.cc:675] native: #04 pc 000000000001377f /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+175) (BuildId: bf3f66fd6f5b7c78306a1c8270331f22)
runtime.cc:675] native: #05 pc 00000000000e1bec /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140) (BuildId: b950a9a75dc46caf12ef19f599b16141)
runtime.cc:675] native: #06 pc 00000000000cccba /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #07 pc 0000000000060cc7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] (no managed stack frames)
runtime.cc:675]
runtime.cc:675] "Profile Saver" prio=5 tid=18 Native
runtime.cc:675] | group="" sCount=1 ucsCount=0 flags=1 obj=0x12ec0020 self=0x78b03650fa10
runtime.cc:675] | sysTid=8052 nice=9 cgrp=top-app sched=0/0 handle=0x78ae5a8e7cf0
runtime.cc:675] | state=S schedstat=( 181923 1036807 1 ) utm=0 stm=0 core=0 HZ=100
runtime.cc:675] | stack=0x78ae5a7f1000-0x78ae5a7f3000 stackSize=987KB
runtime.cc:675] | held mutexes=
runtime.cc:675] native: #00 pc 000000000005bd58 /apex/com.android.runtime/lib64/bionic/libc.so (syscall+24) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #01 pc 00000000003f9ae4 /apex/com.android.art/lib64/libart.so (art::ConditionVariable::TimedWait(art::Thread*, long, int)+148) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #02 pc 00000000005c5385 /apex/com.android.art/lib64/libart.so (art::ProfileSaver::Run()+229) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #03 pc 00000000005cb7eb /apex/com.android.art/lib64/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+171) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #04 pc 00000000000cccba /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+58) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] native: #05 pc 0000000000060cc7 /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+55) (BuildId: 57def992cb1772e13608c8efcafd893b)
runtime.cc:675] (no managed stack frames)
runtime.cc:675]
runtime.cc:675] Aborting thread:
runtime.cc:675] "Thread-3" prio=10 tid=19 Native
runtime.cc:675] | group="" sCount=0 ucsCount=0 flags=0 obj=0x12f40000 self=0x78b0365131b0
runtime.cc:675] | sysTid=8071 nice=-10 cgrp=top-app sched=0/0 handle=0x78ae51bb7cf0
runtime.cc:675] | state=R schedstat=( 30360789 7013611 44 ) utm=1 stm=1 core=1 HZ=100
runtime.cc:675] | stack=0x78ae51ac1000-0x78ae51ac3000 stackSize=987KB
runtime.cc:675] | held mutexes= "abort lock" "mutator lock"(shared held)
runtime.cc:675] native: #00 pc 000000000071e4c4 /apex/com.android.art/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+132) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
A/pany.Myproject4: runtime.cc:675] native: #01 pc 000000000084245e /apex/com.android.art/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const+334) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #02 pc 0000000000804fe9 /apex/com.android.art/lib64/libart.so (art::AbortState::DumpThread(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, art::Thread*) const+57) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #03 pc 0000000000804c75 /apex/com.android.art/lib64/libart.so (art::AbortState::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+421) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #04 pc 00000000007ecf35 /apex/com.android.art/lib64/libart.so (art::Runtime::Abort(char const*)+1381) (BuildId: 010f73d48be32cf8a77d6c31ff28077e)
runtime.cc:675] native: #05 pc 0000000000019cfc /apex/com.android.art/lib64/libbase.so (android::base::SetAborter(std::__1::function<void (char const*)>&&)::$_3::__invoke(char const*)+60) (BuildId: 9335a3052c0ad43b3680057cf90b0afe)
runtime.cc:675] native: #06 pc 0000000000008712 /system/lib64/liblog.so (__android_log_assert+338) (BuildId: 6b5490b5683793c72167e11556e0b7d9)
runtime.cc:675] native: #07 pc 00000000001f90d5 /system/lib64/libndk_translation.so (ndk_translation::intrinsics::Arm64WriteToFpcr(unsigned long)+213) (BuildId: ff7f956887230c9b0a41d98c9117a6d1)
runtime.cc:675] native: #08 pc 000000000033f8e5 <anonymous:78ae52cb5000> (???)
runtime.cc:675] (no managed stack frames)
runtime.cc:675]
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 8071 (Thread-3), pid 8004 (pany.Myproject4)
In my project I have to iterate through files and directories. For that I am using File.listFiles() method.
I am experiencing strange behavior with files which has special charters.
Background:
I have pushed a file using adb command to my device's Music folder.
I am using windows machine.
File name showing in windows "My_file_Ñ_’_Special_chars.mp3"
adb commad used to push file:
adb push "My_file_Ñ_’_Special_chars.mp3" /sdcard/Music/
After pushing file name showed in device: "/sdcard/Music/My_file_╤_Æ_Special_chars.mp3"
Actual issue:
Now I am executing below code in my apk.
File myDir = new File("/sdcard/Music/");
File[] files = myDir.listFiles();
Now my app is crashing at listFiles() method. Below I given crash logs.
But if I copy same file using explorer(copy and paste) there is no issue.
I got below links from stack but I didn't got any working solution.
File.listFiles() crashes for invalid UTF-8 characters
File.listFiles() mangles unicode names with JDK 6 (Unicode Normalization issues)
File.listFiles() mangles unicode names with JDK 6 (Unicode Normalization issues)
The issue is occurring on the devices having android version 7.0 and above.
Crash logs:
01-07 00:51:50.084 12871-12871/com.example.per.myapplication A/art: art/runtime/java_vm_ext.cc:470] JNI DETECTED ERROR IN APPLICATION: input is not valid Modified UTF-8: illegal continuation byte 0x5f
art/runtime/java_vm_ext.cc:470] string: 'My_file_�_�_Special_chars.mp3'
art/runtime/java_vm_ext.cc:470] input: '0x4d 0x79 0x5f 0x66 0x69 0x6c 0x65 0x5f 0xd1 <0x5f> 0x92 0x5f 0x53 0x70 0x65 0x63 0x69 0x61 0x6c 0x5f 0x63 0x68 0x61 0x72 0x73 0x2e 0x6d 0x70 0x33'
art/runtime/java_vm_ext.cc:470] in call to NewStringUTF
art/runtime/java_vm_ext.cc:470] from java.lang.String[] java.io.UnixFileSystem.list0(java.io.File)
art/runtime/java_vm_ext.cc:470] "main" prio=5 tid=1 Runnable
art/runtime/java_vm_ext.cc:470] | group="main" sCount=0 dsCount=0 obj=0x76257eb8 self=0x7f9f6c7a00
art/runtime/java_vm_ext.cc:470] | sysTid=12871 nice=0 cgrp=default sched=0/0 handle=0x7fa3ec2a98
art/runtime/java_vm_ext.cc:470] | state=R schedstat=( 489853444 94436765 524 ) utm=37 stm=11 core=1 HZ=100
art/runtime/java_vm_ext.cc:470] | stack=0x7fe0245000-0x7fe0247000 stackSize=8MB
art/runtime/java_vm_ext.cc:470] | held mutexes= "mutator lock"(shared held)
art/runtime/java_vm_ext.cc:470] native: #00 pc 0000000000477fdc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
art/runtime/java_vm_ext.cc:470] native: #01 pc 0000000000477fd8 /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+216)
art/runtime/java_vm_ext.cc:470] native: #02 pc 000000000044c54c /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+472)
art/runtime/java_vm_ext.cc:470] native: #03 pc 00000000002ed300 /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+1128)
art/runtime/java_vm_ext.cc:470] native: #04 pc 00000000002ed9e8 /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+120)
art/runtime/java_vm_ext.cc:470] native: #05 pc 0000000000101b00 /system/lib64/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+156)
art/runtime/java_vm_ext.cc:470] native: #06 pc 00000000001027fc /system/lib64/libart.so (_ZN3art11ScopedCheck14CheckUtfStringEPKcb+1344)
art/runtime/java_vm_ext.cc:470] native: #07 pc 00000000000ff048 /system/lib64/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+1120)
art/runtime/java_vm_ext.cc:470] native: #08 pc 00000000000f9b88 /system/lib64/libart.so (_ZN3art8CheckJNI12NewStringUTFEP7_JNIEnvPKc+624)
art/runtime/java_vm_ext.cc:470] native: #09 pc 0000000000021944 /system/lib64/libopenjdk.so (Java_java_io_UnixFileSystem_list0+468)
art/runtime/java_vm_ext.cc:470] native: #10 pc 0000000000064fcc /system/framework/arm64/boot.oat (Java_java_io_UnixFileSystem_list0__Ljava_io_File_2+152)
art/runtime/java_vm_ext.cc:470] at java.io.UnixFileSystem.list0(Native method)
art/runtime/java_vm_ext.cc:470] at java.io.UnixFileSystem.list(UnixFileSystem.java:301)
art/runtime/java_vm_ext.cc:470] at java.io.File.list(File.java:1059)
art/runtime/java_vm_ext.cc:470] at java.io.File.listFiles(File.java:1137)
art/runtime/java_vm_ext.cc:470] at com.example.per.myapplication.MainActivity$1.onClick(MainActivity.java:52)
art/runtime/java_vm_ext.cc:470] at android.view.View.performClick(View.java:6213)
art/runtime/java_vm_ext.cc:470] at android.widget.TextView.performClick(TextView.java:11074)
art/runtime/java_vm_ext.cc:470] at android.view.View$PerformClick.run(View.java:23645)
art/runtime/java_vm_ext.cc:470] at android.os.Handler.handleCallback(Handler.java:751)
art/runtime/java_vm_ext.cc:470] at android.os.Handler.dispatchMessage(Handler.java:95)
art/runtime/java_vm_ext.cc:470] at android.os.Looper.loop(Looper.java:154)
art/runtime/java_vm_ext.cc:470] at android.app.ActivityThread.main(ActivityThread.java:6646)
art/runtime/java_vm_ext.cc:470] at java.lang.reflect.Method.invoke!(Native method)
art/runtime/java_vm_ext.cc:470] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
art/runtime/java_vm_ext.cc:470] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
art/runtime/java_vm_ext.cc:470]
01-07 00:51:50.160 12871-12871/com.example.per.myapplication A/art: art/runtime/runtime.cc:403] Runtime aborting...
art/runtime/runtime.cc:403] Aborting thread:
art/runtime/runtime.cc:403] "main" prio=5 tid=1 Native
art/runtime/runtime.cc:403] | group="" sCount=0 dsCount=0 obj=0x76257eb8 self=0x7f9f6c7a00
art/runtime/runtime.cc:403] | sysTid=12871 nice=0 cgrp=default sched=0/0 handle=0x7fa3ec2a98
art/runtime/runtime.cc:403] | state=R schedstat=( 512948081 94540411 525 ) utm=37 stm=14 core=1 HZ=100
art/runtime/runtime.cc:403] | stack=0x7fe0245000-0x7fe0247000 stackSize=8MB
art/runtime/runtime.cc:403] | held mutexes= "abort lock"
art/runtime/runtime.cc:403] native: #00 pc 0000000000477fdc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
art/runtime/runtime.cc:403] native: #01 pc 0000000000477fd8 /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+216)
art/runtime/runtime.cc:403] native: #02 pc 000000000044c54c /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+472)
art/runtime/runtime.cc:403] native: #03 pc 000000000043a5b4 /system/lib64/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+56)
art/runtime/runtime.cc:403] native: #04 pc 000000000043a430 /system/lib64/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+668)
art/runtime/runtime.cc:403] native: #05 pc 000000000042e0a4 /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+140)
art/runtime/runtime.cc:403] native: #06 pc 00000000000e4ea4 /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+1204)
art/runtime/runtime.cc:403] native: #07 pc 00000000002ed714 /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+2172)
art/runtime/runtime.cc:403] native: #08 pc 00000000002ed9e8 /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+120)
art/runtime/runtime.cc:403] native: #09 pc 0000000000101b00 /system/lib64/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+156)
art/runtime/runtime.cc:403] native: #10 pc 00000000001027fc /system/lib64/libart.so (_ZN3art11ScopedCheck14CheckUtfStringEPKcb+1344)
art/runtime/runtime.cc:403] native: #11 pc 00000000000ff048 /system/lib64/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+1120)
art/runtime/runtime.cc:403] native: #12 pc 00000000000f9b88 /system/lib64/libart.so (_ZN3art8CheckJNI12NewStringUTFEP7_JNIEnvPKc+624)
art/runtime/runtime.cc:403] native: #13 pc 0000000000021944 /system/lib64/libopenjdk.so (Java_java_io_UnixFileSystem_list0+468)
art/runtime/runtime.cc:403] native: #14 pc 0000000000064fcc /system/framework/arm64/boot.oat (???)
art/runtime/runtime.cc:403] at java.io.UnixFileSystem.list0(Native method)
art/runtime/runtime.cc:403] at java.io.UnixFileSystem.list(UnixFileSystem.java:301)
art/runtime/runtime.cc:403] at java.io.File.list(File.java:1059)
art/runtime/runtime.cc:403] at java.io.File.listFiles(File.java:1137)
art/runtime/runtime.cc:403] at com.example.per.myapplication.MainActivity$1.onClick(MainActivity.java:52)
art/runtime/runtime.cc:403] at android.view.View.performClick(View.java:6213)
art/runtime/runtime.cc:403] at android.widget.TextView.performClick(TextView.java:11074)
art/runtime/runtime.cc:403] at android.view.View$PerformClick.run(View.java:23645)
art/runtime/runtime.cc:403] at android.os.Handler.handleCallback(Handler.java:751)
art/runtime/runtime.cc:403] at android.os.Handler.dispatchMessage(Handler.java:95)
art/runtime/runtime.cc:403] at android.os.Looper.loop(Looper.java:154)
art/runtime/runtime.cc:403] at android.app.ActivityThread.main(ActivityThread.java:6646)
art/runtime/runtime.cc:403] at java.lang.reflect.Method.invoke!(Native method)
art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
art/runtime/runtime.cc:403] Dumping all threads without appropriate locks held: thread list lock mutator lock
art/runtime/runtime.cc:403] All threads:
art/runtime/runtime.cc:403] DALVIK THREADS (15):
art/runtime/runtime.cc:403] "main" prio=5 tid=1 Runnable
art/runtime/runtime.cc:403] | group="" sCount=0 dsCount=0 obj=0x76257eb8 self=0x7f9f6c7a00
art/runtime/runtime.cc:403] | sysTid=12871 nice=0 cgrp=default sched=0/0 handle=0x7fa3ec2a98
art/runtime/runtime.cc:403] | state=R schedstat=( 551184387 95686296 530 ) utm=38 stm=17 core=2 HZ=100
art/runtime/runtime.cc:403] | stack=0x7fe0245000-0x7fe0247000 stackSize=8MB
art/runtime/runtime.cc:403] | held mutexes= "abort lock" "mutator lock"(shared held)
art/runtime/runtime.cc:403] native: #00 pc 0000000000477fdc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
art/runtime/runtime.cc:403] native: #01 pc 0000000000477fd8 /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+216)
art/runtime/runtime.cc:403] native: #02 pc 000000000044c54c /system/lib64/libart.so (_ZNK3art6Thread9DumpStackERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+472)
art/runtime/runtime.cc:403] native: #03 pc 0000000000463f44 /system/lib64/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+820)
art/runtime/runtime.cc:403] native: #04 pc 000000000045bf4c /system/lib64/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+456)
art/runtime/runtime.cc:403] native: #05 pc 000000000045bb5c /system/lib64/libart.so (_ZN3art10ThreadList4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEb+288)
art/runtime/runtime.cc:403] native: #06 pc 000000000043a3e4 /system/lib64/libart.so (_ZNK3art10AbortState4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+592)
art/runtime/runtime.cc:403] native: #07 pc 000000000042e0a4 /system/lib64/libart.so (_ZN3art7Runtime5AbortEv+140)
art/runtime/runtime.cc:403] native: #08 pc 00000000000e4ea4 /system/lib64/libart.so (_ZN3art10LogMessageD2Ev+1204)
art/runtime/runtime.cc:403] native: #09 pc 00000000002ed714 /system/lib64/libart.so (_ZN3art9JavaVMExt8JniAbortEPKcS2_+2172)
art/runtime/runtime.cc:403] native: #10 pc 00000000002ed9e8 /system/lib64/libart.so (_ZN3art9JavaVMExt9JniAbortVEPKcS2_St9__va_list+120)
art/runtime/runtime.cc:403] native: #11 pc 0000000000101b00 /system/lib64/libart.so (_ZN3art11ScopedCheck6AbortFEPKcz+156)
art/runtime/runtime.cc:403] native: #12 pc 00000000001027fc /system/lib64/libart.so (_ZN3art11ScopedCheck14CheckUtfStringEPKcb+1344)
art/runtime/runtime.cc:403] native: #13 pc 00000000000ff048 /system/lib64/libart.so (_ZN3art11ScopedCheck5CheckERNS_18ScopedObjectAccessEbPKcPNS_12JniValueTypeE+1120)
art/runtime/runtime.cc:403] native: #14 pc 00000000000f9b88 /system/lib64/libart.so (_ZN3art8CheckJNI12NewStringUTFEP7_JNIEnvPKc+624)
art/runtime/runtime.cc:403] native: #15 pc 0000000000021944 /system/lib64/libopenjdk.so (Java_java_io_UnixFileSystem_list0+468)
art/runtime/runtime.cc:403] native: #16 pc 0000000000064fcc /system/framework/arm64/boot.oat (Java_java_io_UnixFileSystem_list0__Ljava_io_File_2+152)
art/runtime/runtime.cc:403] at java.io.UnixFileSystem.list0(Native method)
art/runtime/runtime.cc:403] at java.io.UnixFileSystem.list(UnixFileSystem.java:301)
art/runtime/runtime.cc:403] at java.io.File.list(File.java:1059)
art/runtime/runtime.cc:403] at java.io.File.listFiles(File.java:1137)
art/runtime/runtime.cc:403] at com.example.per.myapplication.MainActivity$1.onClick(MainActivity.java:52)
art/runtime/runtime.cc:403] at android.view.View.performClick(View.java:6213)
art/runtime/runtime.cc:403] at android.widget.TextView.performClick(TextView.java:11074)
art/runtime/runtime.cc:403] at android.view.View$PerformClick.run(View.java:23645)
art/runtime/runtime.cc:403] at android.os.Handler.handleCallback(Handler.java:751)
art/runtime/runtime.cc:403] at android.os.Handler.dispatchMessage(Handler.java:95)
01-07 00:51:50.161 12871-12871/com.example.per.myapplication A/art: art/runtime/runtime.cc:403] at android.os.Looper.loop(Looper.java:154)
art/runtime/runtime.cc:403] at android.app.ActivityThread.main(ActivityThread.java:6646)
art/runtime/runtime.cc:403] at java.lang.reflect.Method.invoke!(Native method)
art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)
art/runtime/runtime.cc:403] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)
art/runtime/runtime.cc:403]
--------- beginning of crash
01-07 00:51:50.166 12871-12871/com.example.per.myapplication A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 12871 (r.myapplication)
I followed this tutorial in order to capture a video of my game, and it's working. I tested on several devices, and it's working. But it fails with a Nexus 7 (2012). The game freezes.
Debugging the library, I found that the call to EGL14.eglMakeCurrent in line 143 of this file is causing it.
Why EGL14.eglMakeCurrent call may block the execution?
EDIT: There is nothing in logcat when game freezes. I can only get this information from adb bugreport:
"Thread-597" prio=5 tid=76 Native
| group="main" sCount=1 dsCount=0 obj=0x12d44190 self=0x80858858
| sysTid=7984 nice=0 cgrp=apps sched=0/0 handle=0x80858d38
| state=S schedstat=( 43302000 35740000 115 ) utm=2 stm=2 core=3 HZ=100
| stack=0x80c74000-0x80c76000 stackSize=1036KB
| held mutexes=
native: #00 pc 00012444 /system/lib/libc.so (syscall+28)
native: #01 pc 0001641b /system/lib/libc.so (???)
native: #02 pc 000167b1 /system/lib/libc.so (pthread_mutex_lock+310)
native: #03 pc 00005b5c /system/lib/libnvos.so (???)
native: #04 pc 0000a7d8 /system/lib/egl/libGLESv2_tegra.so (???)
native: #05 pc 00006ee3 /system/lib/egl/libEGL_tegra.so (???)
native: #06 pc 00006f8f /system/lib/egl/libEGL_tegra.so (???)
native: #07 pc 000077db /system/lib/egl/libEGL_tegra.so (eglMakeCurrent+34)
native: #08 pc 0000ffc1 /system/lib/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+142)
native: #09 pc 000125cf /system/lib/libEGL.so (eglMakeCurrent+266)
native: #10 pc 0005fffb /system/lib/libandroid_runtime.so (???)
native: #11 pc 00271ed3 /data/dalvik-cache/arm/system#framework#boot.oat (Java_com_google_android_gles_1jni_EGLImpl_eglMakeCurrent__Ljavax_microedition_khronos_egl_EGLDisplay_2Ljavax_microedition_khronos_egl_EGLSurface_2Ljavax_microedition_khronos_egl_EGLSurface_2Ljavax_microedition_khronos_egl_EGLContext_2+178)
at com.google.android.gles_jni.EGLImpl.eglMakeCurrent(Native method)
at com.mycopmany.mypackage.androidvideocapture.SharedContext.doneCurrent(SharedContext.java:104)
at com.mycopmany.mypackage.androidvideocapture.Capturing$EncodeThread.run(Capturing.java:104)
- locked <#addr=0x12f01780> (a com.mycopmany.mypackage.androidvideocapture.VideoCapture)
"Thread-602" prio=5 tid=82 Native
| group="main" sCount=1 dsCount=0 obj=0x12dd5c50 self=0x7f2c42b0
| sysTid=6302 nice=0 cgrp=apps sched=0/0 handle=0x7f2d5020
| state=S schedstat=( 17164000 17265000 48 ) utm=0 stm=1 core=1 HZ=100
| stack=0x81402000-0x81404000 stackSize=1036KB
| held mutexes=
native: #00 pc 00012444 /system/lib/libc.so (syscall+28)
native: #01 pc 0001641b /system/lib/libc.so (???)
native: #02 pc 000167b1 /system/lib/libc.so (pthread_mutex_lock+310)
native: #03 pc 00005b5c /system/lib/libnvos.so (???)
native: #04 pc 0000b64c /system/lib/egl/libGLESv2_tegra.so (???)
native: #05 pc 00007219 /system/lib/egl/libEGL_tegra.so (???)
native: #06 pc 000077db /system/lib/egl/libEGL_tegra.so (eglMakeCurrent+34)
native: #07 pc 0000ff93 /system/lib/libEGL.so (android::egl_display_t::makeCurrent(android::egl_context_t*, android::egl_context_t*, void*, void*, void*, void*, void*, void*)+96)
native: #08 pc 000125cf /system/lib/libEGL.so (eglMakeCurrent+266)
native: #09 pc 00061845 /system/lib/libandroid_runtime.so (???)
native: #10 pc 009bf213 /data/dalvik-cache/arm/system#framework#boot.oat (Java_android_opengl_EGL14_eglMakeCurrent__Landroid_opengl_EGLDisplay_2Landroid_opengl_EGLSurface_2Landroid_opengl_EGLSurface_2Landroid_opengl_EGLContext_2+178)
at android.opengl.EGL14.eglMakeCurrent(Native method)
at org.m4m.android.InputSurface.makeCurrent(InputSurface.java:145)
at org.m4m.android.Surface.<init>(Surface.java:34)
at org.m4m.android.MediaCodecEncoderPlugin.createInputSurface(MediaCodecEncoderPlugin.java:133)
at org.m4m.domain.Encoder.getSurface(Encoder.java:34)
at org.m4m.domain.pipeline.PluginConnector$26.onSurfaceAvailable(PluginConnector.java:354)
at org.m4m.android.GameCapturerSource.setSurfaceSize(GameCapturerSource.java:52)
at org.m4m.GLCapture.setSurfaceSize(GLCapture.java:89)
at com.mycopmany.mypackage.androidvideocapture.VideoCapture.configure(VideoCapture.java:93)
at com.mycopmany.mypackage.androidvideocapture.VideoCapture.beginCaptureFrame(VideoCapture.java:104)
at com.mycopmany.mypackage.androidvideocapture.Capturing$EncodeThread.run(Capturing.java:96)
- locked <#addr=0x12db64a0> (a com.mycopmany.mypackage.androidvideocapture.VideoCapture)
Finally I found the problem. There is a bug in Tegra drivers that causes a deadlock when using shared contexts. More info:
https://devtalk.nvidia.com/default/topic/523619/opengl-es/threaded-texture-creation-under-android/
https://bugzilla.mozilla.org/show_bug.cgi?id=759225
https://devtalk.nvidia.com/default/topic/544779/opengl-es/eglmakecurrent-is-crashing-in-libnvos-so/
https://bugs.chromium.org/p/webrtc/issues/detail?id=5702
There is one ANR report which I need help to understand it. It is only happened to this user so far. Under the main thread, I can't find anything related to my app package.
"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 obj=0x7392f2a0 self=0xb8bdcd80
| sysTid=1973 nice=-2 cgrp=native sched=0/0 handle=0xb6f3cb34
| state=S schedstat=( 52372964435 58689172479 125804 ) utm=3878 stm=1359 core=7 HZ=100
| stack=0xbe395000-0xbe397000 stackSize=8MB
| held mutexes=
kernel: (couldn't read /proc/self/task/1973/stack)
native: #00 pc 00042f0c /system/lib/libc.so (__epoll_pwait+20)
native: #01 pc 0001967f /system/lib/libc.so (epoll_pwait+26)
native: #02 pc 0001968d /system/lib/libc.so (epoll_wait+6)
native: #03 pc 00012da3 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+102)
native: #04 pc 0001301f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+130)
native: #05 pc 00083ed1 /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22)
native: #06 pc 00000585 /system/framework/arm/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:135)
at com.android.server.SystemServer.run(SystemServer.java:288)
at com.android.server.SystemServer.main(SystemServer.java:173)
at java.lang.reflect.Method.invoke!(Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:728)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:618)
And I noticed this thread which is blocked. However, I don't know how to trace from there.
"HeapTaskDaemon" daemon prio=5 tid=6 Blocked
| group="system" sCount=1 dsCount=0 obj=0x12c041c0 self=0xb8c02318
| sysTid=1982 nice=0 cgrp=native sched=0/0 handle=0xb40c3930
| state=S schedstat=( 68261230481 5881920066 14105 ) utm=6561 stm=265 core=7 HZ=100
| stack=0xb3fc1000-0xb3fc3000 stackSize=1038KB
| held mutexes=
kernel: (couldn't read /proc/self/task/1982/stack)
native: #00 pc 000169b8 /system/lib/libc.so (syscall+28)
native: #01 pc 000f60bb /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82)
native: #02 pc 001cdff1 /system/lib/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+92)
native: #03 pc 001ce505 /system/lib/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+60)
native: #04 pc 00000387 /system/framework/arm/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:355)
at java.lang.Thread.run(Thread.java:818)
Here is the complete file. Thanks for the input.
ANR file
I'm having a very hard time debugging an Android ANR problem.
This is what I get in logcat:
I/art﹕ Thread[2,tid=29718,WaitingInMainSignalCatcherLoop,Thread*=0xaf40e400,peer=0x12c39080,"Signal Catcher"]: reacting to signal 3
Heres what I get in the traces.txt file
"Signal Catcher" daemon prio=5 tid=2 Runnable
| group="system" sCount=0 dsCount=0 obj=0x12c57080 self=0xaf40e400
| sysTid=29718 nice=0 cgrp=apps sched=0/0 handle=0xafb18d80
| state=R schedstat=( 32478966 17635623 73 ) utm=1 stm=2 core=1 HZ=100
| stack=0xb466d000-0xb466f000 stackSize=1012KB
| held mutexes= "thread list lock" "mutator lock"(exclusive held)
native: #00 pc 00004640 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
native: #01 pc 00002e8d /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
native: #02 pc 002453c1 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+68)
native: #03 pc 00229f47 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+146)
native: #04 pc 00232ddf /system/lib/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+142)
native: #05 pc 00218da7 /system/lib/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+66)
native: #06 pc 0021ed13 /system/lib/libart.so (art::SignalCatcher::HandleSigQuit()+774)
native: #07 pc 0021f3cb /system/lib/libart.so (art::SignalCatcher::Run(void*)+322)
native: #08 pc 000137bb /system/lib/libc.so (__pthread_start(void*)+30)
native: #09 pc 0001189b /system/lib/libc.so (__start_thread+6)
(no managed stack frames)
Does anyone know what can usually cause these sorts of errors? I can't pinpoint it to any particular line of code but it does seem to happen on starting the app sometimes.
Thanks