saki4510t / UVCCamera

library and sample to access to UVC web camera on non-rooted Android device
3.01k stars 1.21k forks source link

weak global reference table overflow (max=51200) #496

Open xiaozhangwx opened 5 years ago

xiaozhangwx commented 5 years ago

A/art: art/runtime/indirect_reference_table.cc:132] JNI ERROR (app bug): weak global reference table overflow (max=51200) art/runtime/indirect_reference_table.cc:132] weak global reference table dump: art/runtime/indirect_reference_table.cc:132] Last 10 entries (of 51200): art/runtime/indirect_reference_table.cc:132] 51199: 0x12cafdc0 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51198: 0x12cafd30 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51197: 0x12cafca0 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51196: 0x12cafc10 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51195: 0x12cafb80 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51194: 0x12cafaf0 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51193: 0x12cafa60 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51192: 0x12caf9d0 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51191: 0x12caf940 java.lang.Thread art/runtime/indirect_reference_table.cc:132] 51190: 0x12caf8b0 java.lang.Thread art/runtime/indirect_reference_table.cc:132] Summary: art/runtime/indirect_reference_table.cc:132] 4759 of java.lang.Class (4759 unique instances) art/runtime/indirect_reference_table.cc:132] 528 of java.lang.Thread (528 unique instances) art/runtime/indirect_reference_table.cc:132] 27 of byte[] (2916 elements) (27 unique instances) art/runtime/indirect_reference_table.cc:132] 26 of java.lang.DexCache (26 unique instances) art/runtime/indirect_reference_table.cc:132] 21 of android.view.RenderNode (21 unique instances) art/runtime/indirect_reference_table.cc:132] 17 of byte[] (4096 elements) (17 unique instances) art/runtime/indirect_reference_table.cc:132] 12 of byte[] (2304 elements) (12 unique instances) art/runtime/indirect_reference_table.cc:132] 6 of dalvik.system.PathClassLoader (1 unique instances) art/runtime/indirect_reference_table.cc:132] 5 of byte[] (1024 elements) (5 unique instances) art/runtime/indirect_reference_table.cc:132] 5 of byte[] (5184 elements) (5 unique instances) art/runtime/indirect_reference_table.cc:132] 5 of byte[] (29584 elements) (5 unique instances) art/runtime/indirect_reference_table.cc:132] 4 of byte[] (1120 elements) (4 unique instances) art/runtime/indirect_reference_table.cc:132] 4 of byte[] (12400 elements) (4 unique instances) art/runtime/indirect_reference_table.cc:132] 3 of byte[] (144 elements) (3 unique instances) art/runtime/indirect_reference_table.cc:132] 3 of byte[] (528 elements) (3 unique instances) art/runtime/indirect_reference_table.cc:132] 3 of byte[] (8832 elements) (3 unique instances) art/runtime/indirect_reference_table.cc:132] 3 of byte[] (9216 elements) (3 unique instances) art/runtime/indirect_reference_table.cc:132] 2 of byte[] (3844 elements) (2 unique instances) art/runtime/indirect_reference_table.cc:132] 2 of byte[] (3872 elements) (2 unique instances) A/art: art/runtime/indirect_reference_table.cc:132] 2 of android.os.HandlerThread (2 unique instances) art/runtime/indirect_reference_table.cc:132] 1 of java.lang.ThreadGroup art/runtime/indirect_reference_table.cc:132] 1 of byte[] (768 elements) art/runtime/indirect_reference_table.cc:132] 1 of byte[] (1920 elements) art/runtime/indirect_reference_table.cc:132] 1 of byte[] (9152 elements) art/runtime/indirect_reference_table.cc:132] 1 of byte[] (614400 elements) art/runtime/indirect_reference_table.cc:132] 1 of byte[] (1228800 elements) art/runtime/indirect_reference_table.cc:132] A/art: art/runtime/runtime.cc:422] Runtime aborting... art/runtime/runtime.cc:422] Aborting thread: art/runtime/runtime.cc:422] "JNISurfaceTextureContext" prio=5 tid=19 Runnable art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x12cafe50 self=0xa790cb00 art/runtime/runtime.cc:422] | sysTid=22707 nice=0 cgrp=default sched=0/0 handle=0x92b80920 art/runtime/runtime.cc:422] | state=R schedstat=( 702712916768 46133758554 199833 ) utm=59209 stm=11061 core=2 HZ=100 art/runtime/runtime.cc:422] | stack=0x92a84000-0x92a86000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= "abort lock" "JNI weak global reference table lock" "ObjectRegistry lock" "mutator lock"(shared held) art/runtime/runtime.cc:422] native: #00 pc 003537b1 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128) art/runtime/runtime.cc:422] native: #01 pc 00333c65 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+304) art/runtime/runtime.cc:422] native: #02 pc 00326c51 /system/lib/libart.so (_ZNK3art10AbortState10DumpThreadERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEPNS_6ThreadE+24) art/runtime/runtime.cc:422] native: #03 pc 00326a9b /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEE+362) art/runtime/runtime.cc:422] native: #04 pc 0031d7e1 /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+92) art/runtime/runtime.cc:422] native: #05 pc 000b5503 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+1134) art/runtime/runtime.cc:422] native: #06 pc 001bd92f /system/lib/libart.so (_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE+194) art/runtime/runtime.cc:422] native: #07 pc 0023b967 /system/lib/libart.so (_ZN3art9JavaVMExt16AddWeakGlobalRefEPNS_6ThreadEPNS_6mirror6ObjectE+46) art/runtime/runtime.cc:422] native: #08 pc 00281007 /system/lib/libart.so (_ZN3art3JNI16NewWeakGlobalRefEP7_JNIEnvP8_jobject+418) art/runtime/runtime.cc:422] native: #09 pc 000cbda3 /system/lib/libart.so (_ZN3art8CheckJNI6NewRefEPKcP7_JNIEnvP8_jobjectNS_15IndirectRefKindE+506) art/runtime/runtime.cc:422] native: #10 pc 0024de15 /system/lib/libart.so (_ZN3art14ObjectRegistry11InternalAddINS_6mirror6ObjectEEEyNS_6HandleIT_EE+772) art/runtime/runtime.cc:422] native: #11 pc 0024e051 /system/lib/libart.so (_ZN3art14ObjectRegistry3AddEPNS_6mirror6ObjectE+84) art/runtime/runtime.cc:422] native: #12 pc 00118e51 /system/lib/libart.so (_ZN3art3Dbg11GetThreadIdEPNS_6ThreadE+432) art/runtime/runtime.cc:422] native: #13 pc 00242e55 /system/lib/libart.so (_ZN3art4JDWP9JdwpState16PostThreadChangeEPNS_6ThreadEb+596) art/runtime/runtime.cc:422] native: #14 pc 001245ef /system/lib/libart.so (_ZN3art3Dbg15PostThreadStartEPNS_6ThreadE+22) art/runtime/runtime.cc:422] native: #15 pc 003329cb /system/lib/libart.so (_ZN3art6Thread6AttachEPKcbP8_jobjectb+1938) art/runtime/runtime.cc:422] native: #16 pc 0031d2eb /system/lib/libart.so (_ZN3art7Runtime19AttachCurrentThreadEPKcbP8_jobjectb+62) art/runtime/runtime.cc:422] native: #17 pc 0023eb53 /system/lib/libart.so (_ZN3art3JII27AttachCurrentThreadInternalEP7_JavaVMPP7_JNIEnvPvb+330) art/runtime/runtime.cc:422] native: #18 pc 000d1c4b /system/lib/libart.so (_ZN3art8CheckJII19AttachCurrentThreadEP7_JavaVMPP7_JNIEnvPv+78) art/runtime/runtime.cc:422] native: #19 pc 000a9745 /system/lib/libandroid_runtime.so (_ZN7android24JNISurfaceTextureContext9getJNIEnvEPb+60) art/runtime/runtime.cc:422] native: #20 pc 000a97d3 /system/lib/libandroid_runtime.so (_ZN7android24JNISurfaceTextureContext16onFrameAvailableERKNS_10BufferItemE+22) art/runtime/runtime.cc:422] native: #21 pc 00040833 /system/lib/libgui.so (_ZN7android12ConsumerBase16onFrameAvailableERKNS_10BufferItemE+102) art/runtime/runtime.cc:422] native: #22 pc 000380eb /system/lib/libgui.so (_ZN7android11BufferQueue21ProxyConsumerListener16onFrameAvailableERKNS_10BufferItemE+54) art/runtime/runtime.cc:422] native: #23 pc 0003e529 /system/lib/libgui.so (_ZN7android19BufferQueueProducer11queueBufferEiRKNS_22IGraphicBufferProducer16QueueBufferInputEPNS1_17QueueBufferOutputE+1288) art/runtime/runtime.cc:422] native: #24 pc 0005236d /system/lib/libgui.so (_ZN7android7Surface11queueBufferEP19ANativeWindowBufferi+500) art/runtime/runtime.cc:422] native: #25 pc 0005403b /system/lib/libgui.so (_ZN7android7Surface13unlockAndPostEv+58) art/runtime/runtime.cc:422] native: #26 pc 00051749 /system/lib/libgui.so (_ZN7android7Surface12hook_performEP13ANativeWindowiz+40) art/runtime/runtime.cc:422] native: #27 pc 0000b8e1 /system/lib/libandroid.so (ANativeWindow_unlockAndPost+6) art/runtime/runtime.cc:422] native: #28 pc 0000d6a0 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_Z13copyToSurfaceP9uvc_framePP13ANativeWindow+584) art/runtime/runtime.cc:422] native: #29 pc 0000db88 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview16draw_preview_oneEP9uvc_framePP13ANativeWindowPF9uvc_errorS1_S1_Ei+232) art/runtime/runtime.cc:422] native: #30 pc 0000e600 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview10do_previewEP15uvc_stream_ctrl+228) A/art: art/runtime/runtime.cc:422] native: #31 pc 0000e6dc /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview19preview_thread_funcEPv+40) art/runtime/runtime.cc:422] native: #32 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #33 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] Dumping all threads without appropriate locks held: thread list lock art/runtime/runtime.cc:422] All threads: art/runtime/runtime.cc:422] DALVIK THREADS (19): art/runtime/runtime.cc:422] "JNISurfaceTextureContext" prio=5 tid=19 Runnable art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x12cafe50 self=0xa790cb00 art/runtime/runtime.cc:422] | sysTid=22707 nice=0 cgrp=default sched=0/0 handle=0x92b80920 art/runtime/runtime.cc:422] | state=R schedstat=( 702742915559 46133758554 199833 ) utm=59211 stm=11062 core=2 HZ=100 art/runtime/runtime.cc:422] | stack=0x92a84000-0x92a86000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= "abort lock" "JNI weak global reference table lock" "ObjectRegistry lock" "mutator lock"(shared held) art/runtime/runtime.cc:422] native: #00 pc 003537b1 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+128) art/runtime/runtime.cc:422] native: #01 pc 00333c65 /system/lib/libart.so (_ZNK3art6Thread9DumpStackERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEbP12BacktraceMap+304) art/runtime/runtime.cc:422] native: #02 pc 00345d6f /system/lib/libart.so (_ZN3art14DumpCheckpoint3RunEPNS_6ThreadE+622) art/runtime/runtime.cc:422] native: #03 pc 0033fcfd /system/lib/libart.so (_ZN3art10ThreadList13RunCheckpointEPNS_7ClosureE+336) art/runtime/runtime.cc:422] native: #04 pc 0033f9f7 /system/lib/libart.so (_ZN3art10ThreadList4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEEb+586) art/runtime/runtime.cc:422] native: #05 pc 00326aa5 /system/lib/libart.so (_ZNK3art10AbortState4DumpERNSt3113basic_ostreamIcNS1_11char_traitsIcEEEE+372) art/runtime/runtime.cc:422] native: #06 pc 0031d7e1 /system/lib/libart.so (_ZN3art7Runtime5AbortEPKc+92) art/runtime/runtime.cc:422] native: #07 pc 000b5503 /system/lib/libart.so (_ZN3art10LogMessageD2Ev+1134) art/runtime/runtime.cc:422] native: #08 pc 001bd92f /system/lib/libart.so (_ZN3art22IndirectReferenceTable3AddEjPNS_6mirror6ObjectE+194) art/runtime/runtime.cc:422] native: #09 pc 0023b967 /system/lib/libart.so (_ZN3art9JavaVMExt16AddWeakGlobalRefEPNS_6ThreadEPNS_6mirror6ObjectE+46) art/runtime/runtime.cc:422] native: #10 pc 00281007 /system/lib/libart.so (_ZN3art3JNI16NewWeakGlobalRefEP7_JNIEnvP8_jobject+418) art/runtime/runtime.cc:422] native: #11 pc 000cbda3 /system/lib/libart.so (_ZN3art8CheckJNI6NewRefEPKcP7_JNIEnvP8_jobjectNS_15IndirectRefKindE+506) art/runtime/runtime.cc:422] native: #12 pc 0024de15 /system/lib/libart.so (_ZN3art14ObjectRegistry11InternalAddINS_6mirror6ObjectEEEyNS_6HandleIT_EE+772) art/runtime/runtime.cc:422] native: #13 pc 0024e051 /system/lib/libart.so (_ZN3art14ObjectRegistry3AddEPNS_6mirror6ObjectE+84) art/runtime/runtime.cc:422] native: #14 pc 00118e51 /system/lib/libart.so (_ZN3art3Dbg11GetThreadIdEPNS_6ThreadE+432) art/runtime/runtime.cc:422] native: #15 pc 00242e55 /system/lib/libart.so (_ZN3art4JDWP9JdwpState16PostThreadChangeEPNS_6ThreadEb+596) art/runtime/runtime.cc:422] native: #16 pc 001245ef /system/lib/libart.so (_ZN3art3Dbg15PostThreadStartEPNS_6ThreadE+22) art/runtime/runtime.cc:422] native: #17 pc 003329cb /system/lib/libart.so (_ZN3art6Thread6AttachEPKcbP8_jobjectb+1938) art/runtime/runtime.cc:422] native: #18 pc 0031d2eb /system/lib/libart.so (_ZN3art7Runtime19AttachCurrentThreadEPKcbP8_jobjectb+62) art/runtime/runtime.cc:422] native: #19 pc 0023eb53 /system/lib/libart.so (_ZN3art3JII27AttachCurrentThreadInternalEP7_JavaVMPP7_JNIEnvPvb+330) art/runtime/runtime.cc:422] native: #20 pc 000d1c4b /system/lib/libart.so (_ZN3art8CheckJII19AttachCurrentThreadEP7_JavaVMPP7_JNIEnvPv+78) art/runtime/runtime.cc:422] native: #21 pc 000a9745 /system/lib/libandroid_runtime.so (_ZN7android24JNISurfaceTextureContext9getJNIEnvEPb+60) art/runtime/runtime.cc:422] native: #22 pc 000a97d3 /system/lib/libandroid_runtime.so (_ZN7android24JNISurfaceTextureContext16onFrameAvailableERKNS_10BufferItemE+22) art/runtime/runtime.cc:422] native: #23 pc 00040833 /system/lib/libgui.so (_ZN7android12ConsumerBase16onFrameAvailableERKNS_10BufferItemE+102) art/runtime/runtime.cc:422] native: #24 pc 000380eb /system/lib/libgui.so (_ZN7android11BufferQueue21ProxyConsumerListener16onFrameAvailableERKNS_10BufferItemE+54) art/runtime/runtime.cc:422] native: #25 pc 0003e529 /system/lib/libgui.so (_ZN7android19BufferQueueProducer11queueBufferEiRKNS_22IGraphicBufferProducer16QueueBufferInputEPNS1_17QueueBufferOutputE+1288) art/runtime/runtime.cc:422] native: #26 pc 0005236d /system/lib/libgui.so (_ZN7android7Surface11queueBufferEP19ANativeWindowBufferi+500) art/runtime/runtime.cc:422] native: #27 pc 0005403b /system/lib/libgui.so (_ZN7android7Surface13unlockAndPostEv+58) art/runtime/runtime.cc:422] native: #28 pc 00051749 /system/lib/libgui.so (_ZN7android7Surface12hook_performEP13ANativeWindowiz+40) art/runtime/runtime.cc:422] native: #29 pc 0000b8e1 /system/lib/libandroid.so (ANativeWindow_unlockAndPost+6) art/runtime/runtime.cc:422] native: #30 pc 0000d6a0 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_Z13copyToSurfaceP9uvc_framePP13ANativeWindow+584) art/runtime/runtime.cc:422] native: #31 pc 0000db88 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview16draw_preview_oneEP9uvc_framePP13ANativeWindowPF9uvc_errorS1_S1_Ei+232) art/runtime/runtime.cc:422] native: #32 pc 0000e600 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview10do_previewEP15uvc_stream_ctrl+228) art/runtime/runtime.cc:422] native: #33 pc 0000e6dc /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview19preview_thread_funcEPv+40) art/runtime/runtime.cc:422] native: #34 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #35 pc 00019e5d /system/lib/libc.so (__start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "main" prio=5 tid=1 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x740294a0 self=0xaed85400 art/runtime/runtime.cc:422] | sysTid=22004 nice=-10 cgrp=default sched=0/0 handle=0xb1b69534 art/runtime/runtime.cc:422] | state=S schedstat=( 39785459397 1979552109 171770 ) utm=2992 stm=985 core=0 HZ=100 art/runtime/runtime.cc:422] | stack=0xbe333000-0xbe335000 stackSize=8MB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000487a4 /system/lib/libc.so (epoll_pwait+20) art/runtime/runtime.cc:422] native: #01 pc 0001a20d /system/lib/libc.so (epoll_pwait+60) art/runtime/runtime.cc:422] native: #02 pc 0001a23d /system/lib/libc.so (epoll_wait+12) art/runtime/runtime.cc:422] native: #03 pc 00011c83 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118) art/runtime/runtime.cc:422] native: #04 pc 00011b7f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26) art/runtime/runtime.cc:422] native: #05 pc 00093a7d /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22) art/runtime/runtime.cc:422] native: #06 pc 00be92e5 /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnceJI+96) A/art: art/runtime/runtime.cc:422] at android.os.MessageQueue.nativePollOnce(Native method) art/runtime/runtime.cc:422] at android.os.MessageQueue.next(MessageQueue.java:323) art/runtime/runtime.cc:422] at android.os.Looper.loop(Looper.java:136) art/runtime/runtime.cc:422] at android.app.ActivityThread.main(ActivityThread.java:6141) art/runtime/runtime.cc:422] at java.lang.reflect.Method.invoke!(Native method) art/runtime/runtime.cc:422] at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:912) art/runtime/runtime.cc:422] at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:802) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Jit thread pool worker thread 0" prio=5 tid=2 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c2fca0 self=0xa7991000 art/runtime/runtime.cc:422] | sysTid=22007 nice=9 cgrp=default sched=0/0 handle=0xae409920 art/runtime/runtime.cc:422] | state=S schedstat=( 1035486372 243831574 964 ) utm=79 stm=23 core=1 HZ=100 art/runtime/runtime.cc:422] | stack=0xae30b000-0xae30d000 stackSize=1022KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 000b70d9 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92) art/runtime/runtime.cc:422] native: #02 pc 003472e1 /system/lib/libart.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+160) art/runtime/runtime.cc:422] native: #03 pc 00346b07 /system/lib/libart.so (_ZN3art16ThreadPoolWorker3RunEv+62) art/runtime/runtime.cc:422] native: #04 pc 00346627 /system/lib/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+78) art/runtime/runtime.cc:422] native: #05 pc 00047323 /system/lib/libc.so (_ZL15__pthread_startPv+22) art/runtime/runtime.cc:422] native: #06 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Signal Catcher" prio=5 tid=3 WaitingInMainSignalCatcherLoop art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c2fd30 self=0xa4fc5e00 art/runtime/runtime.cc:422] | sysTid=22008 nice=0 cgrp=default sched=0/0 handle=0xae308920 art/runtime/runtime.cc:422] | state=S schedstat=( 327541 229834 1 ) utm=0 stm=0 core=0 HZ=100 art/runtime/runtime.cc:422] | stack=0xae20c000-0xae20e000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00048b10 /system/lib/libc.so (rt_sigtimedwait+12) art/runtime/runtime.cc:422] native: #01 pc 0001e25b /system/lib/libc.so (sigwait+34) art/runtime/runtime.cc:422] native: #02 pc 00329d3f /system/lib/libart.so (_ZN3art9SignalSet4WaitEv+22) art/runtime/runtime.cc:422] native: #03 pc 00329939 /system/lib/libart.so (_ZN3art13SignalCatcher13WaitForSignalEPNS_6ThreadERNS_9SignalSetE+168) art/runtime/runtime.cc:422] native: #04 pc 00328659 /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+276) art/runtime/runtime.cc:422] native: #05 pc 00047323 /system/lib/libc.so (_ZL15__pthread_startPv+22) art/runtime/runtime.cc:422] native: #06 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "JDWP" prio=5 tid=4 WaitingInMainDebuggerLoop art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c2fdc0 self=0xa7992400 art/runtime/runtime.cc:422] | sysTid=22009 nice=0 cgrp=default sched=0/0 handle=0xae209920 art/runtime/runtime.cc:422] | state=S schedstat=( 74952496 519751 37 ) utm=6 stm=0 core=3 HZ=100 art/runtime/runtime.cc:422] | stack=0xae10d000-0xae10f000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000489e8 /system/lib/libc.so (pselect6+20) art/runtime/runtime.cc:422] native: #01 pc 0001d055 /system/lib/libc.so (select+88) art/runtime/runtime.cc:422] native: #02 pc 003ff8e3 /system/lib/libart.so (_ZN3art4JDWP12JdwpAdbState15ProcessIncomingEv+302) art/runtime/runtime.cc:422] native: #03 pc 0024a343 /system/lib/libart.so (_ZN3art4JDWP9JdwpState3RunEv+654) art/runtime/runtime.cc:422] native: #04 pc 00249ae3 /system/lib/libart.so (_ZN3art4JDWPL15StartJdwpThreadEPv+22) art/runtime/runtime.cc:422] native: #05 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #06 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "HeapTaskDaemon" prio=5 tid=5 Blocked art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c370d0 self=0xa4fc8100 art/runtime/runtime.cc:422] | sysTid=22016 nice=0 cgrp=default sched=0/0 handle=0xaddfb920 art/runtime/runtime.cc:422] | state=S schedstat=( 1193702120 131278574 846 ) utm=105 stm=13 core=1 HZ=100 art/runtime/runtime.cc:422] | stack=0xadcf9000-0xadcfb000 stackSize=1038KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 000b70d9 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92) art/runtime/runtime.cc:422] native: #02 pc 001b61a9 /system/lib/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+288) art/runtime/runtime.cc:422] native: #03 pc 001b681d /system/lib/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+44) art/runtime/runtime.cc:422] native: #04 pc 0042a627 /data/dalvik-cache/arm/system@framework@boot.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+74) art/runtime/runtime.cc:422] at dalvik.system.VMRuntime.runHeapTasks(Native method) A/art: art/runtime/runtime.cc:422] - waiting to lock an unknown object art/runtime/runtime.cc:422] at java.lang.Daemons$HeapTaskDaemon.run(Daemons.java:433) art/runtime/runtime.cc:422] at java.lang.Thread.run(Thread.java:761) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "FinalizerWatchdogDaemon" prio=5 tid=6 Waiting art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c2ff70 self=0xa4fc7c00 art/runtime/runtime.cc:422] | sysTid=22015 nice=0 cgrp=default sched=0/0 handle=0xadf00920 art/runtime/runtime.cc:422] | state=S schedstat=( 22815616 16232709 218 ) utm=1 stm=0 core=1 HZ=100 art/runtime/runtime.cc:422] | stack=0xaddfe000-0xade00000 stackSize=1038KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 000b70d9 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92) art/runtime/runtime.cc:422] native: #02 pc 002a10cd /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+512) art/runtime/runtime.cc:422] native: #03 pc 002a291f /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+258) art/runtime/runtime.cc:422] native: #04 pc 002b11f7 /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+32) art/runtime/runtime.cc:422] native: #05 pc 00000537 /data/dalvik-cache/arm/system@framework@boot.oat (Java_java_lang_Object_wait+74) art/runtime/runtime.cc:422] at java.lang.Object.wait!(Native method) art/runtime/runtime.cc:422] - waiting on <0x0df51f69> (a java.lang.Daemons$FinalizerWatchdogDaemon) art/runtime/runtime.cc:422] at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded(Daemons.java:269) art/runtime/runtime.cc:422] - locked <0x0df51f69> (a java.lang.Daemons$FinalizerWatchdogDaemon) art/runtime/runtime.cc:422] at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:249) art/runtime/runtime.cc:422] at java.lang.Thread.run(Thread.java:761) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "FinalizerDaemon" prio=5 tid=7 Waiting art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c2fee0 self=0xa4fc7700 art/runtime/runtime.cc:422] | sysTid=22012 nice=0 cgrp=default sched=0/0 handle=0xae005920 art/runtime/runtime.cc:422] | state=S schedstat=( 58931822 12086667 187 ) utm=3 stm=1 core=1 HZ=100 art/runtime/runtime.cc:422] | stack=0xadf03000-0xadf05000 stackSize=1038KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 000b70d9 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92) art/runtime/runtime.cc:422] native: #02 pc 002a10cd /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+512) art/runtime/runtime.cc:422] native: #03 pc 002a291f /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+258) art/runtime/runtime.cc:422] native: #04 pc 002b1223 /system/lib/libart.so (_ZN3artL13Object_waitJIEP7_JNIEnvP8_jobjectxi+36) art/runtime/runtime.cc:422] native: #05 pc 00000635 /data/dalvik-cache/arm/system@framework@boot.oat (Java_java_lang_Object_waitJI+96) art/runtime/runtime.cc:422] at java.lang.Object.wait!(Native method) art/runtime/runtime.cc:422] - waiting on <0x05268dee> (a java.lang.Object) art/runtime/runtime.cc:422] at java.lang.Object.wait(Object.java:407) art/runtime/runtime.cc:422] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:188) art/runtime/runtime.cc:422] - locked <0x05268dee> (a java.lang.Object) art/runtime/runtime.cc:422] at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:209) art/runtime/runtime.cc:422] at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:204) art/runtime/runtime.cc:422] at java.lang.Thread.run(Thread.java:761) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Binder:22004_1" prio=5 tid=8 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c371f0 self=0xa7993800 art/runtime/runtime.cc:422] | sysTid=22017 nice=0 cgrp=default sched=0/0 handle=0xadbf8920 art/runtime/runtime.cc:422] | state=S schedstat=( 1406416 2676334 16 ) utm=0 stm=0 core=1 HZ=100 art/runtime/runtime.cc:422] | stack=0xadafc000-0xadafe000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000488e4 /system/lib/libc.so (ioctl+8) art/runtime/runtime.cc:422] native: #01 pc 0001ae5b /system/lib/libc.so (ioctl+38) art/runtime/runtime.cc:422] native: #02 pc 0003cc69 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+168) art/runtime/runtime.cc:422] native: #03 pc 0003cd65 /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+8) art/runtime/runtime.cc:422] native: #04 pc 0003d2cf /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46) art/runtime/runtime.cc:422] native: #05 pc 0004f6b5 /system/lib/libbinder.so (???) art/runtime/runtime.cc:422] native: #06 pc 0000e325 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+144) art/runtime/runtime.cc:422] native: #07 pc 00067f29 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80) art/runtime/runtime.cc:422] native: #08 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #09 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "ReferenceQueueDaemon" prio=5 tid=9 Waiting A/art: art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c2fe50 self=0xa4fc7200 art/runtime/runtime.cc:422] | sysTid=22010 nice=0 cgrp=default sched=0/0 handle=0xae10a920 art/runtime/runtime.cc:422] | state=S schedstat=( 29132247 4268834 251 ) utm=1 stm=0 core=1 HZ=100 art/runtime/runtime.cc:422] | stack=0xae008000-0xae00a000 stackSize=1038KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 000b70d9 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92) art/runtime/runtime.cc:422] native: #02 pc 002a10cd /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadExibNS_11ThreadStateE+512) art/runtime/runtime.cc:422] native: #03 pc 002a291f /system/lib/libart.so (_ZN3art7Monitor4WaitEPNS_6ThreadEPNS_6mirror6ObjectExibNS_11ThreadStateE+258) art/runtime/runtime.cc:422] native: #04 pc 002b11f7 /system/lib/libart.so (_ZN3artL11Object_waitEP7_JNIEnvP8_jobject+32) art/runtime/runtime.cc:422] native: #05 pc 00000537 /data/dalvik-cache/arm/system@framework@boot.oat (Java_java_lang_Object_wait+74) art/runtime/runtime.cc:422] at java.lang.Object.wait!(Native method) art/runtime/runtime.cc:422] - waiting on <0x066ddb97> (a java.lang.Class) art/runtime/runtime.cc:422] at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:150) art/runtime/runtime.cc:422] - locked <0x066ddb97> (a java.lang.Class) art/runtime/runtime.cc:422] at java.lang.Thread.run(Thread.java:761) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Binder:22004_2" prio=5 tid=10 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c37280 self=0xa7994c00 art/runtime/runtime.cc:422] | sysTid=22019 nice=0 cgrp=default sched=0/0 handle=0xadaf9920 art/runtime/runtime.cc:422] | state=S schedstat=( 17014373 9628791 42 ) utm=0 stm=0 core=3 HZ=100 art/runtime/runtime.cc:422] | stack=0xad9fd000-0xad9ff000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000488e4 /system/lib/libc.so (ioctl+8) art/runtime/runtime.cc:422] native: #01 pc 0001ae5b /system/lib/libc.so (ioctl+38) art/runtime/runtime.cc:422] native: #02 pc 0003cc69 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+168) art/runtime/runtime.cc:422] native: #03 pc 0003cd65 /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+8) art/runtime/runtime.cc:422] native: #04 pc 0003d2cf /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46) art/runtime/runtime.cc:422] native: #05 pc 0004f6b5 /system/lib/libbinder.so (???) art/runtime/runtime.cc:422] native: #06 pc 0000e325 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+144) art/runtime/runtime.cc:422] native: #07 pc 00067f29 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80) art/runtime/runtime.cc:422] native: #08 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #09 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Profile Saver" prio=5 tid=11 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c37430 self=0xaed85900 art/runtime/runtime.cc:422] | sysTid=22096 nice=-10 cgrp=default sched=0/0 handle=0xa7b89920 art/runtime/runtime.cc:422] | state=S schedstat=( 17111501 206208 29 ) utm=0 stm=0 core=3 HZ=100 art/runtime/runtime.cc:422] | stack=0xa7a8d000-0xa7a8f000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 000b70d9 /system/lib/libart.so (_ZN3art17ConditionVariable16WaitHoldingLocksEPNS_6ThreadE+92) art/runtime/runtime.cc:422] native: #02 pc 0025b9b5 /system/lib/libart.so (_ZN3art12ProfileSaver3RunEv+296) art/runtime/runtime.cc:422] native: #03 pc 0025ccf9 /system/lib/libart.so (_ZN3art12ProfileSaver21RunProfileSaverThreadEPv+52) art/runtime/runtime.cc:422] native: #04 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #05 pc 00019e5d /system/lib/libc.so (__start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Thread-3" prio=5 tid=12 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c37940 self=0xa4fc8b00 art/runtime/runtime.cc:422] | sysTid=22100 nice=0 cgrp=default sched=0/0 handle=0xa3bf4920 art/runtime/runtime.cc:422] | state=S schedstat=( 422334 56583 4 ) utm=0 stm=0 core=3 HZ=100 art/runtime/runtime.cc:422] | stack=0xa3af2000-0xa3af4000 stackSize=1038KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00048700 /system/lib/libc.so (accept4+8) art/runtime/runtime.cc:422] native: #01 pc 0000116d /system/lib/libnetd_client.so (???) art/runtime/runtime.cc:422] native: #02 pc 0001863d /system/lib/libjavacore.so (???) art/runtime/runtime.cc:422] native: #03 pc 004c6fc1 /data/dalvik-cache/arm/system@framework@boot.oat (Java_libcore_io_Posix_acceptLjava_io_FileDescriptor_2Ljava_net_SocketAddress_2+116) art/runtime/runtime.cc:422] at libcore.io.Posix.accept(Native method) art/runtime/runtime.cc:422] at libcore.io.BlockGuardOs.accept(BlockGuardOs.java:64) art/runtime/runtime.cc:422] at android.system.Os.accept(Os.java:43) art/runtime/runtime.cc:422] at android.net.LocalSocketImpl.accept(LocalSocketImpl.java:336) art/runtime/runtime.cc:422] at android.net.LocalServerSocket.accept(LocalServerSocket.java:90) A/art: art/runtime/runtime.cc:422] at com.android.tools.ir.server.Server$SocketServerThread.run(Server.java:165) art/runtime/runtime.cc:422] at java.lang.Thread.run(Thread.java:761) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "BaseActivity" prio=5 tid=13 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12cc4160 self=0xae855a00 art/runtime/runtime.cc:422] | sysTid=22113 nice=0 cgrp=default sched=0/0 handle=0x951e2920 art/runtime/runtime.cc:422] | state=S schedstat=( 21400459 4402124 22 ) utm=1 stm=0 core=3 HZ=100 art/runtime/runtime.cc:422] | stack=0x950e0000-0x950e2000 stackSize=1038KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000487a4 /system/lib/libc.so (epoll_pwait+20) art/runtime/runtime.cc:422] native: #01 pc 0001a20d /system/lib/libc.so (epoll_pwait+60) art/runtime/runtime.cc:422] native: #02 pc 0001a23d /system/lib/libc.so (epoll_wait+12) art/runtime/runtime.cc:422] native: #03 pc 00011c83 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118) art/runtime/runtime.cc:422] native: #04 pc 00011b7f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26) art/runtime/runtime.cc:422] native: #05 pc 00093a7d /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22) art/runtime/runtime.cc:422] native: #06 pc 00be92e5 /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnceJI+96) art/runtime/runtime.cc:422] at android.os.MessageQueue.nativePollOnce(Native method) art/runtime/runtime.cc:422] at android.os.MessageQueue.next(MessageQueue.java:323) art/runtime/runtime.cc:422] at android.os.Looper.loop(Looper.java:136) art/runtime/runtime.cc:422] at android.os.HandlerThread.run(HandlerThread.java:61) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "USBMonitor" prio=5 tid=14 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12d4d5e0 self=0xae857300 art/runtime/runtime.cc:422] | sysTid=22118 nice=0 cgrp=default sched=0/0 handle=0x950dd920 art/runtime/runtime.cc:422] | state=S schedstat=( 1655630085 160546163 3659 ) utm=148 stm=16 core=0 HZ=100 art/runtime/runtime.cc:422] | stack=0x94fdb000-0x94fdd000 stackSize=1038KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000487a4 /system/lib/libc.so (epoll_pwait+20) art/runtime/runtime.cc:422] native: #01 pc 0001a20d /system/lib/libc.so (epoll_pwait+60) art/runtime/runtime.cc:422] native: #02 pc 0001a23d /system/lib/libc.so (epoll_wait+12) art/runtime/runtime.cc:422] native: #03 pc 00011c83 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118) art/runtime/runtime.cc:422] native: #04 pc 00011b7f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26) art/runtime/runtime.cc:422] native: #05 pc 00093a7d /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+22) art/runtime/runtime.cc:422] native: #06 pc 00be92e5 /data/dalvik-cache/arm/system@framework@boot.oat (Java_android_os_MessageQueue_nativePollOnceJI+96) art/runtime/runtime.cc:422] at android.os.MessageQueue.nativePollOnce(Native method) art/runtime/runtime.cc:422] at android.os.MessageQueue.next(MessageQueue.java:323) art/runtime/runtime.cc:422] at android.os.Looper.loop(Looper.java:136) art/runtime/runtime.cc:422] at android.os.HandlerThread.run(HandlerThread.java:61) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "RenderThread" prio=5 tid=15 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12d4d670 self=0xae858700 art/runtime/runtime.cc:422] | sysTid=22119 nice=-10 cgrp=default sched=0/0 handle=0x94fd8920 art/runtime/runtime.cc:422] | state=S schedstat=( 78782059129 6114240315 338450 ) utm=6090 stm=1787 core=3 HZ=100 art/runtime/runtime.cc:422] | stack=0x94edc000-0x94ede000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000487a4 /system/lib/libc.so (epoll_pwait+20) art/runtime/runtime.cc:422] native: #01 pc 0001a20d /system/lib/libc.so (epoll_pwait+60) art/runtime/runtime.cc:422] native: #02 pc 0001a23d /system/lib/libc.so (epoll_wait+12) art/runtime/runtime.cc:422] native: #03 pc 00011c83 /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+118) art/runtime/runtime.cc:422] native: #04 pc 00011b7f /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+26) art/runtime/runtime.cc:422] native: #05 pc 00029205 /system/lib/libhwui.so (_ZN7android10uirenderer12renderthread12RenderThread10threadLoopEv+284) art/runtime/runtime.cc:422] native: #06 pc 0000e325 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+144) art/runtime/runtime.cc:422] native: #07 pc 00067f29 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80) art/runtime/runtime.cc:422] native: #08 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #09 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "hwuiTask1" prio=5 tid=16 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12d4d790 self=0xa7992900 art/runtime/runtime.cc:422] | sysTid=22129 nice=-2 cgrp=default sched=0/0 handle=0x94674920 art/runtime/runtime.cc:422] | state=S schedstat=( 7685131 6214538 79 ) utm=0 stm=0 core=1 HZ=100 art/runtime/runtime.cc:422] | stack=0x94578000-0x9457a000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 00046eab /system/lib/libc.so (_ZL24pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102) art/runtime/runtime.cc:422] native: #02 pc 00029aab /system/lib/libhwui.so (???) art/runtime/runtime.cc:422] native: #03 pc 00029a21 /system/lib/libhwui.so (???) A/art: art/runtime/runtime.cc:422] native: #04 pc 0000e3a3 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+270) art/runtime/runtime.cc:422] native: #05 pc 00067f29 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80) art/runtime/runtime.cc:422] native: #06 pc 00047323 /system/lib/libc.so (_ZL15__pthread_startPv+22) art/runtime/runtime.cc:422] native: #07 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Binder:22004_3" prio=5 tid=17 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12d4dc10 self=0xae859b00 art/runtime/runtime.cc:422] | sysTid=22487 nice=0 cgrp=default sched=0/0 handle=0x9397f920 art/runtime/runtime.cc:422] | state=S schedstat=( 2716582 289625 8 ) utm=0 stm=0 core=0 HZ=100 art/runtime/runtime.cc:422] | stack=0x93883000-0x93885000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 000488e4 /system/lib/libc.so (ioctl+8) art/runtime/runtime.cc:422] native: #01 pc 0001ae5b /system/lib/libc.so (ioctl+38) art/runtime/runtime.cc:422] native: #02 pc 0003cc69 /system/lib/libbinder.so (_ZN7android14IPCThreadState14talkWithDriverEb+168) art/runtime/runtime.cc:422] native: #03 pc 0003cd65 /system/lib/libbinder.so (_ZN7android14IPCThreadState20getAndExecuteCommandEv+8) art/runtime/runtime.cc:422] native: #04 pc 0003d2cf /system/lib/libbinder.so (_ZN7android14IPCThreadState14joinThreadPoolEb+46) art/runtime/runtime.cc:422] native: #05 pc 0004f6b5 /system/lib/libbinder.so (???) art/runtime/runtime.cc:422] native: #06 pc 0000e325 /system/lib/libutils.so (_ZN7android6Thread11_threadLoopEPv+144) art/runtime/runtime.cc:422] native: #07 pc 00067f29 /system/lib/libandroid_runtime.so (_ZN7android14AndroidRuntime15javaThreadShellEPv+80) art/runtime/runtime.cc:422] native: #08 pc 00047323 /system/lib/libc.so (_ZL15pthread_startPv+22) art/runtime/runtime.cc:422] native: #09 pc 00019e5d /system/lib/libc.so (start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] "Thread-4" prio=5 tid=18 Native art/runtime/runtime.cc:422] | group="" sCount=1 dsCount=0 obj=0x12c2f160 self=0xa79d5900 art/runtime/runtime.cc:422] | sysTid=22730 nice=0 cgrp=default sched=0/0 handle=0x90a7f920 art/runtime/runtime.cc:422] | state=S schedstat=( 336819609531 10575059448 141210 ) utm=32839 stm=842 core=3 HZ=100 art/runtime/runtime.cc:422] | stack=0x90983000-0x90985000 stackSize=1014KB art/runtime/runtime.cc:422] | held mutexes= art/runtime/runtime.cc:422] native: #00 pc 00017418 /system/lib/libc.so (syscall+28) art/runtime/runtime.cc:422] native: #01 pc 00046eab /system/lib/libc.so (_ZL24pthread_cond_timedwaitP23pthread_cond_internal_tP15pthread_mutex_tbPK8timespec+102) art/runtime/runtime.cc:422] native: #02 pc 0000d840 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview16waitCaptureFrameEv+84) art/runtime/runtime.cc:422] native: #03 pc 0000de28 /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview20do_capture_idle_loopEP7_JNIEnv+40) art/runtime/runtime.cc:422] native: #04 pc 0000df9c /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview10do_captureEP7_JNIEnv+104) art/runtime/runtime.cc:422] native: #05 pc 0000dfdc /data/app/com.serenegiant.usbcameratest-1/lib/arm/libUVCCamera.so (_ZN10UVCPreview19capture_thread_funcEPv+52) art/runtime/runtime.cc:422] native: #06 pc 00047323 /system/lib/libc.so (_ZL15__pthread_startPv+22) art/runtime/runtime.cc:422] native: #07 pc 00019e5d /system/lib/libc.so (__start_thread+6) art/runtime/runtime.cc:422] (no managed stack frames) art/runtime/runtime.cc:422] art/runtime/runtime.cc:422] art/runtime/runtime.cc:427] JNI ERROR (app bug): weak global reference table overflow (max=51200) art/runtime/runtime.cc:427] weak global reference table dump: art/runtime/runtime.cc:427] Last 10 entries (of 51200): art/runtime/runtime.cc:427] 51199: 0x12cafdc0 java.lang.Thread art/runtime/runtime.cc:427] 51198: 0x12cafd30 java.lang.Thread art/runtime/runtime.cc:427] 51197: 0x12cafca0 java.lang.Thread art/runtime/runtime.cc:427] 51196: 0x12cafc10 java.lang.Thread art/runtime/runtime.cc:427] 51195: 0x12cafb80 java.lang.Thread art/runtime/runtime.cc:427] 51194: 0x12cafaf0 java.lang.Thread art/runtime/runtime.cc:427] 51193: 0x12cafa60 java.lang.Thread art/runtime/runtime.cc:427] 51192: 0x12caf9d0 java.lang.Thread art/runtime/runtime.cc:427] 51191: 0x12caf940 java.lang.Thread art/runtime/runtime.cc:427] 51190: 0x12caf8b0 java.lang.Thread art/runtime/runtime.cc:427] Summary: art/runtime/runtime.cc:427] 4759 of java.lang.Class (4759 unique instances) art/runtime/runtime.cc:427] 528 of java.lang.Thread (528 unique instances) art/runtime/runtime.cc:427] 27 of byte[] (2916 elements) (27 unique instances) art/runtime/runtime.cc:427] 26 of java.lang.DexCache (26 unique instances) art/runtime/runtime.cc:427] 21 of android.view.RenderNode (21 unique instances) art/runtime/runtime.cc:427] 17 of byte[] (4096 elements) (17 unique instances) art/runtime/runtime.cc:427] 12 of byte[] (2304 elements) (12 unique instances) A/art: art/runtime/runtime.cc:427] 6 of dalvik.system.PathClassLoader (1 unique instances) art/runtime/runtime.cc:427] 5 of byte[] (1024 elements) (5 unique instances) art/runtime/runtime.cc:427] 5 of byte[] (5184 elements) (5 unique instances) art/runtime/runtime.cc:427] 5 of byte[] (29584 elements) (5 unique instances) art/runtime/runtime.cc:427] 4 of byte[] (1120 elements) (4 unique instances) art/runtime/runtime.cc:427] 4 of byte[] (12400 elements) (4 unique instances) art/runtime/runtime.cc:427] 3 of byte[] (144 elements) (3 unique instances) art/runtime/runtime.cc:427] 3 of byte[] (528 elements) (3 unique instances) art/runtime/runtime.cc:427] 3 of byte[] (8832 elements) (3 unique instances) art/runtime/runtime.cc:427] 3 of byte[] (9216 elements) (3 unique instances) art/runtime/runtime.cc:427] 2 of byte[] (3844 elements) (2 unique instances) art/runtime/runtime.cc:427] 2 of byte[] (3872 elements) (2 unique instances) art/runtime/runtime.cc:427] 2 of android.os.HandlerThread (2 unique instances) art/runtime/runtime.cc:427] 1 of java.lang.ThreadGroup art/runtime/runtime.cc:427] 1 of byte[] (768 elements) art/runtime/runtime.cc:427] 1 of byte[] (1920 elements) art/runtime/runtime.cc:427] 1 of byte[] (9152 elements) art/runtime/runtime.cc:427] 1 of byte[] (614400 elements) art/runtime/runtime.cc:427] 1 of byte[] (1228800 elements) art/runtime/runtime.cc:427] art/runtime/runtime.cc:427] A/libc: Fatal signal 6 (SIGABRT), code -6 in tid 22707 (JNISurfaceTextu)

george-vlahakis commented 3 years ago

Been getting this too and saw that serenegiant_usb_UVCCamera.cpp:nativeSetFrameCallback creates a GlobalRef which in UVCPreview::setFrameCallback is not released if the reference object is the same. However, NewGlobalRef creates a new reference even if it is the same object. Meaning the new reference will persist and wont get deleted. Java will send the same object instance in some scenarios, so the condition is met to create but not free the reference. Once I disabled:

if (!env->IsSameObject(mFrameCallbackObj, frame_callback_obj)) {

in UVCPreview::setFrameCallbackmy tests passed.