ANR in a IntentService - android

I get ANR reported from our app users. But I am not able to reproduce on our phones.
Report in Google play says the following.
executing service com.myapp/.background.MyIntentService
(no location available)
Following is the Code inside MyIntentService.
public class MyIntentService extends IntentService {
public MyIntentService() {
super(MyIntentService.class.getName());
}
#Override
protected void onHandleIntent(Intent intent) {
SystemClock.sleep(100);
Intent intent2 = new Intent(this, HomeActivity.class);
intent2.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK|
Intent.FLAG_ACTIVITY_NO_ANIMATION|
Intent.FLAG_ACTIVITY_NO_HISTORY);
startActivity(intent2);
}
}
Above intent service is called at time when I open another app from mine to cleanup notification raised from that app. After 100ms I wanted to open my app back. I see no issues from my end. Following are the ANR I received from users's phone. How can I decode this info? Can someone point out the code path?
executing service com.myapp/.background.MyIntentService
(no location available)
"main" prio=5 tid=1 Waiting
| group="main" sCount=1 dsCount=0 obj=0x74aeda80 self=0xb4827800
| sysTid=17309 nice=-4 cgrp=default sched=0/0 handle=0xb6fb4bec
| state=S schedstat=( 0 0 0 ) utm=164 stm=73 core=3 HZ=100
| stack=0xbe5e4000-0xbe5e6000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x2e30cd13> (a java.lang.Object)
at java.lang.Thread.parkFor (Thread.java:1220)
- locked <0x2e30cd13> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt (AbstractQueuedSynchronizer.java:813)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly (AbstractQueuedSynchronizer.java:973)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly (AbstractQueuedSynchronizer.java:1281)
at java.util.concurrent.CountDownLatch.await (CountDownLatch.java:202)
at android.app.SharedPreferencesImpl$EditorImpl$1.run (SharedPreferencesImpl.java:365)
at android.app.QueuedWork.waitToFinish (QueuedWork.java:88)
at android.app.ActivityThread.handleServiceArgs (ActivityThread.java:2943)
at android.app.ActivityThread.access$2100 (ActivityThread.java:154)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1414)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:135)
at android.app.ActivityThread.main (ActivityThread.java:5357)
at java.lang.reflect.Method.invoke! (Native method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:952)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:747)
"Heap thread pool worker thread 0" tid=2 Native
"Heap thread pool worker thread 0" prio=5 tid=2 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0xafd4b400
| sysTid=17315 nice=0 cgrp=default sched=0/0 handle=0xb4918580
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=3 HZ=100
| stack=0xb4219000-0xb421b000 stackSize=1020KB
| held mutexes=
native: pc 00000000000133cc /system/lib/libc.so (syscall+28)
native: pc 00000000000a9a83 /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+82)
native: pc 0000000000231b07 /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+50)
native: pc 0000000000231aaf /system/lib/libart.so (art::ThreadPoolWorker::Run()+54)
native: pc 00000000002322ed /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+52)
native: pc 0000000000016eff /system/lib/libc.so (__pthread_start(void*)+30)
native: pc 0000000000014f33 /system/lib/libc.so (__start_thread+6)
"Heap thread pool worker thread 1" tid=3 Native
"Heap thread pool worker thread 1" prio=5 tid=3 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0xb4827c00
| sysTid=17316 nice=0 cgrp=default sched=0/0 handle=0xb4918800
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=3 HZ=100
| stack=0xb4119000-0xb411b000 stackSize=1020KB
| held mutexes=
native: pc 00000000000133cc /system/lib/libc.so (syscall+28)
native: pc 00000000000a9a83 /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+82)
native: pc 0000000000231b07 /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+50)
native: pc 0000000000231aaf /system/lib/libart.so (art::ThreadPoolWorker::Run()+54)
native: pc 00000000002322ed /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+52)
native: pc 0000000000016eff /system/lib/libc.so (__pthread_start(void*)+30)
native: pc 0000000000014f33 /system/lib/libc.so (__start_thread+6)
"Heap thread pool worker thread 2" tid=4 Native
"Heap thread pool worker thread 2" prio=5 tid=4 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0xafd4c400
| sysTid=17317 nice=0 cgrp=default sched=0/0 handle=0xb4918080
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=1 HZ=100
| stack=0xb4019000-0xb401b000 stackSize=1020KB
| held mutexes=
native: pc 00000000000133cc /system/lib/libc.so (syscall+28)
native: pc 00000000000a9a83 /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+82)
native: pc 0000000000231b07 /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+50)
native: pc 0000000000231aaf /system/lib/libart.so (art::ThreadPoolWorker::Run()+54)
native: pc 00000000002322ed /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+52)
native: pc 0000000000016eff /system/lib/libc.so (__pthread_start(void*)+30)
native: pc 0000000000014f33 /system/lib/libc.so (__start_thread+6)
"ReferenceQueueDaemon" tid=6 Waiting
"ReferenceQueueDaemon" daemon prio=5 tid=6 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c742e0 self=0xb4a2bc00
| sysTid=17319 nice=0 cgrp=default sched=0/0 handle=0xb4918a80
| state=S schedstat=( 0 0 0 ) utm=6 stm=3 core=1 HZ=100
| stack=0xb3e17000-0xb3e19000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x38f54b50> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$ReferenceQueueDaemon.run (Daemons.java:134)
- locked <0x38f54b50> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Thread.run (Thread.java:818)
"GCDaemon" tid=7 Waiting
"GCDaemon" daemon prio=5 tid=7 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c74460 self=0xb4a2d800
| sysTid=17323 nice=0 cgrp=default sched=0/0 handle=0xb491a880
| state=S schedstat=( 0 0 0 ) utm=65 stm=11 core=2 HZ=100
| stack=0xa4f9c000-0xa4f9e000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x0d43a149> (a java.lang.Daemons$GCDaemon)
at java.lang.Daemons$GCDaemon.run (Daemons.java:344)
- locked <0x0d43a149> (a java.lang.Daemons$GCDaemon)
at java.lang.Thread.run (Thread.java:818)
"HeapTrimmerDaemon" tid=8 Waiting
"HeapTrimmerDaemon" daemon prio=5 tid=8 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c74400 self=0xb4a2d400
| sysTid=17322 nice=0 cgrp=default sched=0/0 handle=0xb4919200
| state=S schedstat=( 0 0 0 ) utm=0 stm=1 core=1 HZ=100
| stack=0xa50a0000-0xa50a2000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x08661a4e> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Daemons$HeapTrimmerDaemon.run (Daemons.java:311)
- locked <0x08661a4e> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Thread.run (Thread.java:818)
"FinalizerWatchdogDaemon" tid=9 Waiting
"FinalizerWatchdogDaemon" daemon prio=5 tid=9 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c743a0 self=0xb4a2c400
| sysTid=17321 nice=0 cgrp=default sched=0/0 handle=0xb4918f80
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=0 HZ=100
| stack=0xafafe000-0xafb00000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x15d1276f> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject (Daemons.java:240)
- locked <0x15d1276f> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.run (Daemons.java:212)
at java.lang.Thread.run (Thread.java:818)
"FinalizerDaemon" tid=10 Waiting
"FinalizerDaemon" daemon prio=5 tid=10 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c74340 self=0xb4a2c000
| sysTid=17320 nice=0 cgrp=default sched=0/0 handle=0xb4918d00
| state=S schedstat=( 0 0 0 ) utm=18 stm=8 core=3 HZ=100
| stack=0xb3d11000-0xb3d13000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x32ebcc7c> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait (Object.java:422)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:101)
- locked <0x32ebcc7c> (a java.lang.ref.ReferenceQueue)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:72)
at java.lang.Daemons$FinalizerDaemon.run (Daemons.java:174)
at java.lang.Thread.run (Thread.java:818)
"Binder_1" tid=11 Native
"Binder_1" prio=5 tid=11 Native
| group="main" sCount=1 dsCount=0 obj=0x12c620a0 self=0xb4a2e400
| sysTid=17324 nice=0 cgrp=default sched=0/0 handle=0xb491ab00
| state=S schedstat=( 0 0 0 ) utm=17 stm=21 core=0 HZ=100
| stack=0xa4da0000-0xa4da2000 stackSize=1012KB
| held mutexes=
native: pc 000000000003b730 /system/lib/libc.so (__ioctl+8)
native: pc 0000000000052631 /system/lib/libc.so (ioctl+14)
native: pc 000000000001f417 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+138)
native: pc 000000000001f907 /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6)
native: pc 000000000001f969 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
native: pc 0000000000023c17 /system/lib/libbinder.so (???)
native: pc 0000000000010525 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
native: pc 00000000000606ed /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)
native: pc 0000000000010095 /system/lib/libutils.so (???)
native: pc 0000000000016eff /system/lib/libc.so (__pthread_start(void*)+30)
native: pc 0000000000014f33 /system/lib/libc.so (__start_thread+6)
"Binder_2" tid=12 Native
"Binder_2" prio=5 tid=12 Native
| group="main" sCount=1 dsCount=0 obj=0x12c650a0 self=0xafd4d400
| sysTid=17325 nice=0 cgrp=default sched=0/0 handle=0xb491ad80
| state=S schedstat=( 0 0 0 ) utm=21 stm=16 core=2 HZ=100
| stack=0xa4ca2000-0xa4ca4000 stackSize=1012KB
| held mutexes=
native: pc 000000000003b730 /system/lib/libc.so (__ioctl+8)
native: pc 0000000000052631 /system/lib/libc.so (ioctl+14)
native: pc 000000000001f417 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+138)
native: pc 000000000001f907 /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6)
native: pc 000000000001f969 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
native: pc 0000000000023c17 /system/lib/libbinder.so (???)
native: pc 0000000000010525 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
native: pc 00000000000606ed /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)
native: pc 0000000000010095 /system/lib/libutils.so (???)
native: pc 0000000000016eff /system/lib/libc.so (__pthread_start(void*)+30)
native: pc 0000000000014f33 /system/lib/libc.so (__start_thread+6)
"Binder_3" tid=14 Native
"Binder_3" prio=5 tid=14 Native
| group="main" sCount=1 dsCount=0 obj=0x12f337c0 self=0xafd57800
| sysTid=17482 nice=0 cgrp=default sched=0/0 handle=0xafc95980
| state=S schedstat=( 0 0 0 ) utm=21 stm=16 core=3 HZ=100
| stack=0xa2e23000-0xa2e25000 stackSize=1012KB
| held mutexes=
native: pc 000000000003b730 /system/lib/libc.so (__ioctl+8)
native: pc 0000000000052631 /system/lib/libc.so (ioctl+14)
native: pc 000000000001f417 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+138)
native: pc 000000000001f907 /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6)
native: pc 000000000001f969 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48)
native: pc 0000000000023c17 /system/lib/libbinder.so (???)
native: pc 0000000000010525 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+112)
native: pc 00000000000606ed /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+72)
native: pc 0000000000010095 /system/lib/libutils.so (???)
native: pc 0000000000016eff /system/lib/libc.so (__pthread_start(void*)+30)
native: pc 0000000000014f33 /system/lib/libc.so (__start_thread+6)
"AsyncTask #1" tid=15 Waiting
"AsyncTask #1" prio=5 tid=15 Waiting
| group="main" sCount=1 dsCount=0 obj=0x12ea9760 self=0xafd4e400
| sysTid=17368 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xafc94300
| state=S schedstat=( 0 0 0 ) utm=1 stm=2 core=2 HZ=100
| stack=0xa2d19000-0xa2d1b000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x2a9c0905> (a java.lang.Object)
at java.lang.Thread.parkFor (Thread.java:1220)
- locked <0x2a9c0905> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:157)
at
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
at java.lang.Thread.run (Thread.java:818)
"Crashlytics Exception Handler1" tid=31 Waiting
"Crashlytics Exception Handler1" prio=5 tid=31 Waiting
| group="main" sCount=1 dsCount=0 obj=0x12f2d220 self=0xafd55000
| sysTid=17404 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xafc97c80
| state=S schedstat=( 0 0 0 ) utm=3 stm=0 core=1 HZ=100
| stack=0xa1ee9000-0xa1eeb000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x073a6eb9> (a java.lang.Object)
at java.lang.Thread.parkFor (Thread.java:1220)
- locked <0x073a6eb9> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2016)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:410)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1035)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
at c.a.a.a.a.b.n$1$1.a (ExecutorUtils.java:75)
at c.a.a.a.a.b.h.run (BackgroundPriorityRunnable.java:30)
at java.lang.Thread.run (Thread.java:818)
"Answers Events Handler1" tid=32 Waiting
"Answers Events Handler1" prio=5 tid=32 Waiting
| group="main" sCount=1 dsCount=0 obj=0x13072160 self=0xafd54800
| sysTid=17397 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xafc98180
| state=S schedstat=( 0 0 0 ) utm=1 stm=0 core=1 HZ=100
| stack=0xa177a000-0xa177c000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x3bda2880> (a java.lang.Object)
at java.lang.Thread.parkFor (Thread.java:1220)
- locked <0x3bda2880> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2016)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1048)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:776)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1035)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1097)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
at c.a.a.a.a.b.n$1$1.a (ExecutorUtils.java:75)
at c.a.a.a.a.b.h.run (BackgroundPriorityRunnable.java:30)
at java.lang.Thread.run (Thread.java:818)
"GoogleApiHandler" tid=33 Native
"GoogleApiHandler" prio=5 tid=33 Native
| group="main" sCount=1 dsCount=0 obj=0x12ec6ba0 self=0xafd55400
| sysTid=17407 nice=9 cgrp=default sched=0/0 handle=0xafc97f00
| state=S schedstat=( 0 0 0 ) utm=5 stm=1 core=0 HZ=100
| stack=0xa21ed000-0xa21ef000 stackSize=1036KB
| held mutexes=
native: pc 000000000003b3ec /system/lib/libc.so (__epoll_pwait+20)
native: pc 00000000000151cf /system/lib/libc.so (epoll_pwait+26)
native: pc 00000000000151dd /system/lib/libc.so (epoll_wait+6)
native: pc 00000000000124eb /system/lib/libutils.so (android::Looper::pollInner(int)+98)
native: pc 0000000000012715 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
native: pc 00000000000825b9 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
native: pc 00000000000b39cb /data/dalvik-cache/arm/system#<EMAIL_ADDRESS> (Java_android_os_MessageQueue_nativePollOnce__JI+102)
at android.os.MessageQueue.nativePollOnce (Native method)
at android.os.MessageQueue.next (MessageQueue.java:143)
at android.os.Looper.loop (Looper.java:122)
at android.os.HandlerThread.run (HandlerThread.java:61)
"Thread-881" tid=35 Waiting
"Thread-881" prio=5 tid=35 Waiting
| group="main" sCount=1 dsCount=0 obj=0x1306fb20 self=0xafd5a800
| sysTid=17422 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xafc95c00
| state=S schedstat=( 0 0 0 ) utm=0 stm=0 core=2 HZ=100
| stack=0xa187e000-0xa1880000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x3db3b2fe> (a java.lang.Object)
at java.lang.Thread.parkFor (Thread.java:1220)
- locked <0x3db3b2fe> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2016)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:410)
at com.myapp.Applicationcls$2.run (Applicationcls.java:365)
at java.lang.Thread.run (Thread.java:818)
"Signal Catcher" tid=5 Runnable
"Signal Catcher" daemon prio=5 tid=5 Runnable
| group="system" sCount=0 dsCount=0 obj=0x12c070a0 self=0xb4828c00
| sysTid=17318 nice=0 cgrp=default sched=0/0 handle=0xb4918300
| state=R schedstat=( 0 0 0 ) utm=7 stm=3 core=1 HZ=100
| stack=0xb3f1b000-0xb3f1d000 stackSize=1012KB
| held mutexes= "thread list lock" "mutator lock"(exclusive held)
native: pc 0000000000004e64 /system/lib/libbacktrace_libc++.so (UnwindCurrent::Unwind(unsigned int, ucontext*)+23)
native: pc 0000000000003665 /system/lib/libbacktrace_libc++.so (Backtrace::Unwind(unsigned int, ucontext*)+8)
native: pc 0000000000243459 /system/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, char const*, art::mirror::ArtMethod*)+68)
native: pc 00000000002277c3 /system/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) const+146)
native: pc 0000000000230b4b /system/lib/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+142)
native: pc 0000000000216017 /system/lib/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char> >&)+66)
native: pc 000000000021c4a5 /system/lib/libart.so (art::SignalCatcher::HandleSigQuit()+752)
native: pc 000000000021cb4f /system/lib/libart.so (art::SignalCatcher::Run(void*)+318)
native: pc 0000000000016eff /system/lib/libc.so (__pthread_start(void*)+30)
native: pc 0000000000014f33 /system/lib/libc.so (__start_thread+6)

Related

Broadcast of Intent: RegisterUponInstallReceiver, Native ANR, No Java Stack

Once again Google/Android9 crashes somewhere in native code library without giving any idea through Java stack trace or otherwise about where it happened and why.
In my case it happened during "REGISTER_AGENT" intent issued by Samsung SAP library.
Probably it's related to Samsung SAP library, but it's specific to Android9 only and it doesn't happen very often.
Any hint and help are appreciated.
Broadcast of Intent { act=com.samsung.accessory.action.REGISTER_AGENT flg=0x30 pkg=[package_name] cmp=[package_name]/com.samsung.android.sdk.accessory.RegisterUponInstallReceiver }
com.samsung.android.sdk.accessory.RegisterUponInstallReceiver
"main" prio=5 tid=1 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x75952fb8 self=0x7368414c00
| sysTid=16534 nice=0 cgrp=default sched=0/0 handle=0x73eee21560
| state=S schedstat=( 92637885 21726999 102 ) utm=1 stm=7 core=1 HZ=100
| stack=0x7fd3ecd000-0x7fd3ecf000 stackSize=8MB
| held mutexes=
#00 pc 00000000000712e0 /system/lib64/libc.so (__epoll_pwait+8)
#01 pc 00000000000141c0 /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
#02 pc 000000000001408c /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+60)
#03 pc 000000000012c25c /system/lib64/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int)+44)
at android.os.MessageQueue.nativePollOnce (MessageQueue.java)
at android.os.MessageQueue.next (MessageQueue.java:326)
at android.os.Looper.loop (Looper.java:181)
at android.app.ActivityThread.main (ActivityThread.java:6990)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1445)
"Jit thread pool worker thread 0" tid=2 Native
"Jit thread pool worker thread 0" daemon prio=5 tid=2 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x132001a0 self=0x7361e24400
| sysTid=16540 nice=9 cgrp=default sched=0/0 handle=0x7361dff4f0
| state=S schedstat=( 1490961 201962 5 ) utm=0 stm=0 core=1 HZ=100
| stack=0x7361d01000-0x7361d03000 stackSize=1021KB
| held mutexes=
#00 pc 000000000001eeac /system/lib64/libc.so (syscall+28)
#01 pc 00000000000d7c24 /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
#02 pc 00000000004b6614 /system/lib64/libart.so (art::ThreadPool::GetTask(art::Thread*)+260)
#03 pc 00000000004b5b6c /system/lib64/libart.so (art::ThreadPoolWorker::Run()+124)
#04 pc 00000000004b561c /system/lib64/libart.so (art::ThreadPoolWorker::Callback(void*)+148)
#05 pc 0000000000084df8 /system/lib64/libc.so (__pthread_start(void*)+208)
#06 pc 0000000000023ac4 /system/lib64/libc.so (__start_thread+68)
"ReferenceQueueDaemon" tid=4 Waiting
"ReferenceQueueDaemon" daemon prio=5 tid=4 Waiting
| group="system" sCount=1 dsCount=0 flags=1 obj=0x132002b0 self=0x73684e2000
| sysTid=16542 nice=4 cgrp=default sched=0/0 handle=0x7350ed74f0
| state=S schedstat=( 1160387 6055884 11 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7350dd4000-0x7350dd6000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x0727dab7> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$ReferenceQueueDaemon.runInternal (Daemons.java:178)
- locked <0x0727dab7> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
"FinalizerWatchdogDaemon" tid=5 Waiting
"FinalizerWatchdogDaemon" daemon prio=5 tid=5 Waiting
| group="system" sCount=1 dsCount=0 flags=1 obj=0x13200338 self=0x73684e3800
| sysTid=16544 nice=4 cgrp=default sched=0/0 handle=0x7350ccb4f0
| state=S schedstat=( 428733 6635577 9 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7350bc8000-0x7350bca000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x01261224> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded (Daemons.java:297)
- locked <0x01261224> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal (Daemons.java:277)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
"FinalizerDaemon" tid=6 Waiting
"FinalizerDaemon" daemon prio=5 tid=6 Waiting
| group="system" sCount=1 dsCount=0 flags=1 obj=0x132003c0 self=0x73684e2c00
| sysTid=16543 nice=4 cgrp=default sched=0/0 handle=0x7350dd14f0
| state=S schedstat=( 1754693 6156655 10 ) utm=0 stm=0 core=0 HZ=100
| stack=0x7350cce000-0x7350cd0000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x0294e18d> (a java.lang.Object)
at java.lang.Object.wait (Object.java:422)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:188)
- locked <0x0294e18d> (a java.lang.Object)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:209)
at java.lang.Daemons$FinalizerDaemon.runInternal (Daemons.java:232)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
"Binder:16534_1" tid=8 Native
"Binder:16534_1" prio=5 tid=8 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x13200448 self=0x735e88d000
| sysTid=16546 nice=0 cgrp=default sched=0/0 handle=0x73509c14f0
| state=S schedstat=( 1058729 78231 14 ) utm=0 stm=0 core=1 HZ=100
| stack=0x73508c6000-0x73508c8000 stackSize=1009KB
| held mutexes=
#00 pc 00000000000713cc /system/lib64/libc.so (__ioctl+4)
#01 pc 0000000000029c48 /system/lib64/libc.so (ioctl+136)
#02 pc 000000000005ac9c /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+260)
#03 pc 000000000005ae78 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
#04 pc 000000000005b5cc /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60)
#05 pc 000000000007c090 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
#06 pc 000000000000fb80 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
#07 pc 00000000000bcbf4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
#08 pc 0000000000084df8 /system/lib64/libc.so (__pthread_start(void*)+208)
#09 pc 0000000000023ac4 /system/lib64/libc.so (__start_thread+68)
"Binder:16534_2" tid=9 Native
"Binder:16534_2" prio=5 tid=9 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x132004d0 self=0x735fd04000
| sysTid=16547 nice=0 cgrp=default sched=0/0 handle=0x73508c34f0
| state=S schedstat=( 5113655 9872309 15 ) utm=0 stm=0 core=1 HZ=100
| stack=0x73507c8000-0x73507ca000 stackSize=1009KB
| held mutexes=
#00 pc 00000000000713cc /system/lib64/libc.so (__ioctl+4)
#01 pc 0000000000029c48 /system/lib64/libc.so (ioctl+136)
#02 pc 000000000005ac9c /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+260)
#03 pc 000000000005ae78 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
#04 pc 000000000005b5cc /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60)
#05 pc 000000000007c090 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
#06 pc 000000000000fb80 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
#07 pc 00000000000bcbf4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
#08 pc 0000000000084df8 /system/lib64/libc.so (__pthread_start(void*)+208)
#09 pc 0000000000023ac4 /system/lib64/libc.so (__start_thread+68)
"Profile Saver" tid=10 Native
"Profile Saver" daemon prio=5 tid=10 Native
| group="system" sCount=1 dsCount=0 flags=1 obj=0x13200558 self=0x7361e29800
| sysTid=16548 nice=9 cgrp=default sched=0/0 handle=0x73500034f0
| state=S schedstat=( 13089538 7896001 11 ) utm=0 stm=0 core=0 HZ=100
| stack=0x734ff08000-0x734ff0a000 stackSize=1009KB
| held mutexes=
#00 pc 000000000001eeac /system/lib64/libc.so (syscall+28)
#01 pc 00000000000d7c24 /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
#02 pc 000000000032a168 /system/lib64/libart.so (art::ProfileSaver::Run()+384)
#03 pc 000000000032d58c /system/lib64/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+92)
#04 pc 0000000000084df8 /system/lib64/libc.so (__pthread_start(void*)+208)
#05 pc 0000000000023ac4 /system/lib64/libc.so (__start_thread+68)
"Timer-0" tid=11 TimedWaiting
"Timer-0" prio=5 tid=11 TimedWaiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x132005e0 self=0x735fcae000
| sysTid=16551 nice=0 cgrp=default sched=0/0 handle=0x734fe5b4f0
| state=S schedstat=( 24982964 11812847 67 ) utm=1 stm=0 core=1 HZ=100
| stack=0x734fd58000-0x734fd5a000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x062b2f42> (a java.util.TaskQueue)
at java.lang.Object.wait (Object.java:422)
at java.util.TimerThread.mainLoop (Timer.java:559)
- locked <0x062b2f42> (a java.util.TaskQueue)
at java.util.TimerThread.run (Timer.java:512)
"RegistrationThread" tid=12 Waiting
"RegistrationThread" prio=5 tid=12 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x132006a8 self=0x73684b3000
| sysTid=16555 nice=0 cgrp=default sched=0/0 handle=0x734fd554f0
| state=S schedstat=( 360153 6123923 4 ) utm=0 stm=0 core=0 HZ=100
| stack=0x734fc52000-0x734fc54000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x07d56b53> (a java.lang.Object)
at java.lang.Thread.parkFor$ (Thread.java:2137)
- locked <0x07d56b53> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.FutureTask.awaitDone (FutureTask.java:450)
at java.util.concurrent.FutureTask.get (FutureTask.java:192)
at com.samsung.android.sdk.accessory.RegisterUponInstallReceiver$1.run (unavailable)
"RegistreationThread" tid=13 Native
"RegistreationThread" prio=5 tid=13 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x13200990 self=0x73684b3c00
| sysTid=16556 nice=0 cgrp=default sched=0/0 handle=0x734fc4f4f0
| state=S schedstat=( 8286656 6348153 18 ) utm=0 stm=0 core=1 HZ=100
| stack=0x734fb4c000-0x734fb4e000 stackSize=1041KB
| held mutexes=
#00 pc 00000000000713cc /system/lib64/libc.so (__ioctl+4)
#01 pc 0000000000029c48 /system/lib64/libc.so (ioctl+136)
#02 pc 000000000005ac9c /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+260)
#03 pc 000000000005bb70 /system/lib64/libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*)+360)
#04 pc 000000000005b890 /system/lib64/libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+176)
#05 pc 0000000000051560 /system/lib64/libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int)+72)
#06 pc 000000000013c110 /system/lib64/libandroid_runtime.so (android_os_BinderProxy_transact(_JNIEnv*, _jobject*, int, _jobject*, _jobject*, int)+152)
at android.os.BinderProxy.transactNative (Native method)
at android.os.BinderProxy.transact (Binder.java:1142)
at com.samsung.accessory.api.ISAFrameworkManagerV2$Stub$Proxy.registerComponent (unavailable)
at com.samsung.android.sdk.accessory.SAAdapter.a (unavailable)
- locked <0x01c42c90> (a com.samsung.android.sdk.accessory.SAAdapter)
at com.samsung.android.sdk.accessory.j$a.a (unavailable)
at com.samsung.android.sdk.accessory.j$a.call (unavailable)
at java.util.concurrent.FutureTask.run (FutureTask.java:266)
at java.lang.Thread.run (Thread.java:764)
"Binder:16534_3" tid=14 Native
"Binder:16534_3" prio=5 tid=14 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x13201170 self=0x735e918000
| sysTid=16617 nice=0 cgrp=default sched=0/0 handle=0x734fb494f0
| state=S schedstat=( 4330424 370692 5 ) utm=0 stm=0 core=1 HZ=100
| stack=0x734fa4e000-0x734fa50000 stackSize=1009KB
| held mutexes=
#00 pc 00000000000713cc /system/lib64/libc.so (__ioctl+4)
#01 pc 0000000000029c48 /system/lib64/libc.so (ioctl+136)
#02 pc 000000000005ac9c /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+260)
#03 pc 000000000005ae78 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
#04 pc 000000000005b5cc /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60)
#05 pc 000000000007c090 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
#06 pc 000000000000fb80 /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
#07 pc 00000000000bcbf4 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
#08 pc 0000000000084df8 /system/lib64/libc.so (__pthread_start(void*)+208)
#09 pc 0000000000023ac4 /system/lib64/libc.so (__start_thread+68)
"Signal Catcher" tid=3 Runnable
"Signal Catcher" daemon prio=5 tid=3 Runnable
| group="system" sCount=0 dsCount=0 flags=0 obj=0x13200228 self=0x7368416400
| sysTid=16541 nice=0 cgrp=default sched=0/0 handle=0x7361cfe4f0
| state=R schedstat=( 53512999 6126116 5 ) utm=2 stm=2 core=0 HZ=100
| stack=0x7361c03000-0x7361c05000 stackSize=1009KB
| held mutexes= "mutator lock"(shared held)
#00 pc 00000000003cb35c /system/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+220)
#01 pc 000000000049aca8 /system/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+352)
#02 pc 00000000004b4d9c /system/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+844)
#03 pc 00000000004adadc /system/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+476)
#04 pc 00000000004acec0 /system/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1120)
#05 pc 00000000004ac974 /system/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+884)
#06 pc 000000000047c26c /system/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+188)
#07 pc 00000000004881bc /system/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+1468)
#08 pc 0000000000486ea4 /system/lib64/libart.so (art::SignalCatcher::Run(void*)+380)
#09 pc 0000000000084df8 /system/lib64/libc.so (__pthread_start(void*)+208)
#10 pc 0000000000023ac4 /system/lib64/libc.so (__start_thread+68)
"HeapTaskDaemon" tid=7
"HeapTaskDaemon" daemon prio=5 tid=7 WaitingForTaskProcessor
| group="system" sCount=1 dsCount=0 flags=1 obj=0x132011f8 self=0x735fc37c00
| sysTid=16545 nice=4 cgrp=default sched=0/0 handle=0x7350bc54f0
| state=S schedstat=( 49512888 1873077 14 ) utm=4 stm=0 core=1 HZ=100
| stack=0x7350ac2000-0x7350ac4000 stackSize=1041KB
| held mutexes=
#00 pc 000000000001eeac /system/lib64/libc.so (syscall+28)
#01 pc 00000000000d7c24 /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
#02 pc 0000000000230820 /system/lib64/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+504)
#03 pc 0000000000231098 /system/lib64/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+96)
at dalvik.system.VMRuntime.runHeapTasks (Native method)
at java.lang.Daemons$HeapTaskDaemon.runInternal (Daemons.java:475)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
© 2019 Google · Mobile App · Help · Site Terms · Privacy · Developer Distribution Agreement

ANR because of AdMob (com.google.android.gms.policy_ads_fdr_dynamite)

I see lots of ANRs because of AdMob (com.google.android.gms.policy_ads_fdr_dynamite) in Google Play Console. The AdMob version is com.google.firebase:firebase-ads:17.1.3.
Is there anything I can do to resolve this issue?
Here is the log:
"main" tid=1 Waiting
"main" prio=5 tid=1 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x75c17870 self=0x7088414c00
| sysTid=15865 nice=-10 cgrp=default sched=0/0 handle=0x710e3c2548
| state=S schedstat=( 182206776470 51362492841 457089 ) utm=14097 stm=4123 core=5 HZ=100
| stack=0x7fc705c000-0x7fc705e000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x0c968d7c> (a com.google.android.gms.ads.exoplayer1.j)
at com.google.android.gms.ads.exoplayer1.j.a (com.google.android.gms.policy_ads_fdr_dynamite#30004#30004.238272502.238272502:17)
- locked <0x0c968d7c> (a com.google.android.gms.ads.exoplayer1.j)
at com.google.android.gms.ads.exoplayer1.h.b (com.google.android.gms.policy_ads_fdr_dynamite#30004#30004.238272502.238272502:1)
at com.google.android.gms.ads.internal.video.exoplayer1.f.a (com.google.android.gms.policy_ads_fdr_dynamite#30004#30004.238272502.238272502:9)
at com.google.android.gms.ads.internal.video.exoplayer1.f.b (com.google.android.gms.policy_ads_fdr_dynamite#30004#30004.238272502.238272502:3)
at com.google.android.gms.ads.internal.video.o.run (unavailable)
at android.os.Handler.handleCallback (Handler.java:873)
at android.os.Handler.dispatchMessage (Handler.java:99)
at aai.a (com.google.android.gms.policy_ads_fdr_dynamite#30004#30004.238272502.238272502)
at com.google.android.gms.ads.internal.util.e.a (com.google.android.gms.policy_ads_fdr_dynamite#30004#30004.238272502.238272502:1)
at aai.dispatchMessage (com.google.android.gms.policy_ads_fdr_dynamite#30004#30004.238272502.238272502)
at android.os.Looper.loop (Looper.java:280)
at android.app.ActivityThread.main (ActivityThread.java:6748)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:493)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:858)
"Jit thread pool worker thread 0" tid=2 Native
"Jit thread pool worker thread 0" daemon prio=5 tid=2 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc0000 self=0x708160e000
| sysTid=15870 nice=9 cgrp=default sched=0/0 handle=0x7081b984f0
| state=S schedstat=( 7120467166 4417943456 11222 ) utm=566 stm=146 core=6 HZ=100
| stack=0x7081a9a000-0x7081a9c000 stackSize=1021KB
| held mutexes=
#00 pc 000000000001f22c /system/lib64/libc.so (syscall+28)
#01 pc 00000000000d744c /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
#02 pc 00000000004aa70c /system/lib64/libart.so (art::ThreadPool::GetTask(art::Thread*)+260)
#03 pc 00000000004a9c74 /system/lib64/libart.so (art::ThreadPoolWorker::Run()+124)
#04 pc 00000000004a9734 /system/lib64/libart.so (art::ThreadPoolWorker::Callback(void*)+148)
#05 pc 00000000000923b0 /system/lib64/libc.so (__pthread_start(void*)+36)
#06 pc 0000000000023bf8 /system/lib64/libc.so (__start_thread+68)
"ReferenceQueueDaemon" tid=4 Waiting
"ReferenceQueueDaemon" daemon prio=5 tid=4 Waiting
| group="system" sCount=1 dsCount=0 flags=1 obj=0x14dc0440 self=0x707fd70c00
| sysTid=15873 nice=4 cgrp=default sched=0/0 handle=0x70706bd4f0
| state=S schedstat=( 919820191 192644883 1360 ) utm=59 stm=32 core=4 HZ=100
| stack=0x70705ba000-0x70705bc000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x051e3605> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$ReferenceQueueDaemon.runInternal (Daemons.java:178)
- locked <0x051e3605> (a java.lang.Class<java.lang.ref.ReferenceQueue>)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
"FinalizerDaemon" tid=5 Waiting
"FinalizerDaemon" daemon prio=5 tid=5 Waiting
| group="system" sCount=1 dsCount=0 flags=1 obj=0x14dc0518 self=0x707fd71800
| sysTid=15874 nice=4 cgrp=default sched=0/0 handle=0x70705b74f0
| state=S schedstat=( 423748589 274637909 2036 ) utm=37 stm=5 core=6 HZ=100
| stack=0x70704b4000-0x70704b6000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x0f30b65a> (a java.lang.Object)
at java.lang.Object.wait (Object.java:422)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:188)
- locked <0x0f30b65a> (a java.lang.Object)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:209)
at java.lang.Daemons$FinalizerDaemon.runInternal (Daemons.java:232)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
"FinalizerWatchdogDaemon" tid=6 Waiting
"FinalizerWatchdogDaemon" daemon prio=5 tid=6 Waiting
| group="system" sCount=1 dsCount=0 flags=1 obj=0x14dc0650 self=0x707fd72400
| sysTid=15875 nice=4 cgrp=default sched=0/0 handle=0x70704b14f0
| state=S schedstat=( 20386195 41230836 227 ) utm=2 stm=0 core=0 HZ=100
| stack=0x70703ae000-0x70703b0000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x02e9408b> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded (Daemons.java:297)
- locked <0x02e9408b> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal (Daemons.java:277)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
"Binder:15865_1" tid=7 Native
"Binder:15865_1" prio=5 tid=7 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc0748 self=0x7088484400
| sysTid=15877 nice=0 cgrp=default sched=0/0 handle=0x70701a74f0
| state=S schedstat=( 177113540 245706304 1494 ) utm=9 stm=8 core=0 HZ=100
| stack=0x70700ac000-0x70700ae000 stackSize=1009KB
| held mutexes=
#00 pc 000000000007cdbc /system/lib64/libc.so (__ioctl+4)
#01 pc 000000000002cb80 /system/lib64/libc.so (ioctl+132)
#02 pc 000000000005cd88 /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+244)
#03 pc 000000000005cf64 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
#04 pc 000000000005d6ac /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+64)
#05 pc 000000000007fc74 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
#06 pc 00000000000100dc /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+284)
#07 pc 00000000000b44a8 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
#08 pc 00000000000923b0 /system/lib64/libc.so (__pthread_start(void*)+36)
#09 pc 0000000000023bf8 /system/lib64/libc.so (__start_thread+68)
"Binder:15865_2" tid=9 Native
"Binder:15865_2" prio=5 tid=9 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc07d0 self=0x70885e8c00
| sysTid=15878 nice=0 cgrp=default sched=0/0 handle=0x70700a94f0
| state=S schedstat=( 181601435 190235002 1460 ) utm=11 stm=7 core=3 HZ=100
| stack=0x706ffae000-0x706ffb0000 stackSize=1009KB
| held mutexes=
#00 pc 000000000007cdbc /system/lib64/libc.so (__ioctl+4)
#01 pc 000000000002cb80 /system/lib64/libc.so (ioctl+132)
#02 pc 000000000005cd88 /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+244)
#03 pc 000000000005cf64 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
#04 pc 000000000005d6d8 /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+108)
#05 pc 000000000007fc74 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
#06 pc 00000000000100dc /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+284)
#07 pc 00000000000b44a8 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
#08 pc 00000000000923b0 /system/lib64/libc.so (__pthread_start(void*)+36)
#09 pc 0000000000023bf8 /system/lib64/libc.so (__start_thread+68)
"Binder:15865_3" tid=10 Native
"Binder:15865_3" prio=5 tid=10 Native
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc0858 self=0x7081615800
| sysTid=15879 nice=0 cgrp=default sched=0/0 handle=0x706ffab4f0
| state=S schedstat=( 178396756 228504652 1723 ) utm=8 stm=9 core=0 HZ=100
| stack=0x706feb0000-0x706feb2000 stackSize=1009KB
| held mutexes=
#00 pc 000000000007cdbc /system/lib64/libc.so (__ioctl+4)
#01 pc 000000000002cb80 /system/lib64/libc.so (ioctl+132)
#02 pc 000000000005cd88 /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+244)
#03 pc 000000000005cf64 /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
#04 pc 000000000005d6d8 /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+108)
#05 pc 000000000007fc74 /system/lib64/libbinder.so (android::PoolThread::threadLoop()+24)
#06 pc 00000000000100dc /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+284)
#07 pc 00000000000b44a8 /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
#08 pc 00000000000923b0 /system/lib64/libc.so (__pthread_start(void*)+36)
#09 pc 0000000000023bf8 /system/lib64/libc.so (__start_thread+68)
"Profile Saver" tid=11 Native
"Profile Saver" daemon prio=5 tid=11 Native
| group="system" sCount=1 dsCount=0 flags=1 obj=0x14dc08e0 self=0x70885b3400
| sysTid=15881 nice=9 cgrp=default sched=0/0 handle=0x706f3894f0
| state=S schedstat=( 1891158552 178338016 742 ) utm=176 stm=13 core=1 HZ=100
| stack=0x706f28e000-0x706f290000 stackSize=1009KB
| held mutexes=
#00 pc 000000000001f22c /system/lib64/libc.so (syscall+28)
#01 pc 00000000000d744c /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
#02 pc 0000000000322854 /system/lib64/libart.so (art::ProfileSaver::Run()+384)
#03 pc 0000000000325c4c /system/lib64/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+92)
#04 pc 00000000000923b0 /system/lib64/libc.so (__pthread_start(void*)+36)
#05 pc 0000000000023bf8 /system/lib64/libc.so (__start_thread+68)
"FirebaseInstanceId" tid=13 Waiting
"FirebaseInstanceId" prio=5 tid=13 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc0968 self=0x7088482c00
| sysTid=15886 nice=0 cgrp=default sched=0/0 handle=0x706efc04f0
| state=S schedstat=( 3404269 2267968 18 ) utm=0 stm=0 core=7 HZ=100
| stack=0x706eebd000-0x706eebf000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x057d0568> (a java.lang.Object)
at java.lang.Thread.parkFor$ (Thread.java:2137)
- locked <0x057d0568> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1120)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:849)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.a.run (unavailable:6)
at java.lang.Thread.run (Thread.java:764)
"Queue" tid=20 Waiting
"Queue" prio=10 tid=20 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc1140 self=0x707fcd9800
| sysTid=15895 nice=-8 cgrp=default sched=0/0 handle=0x706e83c4f0
| state=S schedstat=( 11115837 2085936 26 ) utm=1 stm=0 core=5 HZ=100
| stack=0x706e739000-0x706e73b000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x04512d81> (a java.lang.Object)
at java.lang.Thread.parkFor$ (Thread.java:2137)
- locked <0x04512d81> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.PriorityBlockingQueue.take (PriorityBlockingQueue.java:548)
at io.fabric.sdk.android.services.concurrency.c.a (SourceFile:197)
at io.fabric.sdk.android.services.concurrency.c.b (SourceFile:236)
at io.fabric.sdk.android.services.concurrency.c.a (SourceFile:65)
at io.fabric.sdk.android.services.concurrency.c.take (SourceFile:46)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)
"Queue" tid=21 Waiting
"Queue" prio=10 tid=21 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc1bf8 self=0x707fcdb000
| sysTid=15897 nice=10 cgrp=default sched=0/0 handle=0x706e32a4f0
| state=S schedstat=( 21071511 16160467 91 ) utm=2 stm=0 core=5 HZ=100
| stack=0x706e227000-0x706e229000 stackSize=1041KB
| held mutexes=
at java.lang.Object.wait (Native method)
- waiting on <0x0533de26> (a java.lang.Object)
at java.lang.Thread.parkFor$ (Thread.java:2137)
- locked <0x0533de26> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.PriorityBlockingQueue.take (PriorityBlockingQueue.java:548)
at io.fabric.sdk.android.services.concurrency.c.a (SourceFile:197)
at io.fabric.sdk.android.services.concurrency.c.b (SourceFile:236)
at io.fabric.sdk.android.services.concurrency.c.a (SourceFile:65)
at io.fabric.sdk.android.services.concurrency.c.take (SourceFile:46)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)
"Queue" tid=22 Waiting
"Queue" prio=10 tid=22 Waiting
| group="main" sCount=1 dsCount=0 flags=1 obj=0x14dc1cf8 self=0x707fcda400
| sysTid=15896 nice=-8 cgrp=default sched=0/0 handle=0x706e4304f0
| state=S schedstat=( 507919 969584 15 ) utm=0 stm=0 core=6 HZ=100
| stack=0x706e32d000-0x706e32f000 stackSize=1041KB
| held mutexes=
"Signal Catcher" tid=3 Runnable
"Signal Catcher" daemon prio=5 tid=3 Runnable
| group="system" sCount=0 dsCount=0 flags=0 obj=0x14dc0088 self=0x7088416400
| sysTid=15872 nice=0 cgrp=default sched=0/0 handle=0x7081a974f0
| state=R schedstat=( 60935885 3614426 25 ) utm=1 stm=5 core=7 HZ=100
| stack=0x708199c000-0x708199e000 stackSize=1009KB
| held mutexes= "mutator lock"(shared held)
#00 pc 00000000003c1e90 /system/lib64/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+220)
#01 pc 000000000048f44c /system/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+352)
#02 pc 00000000004a8ec8 /system/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+844)
#03 pc 00000000004a1de4 /system/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+484)
#04 pc 00000000004a1274 /system/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1036)
#05 pc 00000000004a0d94 /system/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+884)
#06 pc 0000000000471208 /system/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+188)
#07 pc 000000000047cf78 /system/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+1372)
#08 pc 000000000047bc50 /system/lib64/libart.so (art::SignalCatcher::Run(void*)+256)
#09 pc 00000000000923b0 /system/lib64/libc.so (__pthread_start(void*)+36)
#10 pc 0000000000023bf8 /system/lib64/libc.so (__start_thread+68)
"HeapTaskDaemon" tid=8
"HeapTaskDaemon" daemon prio=5 tid=8 WaitingForTaskProcessor
| group="system" sCount=1 dsCount=0 flags=1 obj=0x14dd6c80 self=0x707e217000
| sysTid=15876 nice=4 cgrp=default sched=0/0 handle=0x70703ab4f0
| state=S schedstat=( 12858851765 601057066 3943 ) utm=1131 stm=154 core=6 HZ=100
| stack=0x70702a8000-0x70702aa000 stackSize=1041KB
| held mutexes=
#00 pc 000000000001f22c /system/lib64/libc.so (syscall+28)
#01 pc 00000000000d744c /system/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
#02 pc 000000000022d3b4 /system/lib64/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+440)
#03 pc 000000000022dc48 /system/lib64/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+96)
at dalvik.system.VMRuntime.runHeapTasks (Native method)
at java.lang.Daemons$HeapTaskDaemon.runInternal (Daemons.java:475)
at java.lang.Daemons$Daemon.run (Daemons.java:103)
at java.lang.Thread.run (Thread.java:764)
I am too having the same issue, Looks like google has a known bug and open issue of this ANR.
Please check : https://github.com/googleads/googleads-mobile-android-examples/issues/143

ANR caused by Input dispatching timed out - while trying to get my public IP address

I get the following complete error message: Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago. Wait queue length: 2. Wait queue head age: 9379.7ms.)
See below the code + traces. It seems that the lock happens at GetIP_WAN.java:32 which is the line:
BufferedReader br = new BufferedReader(
new InputStreamReader(conn.getInputStream()));
I call this function whenever I detect a network change wifi-3g/4g-no internet. and in a few other places. it happens on every occasion but much more from the network change detection obviously.
I verify if the public IP has changed this way:
ipwan = giw.getWanIpAddress();
and in getWanIpAddress:
ipwan = new GetIP_WAN().execute().get();
ipwan being a String pointing to the public IP.
I am not able to reproduce this ANR.
My app uses several async tasks that might be an intensive async task for several seconds. If I test it with a strong load and I switch off wifi I don't have problems.
Input would be much appreciated!!!
public class GetIP_WAN extends AsyncTask<Void, Integer, String> {
#Override
protected String doInBackground(Void... params) {
URL url;
String ipwan = null;
try {
// get URL content
url = new URL("http://ipv4bot.whatismyipaddress.com/");
URLConnection conn = url.openConnection();
conn.setConnectTimeout(3000);
// open the stream and put it into BufferedReader
BufferedReader br = new BufferedReader(
new InputStreamReader(conn.getInputStream()));
String inputLine;
ipwan = br.readLine();
br.close();
} catch (java.net.SocketTimeoutException e) {
return ("timeout");
} catch (MalformedURLException e) {
e.printStackTrace();
return ("malformed");
} catch (IOException e) {
e.printStackTrace();
return ("exception");
}
return (ipwan);
}
}
and here is the trace (my code where the lock happens is identified by >>>):
"main" tid=1 Waiting
"main" prio=5 tid=1 Waiting
| group="main" sCount=1 dsCount=0 obj=0x7331b000 self=0xb81bb2c0
| sysTid=23053 nice=-4 cgrp=default sched=0/0 handle=0xb6f5cbec
| state=S schedstat=( 26983505120 16031385654 42843 ) utm=2225 stm=473 core=0 HZ=100
| stack=0xbe5d4000-0xbe5d6000 stackSize=8MB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x0448108a> (a java.lang.Object)
at java.lang.Thread.parkFor (Thread.java:1220)
- locked <0x0448108a> (a java.lang.Object)
at sun.misc.Unsafe.park (Unsafe.java:299)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:157)
at java.util.concurrent.FutureTask.awaitDone (FutureTask.java:400)
at java.util.concurrent.FutureTask.get (FutureTask.java:162)
at android.os.AsyncTask.get (AsyncTask.java:487)
>>> at com.bernard_zelmans.checksecurity.Connectivity.GetInfoWan.getWanIpAddress (GetInfoWan.java:168)
>>> at com.bernard_zelmans.checksecurity.Connectivity.ConnectivityFragment$2.onClick (ConnectivityFragment.java:155)
at android.view.View.performClick (View.java:4781)
at android.view.View$PerformClick.run (View.java:19874)
at android.os.Handler.handleCallback (Handler.java:739)
at android.os.Handler.dispatchMessage (Handler.java:95)
at android.os.Looper.loop (Looper.java:135)
at android.app.ActivityThread.main (ActivityThread.java:5254)
at java.lang.reflect.Method.invoke! (Native method)
at java.lang.reflect.Method.invoke (Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:902)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:697)
"AsyncTask #5" tid=21 Native Performing network I/O
"AsyncTask #5" prio=5 tid=21 Native
| group="main" sCount=1 dsCount=0 obj=0x1372b0a0 self=0xb8537190
| sysTid=23175 nice=10 cgrp=bg_non_interactive sched=0/0 handle=0xb8536ee0
| state=S schedstat=( 9854319 53209536 49 ) utm=0 stm=0 core=0 HZ=100
| stack=0xa413d000-0xa413f000 stackSize=1036KB
| held mutexes=
native: pc 000000000003a180 /system/lib/libc.so (recvfrom+16)
native: pc 0000000000020165 /system/lib/libjavacore.so (???)
native: pc 00000000002d557d /data/dalvik-cache/arm/system#framework#boot.oat (Java_libcore_io_Posix_recvfromBytes__Ljava_io_FileDescriptor_2Ljava_lang_Object_2IIILjava_net_InetSocketAddress_2+176)
at libcore.io.Posix.recvfromBytes (Native method)
at libcore.io.Posix.recvfrom (Posix.java:185)
at libcore.io.BlockGuardOs.recvfrom (BlockGuardOs.java:250)
at libcore.io.IoBridge.recvfrom (IoBridge.java:553)
at java.net.PlainSocketImpl.read (PlainSocketImpl.java:485)
at java.net.PlainSocketImpl.access$000 (PlainSocketImpl.java:37)
at java.net.PlainSocketImpl$PlainSocketInputStream.read (PlainSocketImpl.java:237)
at com.android.okio.Okio$2.read (Okio.java:113)
at com.android.okio.RealBufferedSource.indexOf (RealBufferedSource.java:147)
at com.android.okio.RealBufferedSource.readUtf8LineStrict (RealBufferedSource.java:94)
at com.android.okhttp.internal.http.HttpConnection.readResponse (HttpConnection.java:179)
at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders (HttpTransport.java:101)
at com.android.okhttp.internal.http.HttpEngine.readResponse (HttpEngine.java:628)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute (HttpURLConnectionImpl.java:388)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse (HttpURLConnectionImpl.java:332)
at com.android.okhttp.internal.http.HttpURLConnectionImpl.getInputStream (HttpURLConnectionImpl.java:199)
>>> at com.bernard_zelmans.checksecurity.Connectivity.GetIP_WAN.doInBackground (GetIP_WAN.java:32)
>>> at com.bernard_zelmans.checksecurity.Connectivity.GetIP_WAN.doInBackground (GetIP_WAN.java:16)
at android.os.AsyncTask$2.call (AsyncTask.java:292)
at java.util.concurrent.FutureTask.run (FutureTask.java:237)
at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:231)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
at java.lang.Thread.run (Thread.java:818)
"WifiManager" tid=22 Native
"WifiManager" prio=5 tid=22 Native
| group="main" sCount=1 dsCount=0 obj=0x137192e0 self=0xb85369a0
| sysTid=23176 nice=0 cgrp=default sched=0/0 handle=0xb84af978
| state=S schedstat=( 2818438 6808230 23 ) utm=0 stm=0 core=1 HZ=100
| stack=0xa4035000-0xa4037000 stackSize=1036KB
| held mutexes=
native: pc 000000000003a0ac /system/lib/libc.so (__epoll_pwait+20)
native: pc 0000000000011483 /system/lib/libc.so (epoll_pwait+26)
native: pc 0000000000011491 /system/lib/libc.so (epoll_wait+6)
native: pc 0000000000010edf /system/lib/libutils.so (_ZN7android6Looper9pollInnerEi+98)
native: pc 0000000000011109 /system/lib/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+92)
native: pc 000000000007e371 /system/lib/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvi+22)
native: pc 000000000010e76b /data/dalvik-cache/arm/system#framework#boot.oat (Java_android_os_MessageQueue_nativePollOnce__JI+102)
at android.os.MessageQueue.nativePollOnce (Native method)
at android.os.MessageQueue.next (MessageQueue.java:143)
at android.os.Looper.loop (Looper.java:122)
at android.os.HandlerThread.run (HandlerThread.java:61)
"Heap thread pool worker thread 1" tid=2 Native
"Heap thread pool worker thread 1" prio=5 tid=2 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0xb8337008
| sysTid=23060 nice=0 cgrp=default sched=0/0 handle=0xb81c1910
| state=S schedstat=( 2796719 5468959 19 ) utm=0 stm=0 core=0 HZ=100
| stack=0xb49ce000-0xb49d0000 stackSize=1020KB
| held mutexes=
native: pc 000000000000f9b0 /system/lib/libc.so (syscall+28)
native: pc 00000000000a8c4b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82)
native: pc 000000000022f877 /system/lib/libart.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+50)
native: pc 000000000022f81f /system/lib/libart.so (_ZN3art16ThreadPoolWorker3RunEv+54)
native: pc 000000000023005d /system/lib/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+52)
native: pc 00000000000132bb /system/lib/libc.so (_ZL15__pthread_startPv+30)
native: pc 00000000000111e7 /system/lib/libc.so (__start_thread+6)
"Heap thread pool worker thread 2" tid=3 Native
"Heap thread pool worker thread 2" prio=5 tid=3 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0xb81c0ea0
| sysTid=23061 nice=0 cgrp=default sched=0/0 handle=0xb833a0b0
| state=S schedstat=( 5997967 2723698 18 ) utm=0 stm=0 core=0 HZ=100
| stack=0xb48ce000-0xb48d0000 stackSize=1020KB
| held mutexes=
native: pc 000000000000f9b0 /system/lib/libc.so (syscall+28)
native: pc 00000000000a8c4b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82)
native: pc 000000000022f877 /system/lib/libart.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+50)
native: pc 000000000022f81f /system/lib/libart.so (_ZN3art16ThreadPoolWorker3RunEv+54)
native: pc 000000000023005d /system/lib/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+52)
native: pc 00000000000132bb /system/lib/libc.so (_ZL15__pthread_startPv+30)
native: pc 00000000000111e7 /system/lib/libc.so (__start_thread+6)
"Heap thread pool worker thread 0" tid=4 Native
"Heap thread pool worker thread 0" prio=5 tid=4 Native (still starting up)
| group="" sCount=1 dsCount=0 obj=0x0 self=0xb83390c0
| sysTid=23059 nice=0 cgrp=default sched=0/0 handle=0xb82a4b58
| state=S schedstat=( 3379426 4137085 15 ) utm=0 stm=0 core=1 HZ=100
| stack=0xb4ace000-0xb4ad0000 stackSize=1020KB
| held mutexes=
native: pc 000000000000f9b0 /system/lib/libc.so (syscall+28)
native: pc 00000000000a8c4b /system/lib/libart.so (_ZN3art17ConditionVariable4WaitEPNS_6ThreadE+82)
native: pc 000000000022f877 /system/lib/libart.so (_ZN3art10ThreadPool7GetTaskEPNS_6ThreadE+50)
native: pc 000000000022f81f /system/lib/libart.so (_ZN3art16ThreadPoolWorker3RunEv+54)
native: pc 000000000023005d /system/lib/libart.so (_ZN3art16ThreadPoolWorker8CallbackEPv+52)
native: pc 00000000000132bb /system/lib/libc.so (_ZL15__pthread_startPv+30)
native: pc 00000000000111e7 /system/lib/libc.so (__start_thread+6)
"HeapTrimmerDaemon" tid=6 Waiting
"HeapTrimmerDaemon" daemon prio=5 tid=6 Waiting
| group="system" sCount=1 dsCount=0 obj=0x12c061c0 self=0xb833c230
| sysTid=23066 nice=0 cgrp=default sched=0/0 handle=0xb833ca20
| state=S schedstat=( 16039218 18453438 23 ) utm=1 stm=0 core=3 HZ=100
| stack=0xa6f4e000-0xa6f50000 stackSize=1036KB
| held mutexes=
at java.lang.Object.wait! (Native method)
- waiting on <0x1c7546fb> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Daemons$HeapTrimmerDaemon.run (Daemons.java:311)
- locked <0x1c7546fb> (a java.lang.Daemons$HeapTrimmerDaemon)
at java.lang.Thread.run (Thread.java:818)
"GCDaemon" tid=7 Waiting
"FinalizerWatchdogDaemon" tid=8 Waiting
"Binder_1" tid=9 Native
"FinalizerDaemon" tid=10 Waiting
"ReferenceQueueDaemon" tid=11 Waiting
"Binder_2" tid=12 Native
"AsyncTask #1" tid=13 Waiting
"Timer-0" tid=14 Waiting
"RenderThread" tid=15 Native
"AsyncTask #2" tid=18 Waiting
"AsyncTask #3" tid=19 Waiting
"AsyncTask #4" tid=20 Waiting
"Binder_3" tid=23 Native
"AdWorker(Default) #1" tid=24 TimedWaiting
"java.lang.ProcessManager" tid=25 Waiting
"AdWorker(Default) #2" tid=26 TimedWaiting
"AdWorker(Default) #3" tid=27 TimedWaiting
"AdWorker(Default) #4" tid=28 TimedWaiting
"AdWorker(Default) #5" tid=29 TimedWaiting
"Binder_6" tid=30 Native
"Binder_4" tid=40 Native
"Binder_7" tid=45 Native
"Binder_5" tid=49 Native
"Signal Catcher" tid=5 Runnable
"Signal Catcher" daemon prio=5 tid=5 Runnable
| group="system" sCount=0 dsCount=0 obj=0x12c000a0 self=0xb833abf8
| sysTid=23062 nice=0 cgrp=default sched=0/0 handle=0xb8339498
| state=R schedstat=( 166092660 21972502 124 ) utm=8 stm=8 core=0 HZ=100
| stack=0xb47c4000-0xb47c6000 stackSize=1012KB
| held mutexes= "thread list lock" "mutator lock"(exclusive held)
native: pc 0000000000004758 /system/lib/libbacktrace_libc++.so (_ZN13UnwindCurrent6UnwindEjP8ucontext+23)
native: pc 0000000000002f8d /system/lib/libbacktrace_libc++.so (_ZN9Backtrace6UnwindEjP8ucontext+8)
native: pc 00000000002411c9 /system/lib/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiPKcPNS_6mirror9ArtMethodE+68)
native: pc 0000000000225591 /system/lib/libart.so (_ZNK3art6Thread4DumpERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+148)
native: pc 000000000022e8bb /system/lib/libart.so (_ZN3art10ThreadList14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+142)
native: pc 0000000000215ca5 /system/lib/libart.so (_ZN3art7Runtime14DumpForSigQuitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE+68)
native: pc 000000000021a431 /system/lib/libart.so (_ZN3art13SignalCatcher13HandleSigQuitEv+752)
native: pc 000000000021aadb /system/lib/libart.so (_ZN3art13SignalCatcher3RunEPv+318)
native: pc 00000000000132bb /system/lib/libc.so (_ZL15__pthread_startPv+30)
native: pc 00000000000111e7 /system/lib/libc.so (__start_thread+6)
I think your problem is that you're calling AsyncTask.get() right after you call GetIP_WAN().execute(). I assume that you're calling GetIP_WAN().execute() on the UI thread. If it's in an onClick callback or a BroadcastReceiver it most certainly is. So what I believe is happening is your GetIP_WAN task is correctly executing on a background thread completing but the get() call is attempting to retrieve the data that will get returned from doInBackground(). But that call (get()) will NEVER return before doInBackground and maybe onPostExecute(...) returns, thus causing blocking on the UI thread. If you read the documentation for get inside of the AsyncTask class it says
/**
* Waits if necessary for the computation to complete, and then
* retrieves its result.
*
* #return The computed result.
*
* #throws CancellationException If the computation was cancelled.
* #throws ExecutionException If the computation threw an exception.
* #throws InterruptedException If the current thread was interrupted
* while waiting.
*/
Ironically, you are negating the purpose of you AsnycTask. Even though the work is taking place on the background thread, you are forcing the UI thread to wait for the work to complete before any additional processing on the UI thread can complete. The Android OS handles creating a ANR dialog when it detects the UI/Main thread has been blocking for 5 seconds.
I assume you are calling get so you can get your data from GetIP_WAN, so you can manipulate/display it on the UI thread. What I recommend is you pass some form of reference to the owning activity or fragment into the GetIP_WAN and when the task completes and fires onPostExecute(...) which will be fired on the UI/Main thread, you act upon the activity or fragment to update it's UI with the data you downloaded in doInBackground(...). One pattern I'd recommend is passing a Handler reference that's wrapped inside of a WeakReference into GetIP_WAN and in onPostExecute(...), send an empty message indicating that the work was completed and it's safe to call GetIP_WAN.get().

Application Not Responding (ANR) Executing service com.onesignal.SyncService

We are using OneSignal Native SDK version 3.+ in my app and sometime crash the app.
Give below onesignal dependencies :
compile 'com.onesignal:OneSignal:3.+#aar'
Onesignal init method :
OneSignal.startInit(this).
.inFocusDisplaying(OneSignal.OSInFocusDisplayOption.Notification)
.setNotificationOpenedHandler(new MyNotificationOpenedHandler())
.setNotificationReceivedHandler(new MyNotificationReceivedHandler())
.init();
Crash log :
"main" prio=5 tid=1 TIMED_WAIT
| group="main" sCount=1 dsCount=0 obj=0x41acb578 self=0x419cf6a8
| sysTid=25516 nice=0 sched=0/0 cgrp=apps handle=1074106364
| state=S schedstat=( 176067213 49796364 292 ) utm=13 stm=4 core=0
at java.lang.Object.wait (Native Method)
- waiting on <0x42702938> (a java.lang.VMThread) held by tid=21 (OS_HTTPConnection)
at java.lang.Thread.join (Thread.java:809)
at java.lang.Thread.join (Thread.java:765)
at com.onesignal.OneSignalRestClient.makeRequest (OneSignalRestClient.java:102)
at com.onesignal.OneSignalRestClient.putSync (OneSignalRestClient.java:82)
at com.onesignal.OneSignalStateSynchronizer.syncUserState (OneSignalStateSynchronizer.java:586)
at com.onesignal.SyncService$2$1.complete (SyncService.java:91)
at com.onesignal.LocationGMS.fireComplete (LocationGMS.java:208)
at com.onesignal.LocationGMS.receivedLocationPoint (LocationGMS.java:233)
at com.onesignal.LocationGMS.access$200 (LocationGMS.java:54)
at com.onesignal.LocationGMS$GoogleApiClientListener.onConnected (LocationGMS.java:247)
at android.os.Handler.dispatchMessage (Handler.java:99)
at android.os.Looper.loop (Looper.java:176)
at android.app.ActivityThread.main (ActivityThread.java:5419)
at java.lang.reflect.Method.invokeNative (Native Method)
at java.lang.reflect.Method.invoke (Method.java:525)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1046)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:862)
at dalvik.system.NativeStart.main (Native Method)
"OS_HTTPConnection" prio=5 tid=22 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4270ce68 self=0x41a84870
| sysTid=25597 nice=0 sched=0/0 cgrp=apps handle=1101548736
| state=S schedstat=( 13628457 6080085 21 ) utm=1 stm=0 core=1
native: pc 000000000001b68c /system/lib/libc.so (select+20)
native: pc 0000000000026ccd /system/lib/libjavacore.so
native: pc 000000000002929d /system/lib/libjavacore.so
native: pc 000000000001e44c /system/lib/libdvm.so (dvmPlatformInvoke+112)
native: pc 000000000004e91b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
native: pc 0000000000027860 /system/lib/libdvm.so
native: pc 000000000002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
native: pc 0000000000060a6d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
native: pc 0000000000060a97 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
native: pc 000000000005582b /system/lib/libdvm.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake (Native Method)
at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake (OpenSSLSocketImpl.java:398)
at libcore.net.http.HttpConnection.setupSecureSocket (HttpConnection.java:209)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection (HttpsURLConnectionImpl.java:478)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect (HttpsURLConnectionImpl.java:433)
at libcore.net.http.HttpEngine.sendSocketRequest (HttpEngine.java:290)
at libcore.net.http.HttpEngine.sendRequest (HttpEngine.java:240)
at libcore.net.http.HttpURLConnectionImpl.connect (HttpURLConnectionImpl.java:81)
at libcore.net.http.HttpURLConnectionImpl.getOutputStream (HttpURLConnectionImpl.java:197)
at libcore.net.http.HttpsURLConnectionImpl.getOutputStream (HttpsURLConnectionImpl.java:281)
at com.onesignal.OneSignalRestClient.startHTTPConnection (OneSignalRestClient.java:142)
at com.onesignal.OneSignalRestClient.access$100 (OneSignalRestClient.java:38)
at com.onesignal.OneSignalRestClient$4.run (OneSignalRestClient.java:94)
at java.lang.Thread.run (Thread.java:841)
"OS_HTTPConnection" prio=5 tid=21 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x42702538 self=0x4006a3e8
| sysTid=25548 nice=0 sched=0/0 cgrp=apps handle=1074178104
| state=S schedstat=( 14957377 5977415 32 ) utm=0 stm=0 core=0
native: pc 000000000001b68c /system/lib/libc.so (select+20)
native: pc 0000000000026ccd /system/lib/libjavacore.so
native: pc 000000000002929d /system/lib/libjavacore.so
native: pc 000000000001e44c /system/lib/libdvm.so (dvmPlatformInvoke+112)
native: pc 000000000004e91b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
native: pc 0000000000027860 /system/lib/libdvm.so
native: pc 000000000002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
native: pc 0000000000060a6d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
native: pc 0000000000060a97 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
native: pc 000000000005582b /system/lib/libdvm.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake (Native Method)
at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake (OpenSSLSocketImpl.java:398)
at libcore.net.http.HttpConnection.setupSecureSocket (HttpConnection.java:209)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection (HttpsURLConnectionImpl.java:478)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect (HttpsURLConnectionImpl.java:433)
at libcore.net.http.HttpEngine.sendSocketRequest (HttpEngine.java:290)
at libcore.net.http.HttpEngine.sendRequest (HttpEngine.java:240)
at libcore.net.http.HttpURLConnectionImpl.connect (HttpURLConnectionImpl.java:81)
at libcore.net.http.HttpURLConnectionImpl.getOutputStream (HttpURLConnectionImpl.java:197)
at libcore.net.http.HttpsURLConnectionImpl.getOutputStream (HttpsURLConnectionImpl.java:281)
at com.onesignal.OneSignalRestClient.startHTTPConnection (OneSignalRestClient.java:142)
at com.onesignal.OneSignalRestClient.access$100 (OneSignalRestClient.java:38)
at com.onesignal.OneSignalRestClient$4.run (OneSignalRestClient.java:94)
at java.lang.Thread.run (Thread.java:841)
"GAC_Executor[1]" prio=5 tid=18 WAIT
| group="main" sCount=1 dsCount=0 obj=0x426f0e80 self=0x59415ac0
| sysTid=25547 nice=0 sched=0/0 cgrp=apps handle=1496677472
| state=S schedstat=( 3326415 1574126 8 ) utm=0 stm=0 core=2
at java.lang.Object.wait (Native Method)
- waiting on <0x426f1020> (a java.lang.VMThread) held by tid=18 (GAC_Executor[1])
at java.lang.Thread.parkFor (Thread.java:1205)
at sun.misc.Unsafe.park (Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:159)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2019)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1013)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1073)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"GAC_Executor[0]" prio=5 tid=20 WAIT
| group="main" sCount=1 dsCount=0 obj=0x426e4f08 self=0x59415010
| sysTid=25546 nice=0 sched=0/0 cgrp=apps handle=1497453664
| state=S schedstat=( 13563253 10066624 18 ) utm=0 stm=0 core=1
at java.lang.Object.wait (Native Method)
- waiting on <0x426e5140> (a java.lang.VMThread) held by tid=20 (GAC_Executor[0])
at java.lang.Thread.parkFor (Thread.java:1205)
at sun.misc.Unsafe.park (Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:159)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2019)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1013)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1073)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"OS_GMS_LOCATION_FALLBACK" prio=5 tid=19 MONITOR
| group="main" sCount=1 dsCount=0 obj=0x426d4ae8 self=0x59356630
| sysTid=25545 nice=0 sched=0/0 cgrp=apps handle=1496672896
| state=S schedstat=( 40754088 80571253 418 ) utm=0 stm=4 core=0
at com.onesignal.LocationGMS.fireFailedComplete (LocationGMS.java:202)
at com.onesignal.LocationGMS$1.run (LocationGMS.java:192)
at java.lang.Thread.run (Thread.java:841)
"OSH_NetworkHandlerThread" prio=5 tid=17 TIMED_WAIT
| group="main" sCount=1 dsCount=0 obj=0x426d2850 self=0x59357010
| sysTid=25543 nice=0 sched=0/0 cgrp=apps handle=1496675424
| state=S schedstat=( 22462710 4191081 20 ) utm=2 stm=0 core=0
at java.lang.Object.wait (Native Method)
- waiting on <0x4270cf20> (a java.lang.VMThread) held by tid=22 (OS_HTTPConnection)
at java.lang.Thread.join (Thread.java:809)
at java.lang.Thread.join (Thread.java:765)
at com.onesignal.OneSignalRestClient.makeRequest (OneSignalRestClient.java:102)
at com.onesignal.OneSignalRestClient.putSync (OneSignalRestClient.java:82)
at com.onesignal.OneSignalStateSynchronizer.syncUserState (OneSignalStateSynchronizer.java:586)
at com.onesignal.OneSignalStateSynchronizer$NetworkHandlerThread$1.run (OneSignalStateSynchronizer.java:527)
at android.os.Handler.handleCallback (Handler.java:730)
at android.os.Handler.dispatchMessage (Handler.java:92)
at android.os.Looper.loop (Looper.java:176)
at android.os.HandlerThread.run (HandlerThread.java:61)
"FocusHandlerThread" prio=5 tid=16 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x426cafb0 self=0x40026828
| sysTid=25542 nice=0 sched=0/0 cgrp=apps handle=1073902320
| state=S schedstat=( 421167 0 2 ) utm=0 stm=0 core=0
native: pc 000000000001c664 /system/lib/libc.so (epoll_wait+12)
native: pc 00000000000153f1 /system/lib/libutils.so (android::Looper::pollInner(int)+92)
native: pc 0000000000015615 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
native: pc 0000000000072235 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
native: pc 000000000001e44c /system/lib/libdvm.so (dvmPlatformInvoke+112)
native: pc 000000000004e91b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
native: pc 0000000000027860 /system/lib/libdvm.so
native: pc 000000000002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
native: pc 0000000000060a6d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
native: pc 0000000000060a97 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
native: pc 000000000005582b /system/lib/libdvm.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at android.os.MessageQueue.nativePollOnce (Native Method)
at android.os.MessageQueue.next (MessageQueue.java:132)
at android.os.Looper.loop (Looper.java:138)
at android.os.HandlerThread.run (HandlerThread.java:61)
"pool-2-thread-1" prio=5 tid=15 WAIT
| group="main" sCount=1 dsCount=0 obj=0x42696f58 self=0x40013e30
| sysTid=25538 nice=0 sched=0/0 cgrp=apps handle=1073824384
| state=S schedstat=( 3977335 1149084 11 ) utm=0 stm=0 core=1
at java.lang.Object.wait (Native Method)
- waiting on <0x42698470> (a java.lang.VMThread) held by tid=15 (pool-2-thread-1)
at java.lang.Thread.parkFor (Thread.java:1205)
at sun.misc.Unsafe.park (Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:159)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2019)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1052)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:780)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1013)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1073)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"pool-1-thread-1" prio=5 tid=11 TIMED_WAIT
| group="main" sCount=1 dsCount=0 obj=0x42691970 self=0x4000c4f8
| sysTid=25537 nice=0 sched=0/0 cgrp=apps handle=1073826976
| state=S schedstat=( 1992832 0 7 ) utm=0 stm=0 core=1
at java.lang.Object.wait (Native Method)
- waiting on <0x42691ab8> (a java.lang.VMThread) held by tid=11 (pool-1-thread-1)
at java.lang.Thread.parkFor (Thread.java:1205)
at sun.misc.Unsafe.park (Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:199)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2058)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1063)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:780)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1013)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1073)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"AsyncTask #4" prio=5 tid=14 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4267b688 self=0x400132d8
| sysTid=25535 nice=0 sched=0/0 cgrp=apps handle=1073821480
| state=S schedstat=( 10104750 21937459 43 ) utm=0 stm=0 core=2
at java.lang.Object.wait (Native Method)
- waiting on <0x4267b7c8> (a java.lang.VMThread) held by tid=14 (AsyncTask #4)
at java.lang.Thread.parkFor (Thread.java:1205)
at sun.misc.Unsafe.park (Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:159)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2019)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1013)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1073)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"AsyncTask #3" prio=5 tid=13 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4267a7c8 self=0x400129b0
| sysTid=25534 nice=0 sched=0/0 cgrp=apps handle=1073819136
| state=S schedstat=( 587500 42750 3 ) utm=0 stm=0 core=0
at java.lang.Object.wait (Native Method)
- waiting on <0x4267a968> (a java.lang.VMThread) held by tid=13 (AsyncTask #3)
at java.lang.Thread.parkFor (Thread.java:1205)
at sun.misc.Unsafe.park (Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:159)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2019)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1013)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1073)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"AsyncTask #2" prio=5 tid=12 WAIT
| group="main" sCount=1 dsCount=0 obj=0x42675408 self=0x40012008
| sysTid=25533 nice=0 sched=0/0 cgrp=apps handle=1073816664
| state=S schedstat=( 7128207 5538125 30 ) utm=0 stm=0 core=0
at java.lang.Object.wait (Native Method)
- waiting on <0x42675528> (a java.lang.VMThread) held by tid=12 (AsyncTask #2)
at java.lang.Thread.parkFor (Thread.java:1205)
at sun.misc.Unsafe.park (Unsafe.java:325)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:159)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2019)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1013)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1073)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"AsyncTask #1" prio=5 tid=10 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x426677a0 self=0x4000bbb0
| sysTid=25531 nice=0 sched=0/0 cgrp=apps handle=1073790976
| state=S schedstat=( 30066581 26143916 61 ) utm=2 stm=0 core=0
native: pc 000000000001b68c /system/lib/libc.so (select+20)
native: pc 0000000000026ccd /system/lib/libjavacore.so
native: pc 000000000002929d /system/lib/libjavacore.so
native: pc 000000000001e44c /system/lib/libdvm.so (dvmPlatformInvoke+112)
native: pc 000000000004e91b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
native: pc 0000000000027860 /system/lib/libdvm.so
native: pc 000000000002be00 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
native: pc 0000000000060a6d /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
native: pc 0000000000060a97 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
native: pc 000000000005582b /system/lib/libdvm.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake (Native Method)
at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake (OpenSSLSocketImpl.java:398)
at libcore.net.http.HttpConnection.setupSecureSocket (HttpConnection.java:209)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.makeSslConnection (HttpsURLConnectionImpl.java:478)
at libcore.net.http.HttpsURLConnectionImpl$HttpsEngine.connect (HttpsURLConnectionImpl.java:433)
at libcore.net.http.HttpEngine.sendSocketRequest (HttpEngine.java:290)
at libcore.net.http.HttpEngine.sendRequest (HttpEngine.java:240)
at libcore.net.http.HttpURLConnectionImpl.getResponse (HttpURLConnectionImpl.java:282)
at libcore.net.http.HttpURLConnectionImpl.getResponseCode (HttpURLConnectionImpl.java:497)
at libcore.net.http.HttpsURLConnectionImpl.getResponseCode (HttpsURLConnectionImpl.java:134)
at com.facebook.GraphResponse.fromHttpConnection (GraphResponse.java:253)
at com.facebook.GraphRequest.executeConnectionAndWait (GraphRequest.java:1270)
at com.facebook.GraphRequest.executeBatchAndWait (GraphRequest.java:1168)
at com.facebook.GraphRequest.executeBatchAndWait (GraphRequest.java:1134)
at com.facebook.GraphRequest.executeBatchAndWait (GraphRequest.java:1118)
at com.facebook.GraphRequest.executeAndWait (GraphRequest.java:1093)
at com.facebook.GraphRequest.executeAndWait (GraphRequest.java:987)
at com.facebook.internal.FetchedAppSettingsManager.getAppSettingsQueryResponse (FetchedAppSettingsManager.java:207)
at com.facebook.internal.FetchedAppSettingsManager.access$100 (FetchedAppSettingsManager.java:47)
at com.facebook.internal.FetchedAppSettingsManager$1.run (FetchedAppSettingsManager.java:122)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1080)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:573)
at java.lang.Thread.run (Thread.java:841)
"Binder_2" prio=5 tid=9 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4263be10 self=0x418ef250
| sysTid=25528 nice=0 sched=0/0 cgrp=apps handle=1099886600
| state=S schedstat=( 3381083 644501 5 ) utm=0 stm=0 core=0
native: pc 000000000001b53c /system/lib/libc.so (__ioctl+8)
native: pc 000000000002bccf /system/lib/libc.so (ioctl+14)
native: pc 000000000001b929 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140)
native: pc 000000000001c0c7 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
native: pc 00000000000200d1 /system/lib/libbinder.so
native: pc 0000000000011d7d /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216)
native: pc 0000000000054a3d /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68)
native: pc 0000000000011871 /system/lib/libutils.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at dalvik.system.NativeStart.run (Native Method)
"Binder_1" prio=5 tid=8 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x4263bcb0 self=0x5942a850
| sysTid=25527 nice=0 sched=0/0 cgrp=apps handle=1497540104
| state=S schedstat=( 2974501 4290374 7 ) utm=0 stm=0 core=1
native: pc 000000000001b53c /system/lib/libc.so (__ioctl+8)
native: pc 000000000002bccf /system/lib/libc.so (ioctl+14)
native: pc 000000000001b929 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140)
native: pc 000000000001c0c7 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
native: pc 00000000000200d1 /system/lib/libbinder.so
native: pc 0000000000011d7d /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216)
native: pc 0000000000054a3d /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68)
native: pc 0000000000011871 /system/lib/libutils.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at dalvik.system.NativeStart.run (Native Method)
"FinalizerWatchdogDaemon" daemon prio=5 tid=7 WAIT
| group="system" sCount=1 dsCount=0 obj=0x42637b48 self=0x59429d68
| sysTid=25525 nice=0 sched=0/0 cgrp=apps handle=1497539000
| state=S schedstat=( 76208 0 2 ) utm=0 stm=0 core=2
at java.lang.Object.wait (Native Method)
- waiting on <0x41ad3908> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Object.wait (Object.java:364)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForObject (Daemons.java:230)
at java.lang.Daemons$FinalizerWatchdogDaemon.run (Daemons.java:207)
at java.lang.Thread.run (Thread.java:841)
"FinalizerDaemon" daemon prio=5 tid=6 WAIT
| group="system" sCount=1 dsCount=0 obj=0x426379f0 self=0x59429710
| sysTid=25524 nice=0 sched=0/0 cgrp=apps handle=1073797808
| state=S schedstat=( 76750 0 2 ) utm=0 stm=0 core=2
at java.lang.Object.wait (Native Method)
- waiting on <0x41abc568> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait (Object.java:401)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:102)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:73)
at java.lang.Daemons$FinalizerDaemon.run (Daemons.java:170)
at java.lang.Thread.run (Thread.java:841)
"ReferenceQueueDaemon" daemon prio=5 tid=5 WAIT
| group="system" sCount=1 dsCount=0 obj=0x42637888 self=0x4000d210
| sysTid=25523 nice=0 sched=0/0 cgrp=apps handle=1073796704
| state=S schedstat=( 145375 0 2 ) utm=0 stm=0 core=2
at java.lang.Object.wait (Native Method)
- waiting on <0x41abc490>
at java.lang.Object.wait (Object.java:364)
at java.lang.Daemons$ReferenceQueueDaemon.run (Daemons.java:130)
at java.lang.Thread.run (Thread.java:841)
"Compiler" daemon prio=5 tid=4 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x42637798 self=0x40177458
| sysTid=25522 nice=0 sched=0/0 cgrp=apps handle=1075278352
| state=S schedstat=( 57876996 11472874 88 ) utm=2 stm=3 core=1
native: pc 000000000001c82c /system/lib/libc.so (__futex_syscall3+8)
native: pc 000000000000e7bc /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
native: pc 000000000000e81c /system/lib/libc.so (__pthread_cond_timedwait+64)
native: pc 0000000000073eb5 /system/lib/libdvm.so
native: pc 0000000000054f0d /system/lib/libdvm.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at dalvik.system.NativeStart.run (Native Method)
"Signal Catcher" daemon prio=5 tid=3 RUNNABLE
| group="system" sCount=0 dsCount=0 obj=0x426376a0 self=0x59425d60
| sysTid=25521 nice=0 sched=0/0 cgrp=apps handle=1497535320
| state=R schedstat=( 50525832 24623126 89 ) utm=2 stm=3 core=0
at dalvik.system.NativeStart.run (Native Method)
"GC" daemon prio=5 tid=2 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x426375c0 self=0x5976db30
| sysTid=25520 nice=0 sched=0/0 cgrp=apps handle=1497534480
| state=S schedstat=( 574333 0 1 ) utm=0 stm=0 core=0
native: pc 000000000001c82c /system/lib/libc.so (__futex_syscall3+8)
native: pc 000000000000e7bc /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
native: pc 000000000000e81c /system/lib/libc.so (__pthread_cond_timedwait+64)
native: pc 00000000000729ab /system/lib/libdvm.so
native: pc 0000000000054f0d /system/lib/libdvm.so
native: pc 000000000000cb58 /system/lib/libc.so (__thread_entry+72)
native: pc 000000000000ccd4 /system/lib/libc.so (pthread_create+208)
at dalvik.system.NativeStart.run (Native Method)
We can not reproduce the problem. If you need anything else for further investigating the problem I am here to help.
#Dixit Patel Application Not Responding (ANR) error happens when app performs a potentially lengthy operation and blocks the UI thread.
To resolve your issue you can either increase the efficiency of your code or create a worker thread and do the sync part there.
The OneSignal Android SDK 3.5.7 fixes a bug where an ANR sometimes occurs during intermittent network connections. The linked issue notes that same stack trace so this update should fix your issue.

ANR after long app uptime

Our app sometimes locks up with ANR after it has been in device foreground for a long time, say over night. The app starts, but only shows black screen. Back and home buttons don't respond until about 10 seconds after they were pressed.
Running the app in strict mode, doesn't highlight any problems. All network activity, and long running tasks are done on background threads.
Looking at the traces file for our app, I can't identify the "main" thread, so I can't diagnose what is locking up the UI.
This question sounds like the same symptoms, but our app doesn't use the offending library: JmDNS.
----- pid 21220 at 2013-11-26 08:32:09 -----
Cmd line: com.mygreatapp.reptile
DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"java.lang.ProcessManager" daemon prio=5 tid=11 WAIT
| group="main" sCount=1 dsCount=0 obj=0x4242b590 self=0x60d506f0
| sysTid=21305 nice=0 sched=0/0 cgrp=apps handle=1626388752
| schedstat=( 1686960 1679167 34 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x42413810> (a java.util.HashMap)
at java.lang.Object.wait(Object.java:364)
at java.lang.ProcessManager.waitForMoreChildren(ProcessManager.java:140)
at java.lang.ProcessManager.watchChildren(ProcessManager.java:105)
at java.lang.ProcessManager.access$000(ProcessManager.java:40)
at java.lang.ProcessManager$1.run(ProcessManager.java:58)
"Thread-30992" prio=5 tid=1 VMWAIT
| group="main" sCount=1 dsCount=0 obj=0x4528c3f8 self=0x60f0e488
| sysTid=21220 nice=0 sched=0/0 cgrp=apps handle=1074544432
| schedstat=( 500594685618 30706953168 460765 ) utm=44353 stm=5705 core=3
#00 pc 0000dca0 /system/lib/libc.so (__futex_syscall3+8)
#01 pc 00012e44 /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 00012ea0 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0004a1af /system/lib/libdvm.so
#04 pc 0003a4a1 /system/lib/libdvm.so
#05 pc 0004d585 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+452)
#06 pc 00000dcf /system/bin/app_process
#07 pc 00017123 /system/lib/libc.so (__libc_init+38)
#08 pc 00000b34 /system/bin/app_process
at dalvik.system.NativeStart.run(Native Method)
"pool-4-thread-1" prio=5 tid=15 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41e20c58 self=0x410e1520
| sysTid=21281 nice=0 sched=0/0 cgrp=apps handle=1089112720
| schedstat=( 102424840 33825634 517 ) utm=6 stm=3 core=3
at java.lang.Object.wait(Native Method)
- waiting on <0x41cc4b30> (a java.lang.VMThread) held by tid=15 (pool-4-thread-1)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"Thread-30976" prio=5 tid=29 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41e407c8 self=0x60b1cdf0
| sysTid=21279 nice=0 sched=0/0 cgrp=apps handle=1466754424
| schedstat=( 22878231471 2961981162 8385 ) utm=2103 stm=184 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x41d189a8> (a java.lang.VMThread) held by tid=29 (Thread-30976)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at crittercism.android.cq.a((null):-1)
at crittercism.android.cv.run((null):-1)
at java.lang.Thread.run(Thread.java:856)
"android.hardware.SystemSensorManager$SensorThread" prio=5 tid=28 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41f7d9c8 self=0x60b5f5d0
| sysTid=21277 nice=-8 sched=0/0 cgrp=apps handle=1466031464
| schedstat=( 629417858 226101457 2481 ) utm=62 stm=0 core=0
#00 pc 0000da70 /system/lib/libc.so (epoll_wait+12)
#01 pc 00014899 /system/lib/libutils.so (android::Looper::pollInner(int)+96)
#02 pc 00014b01 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+104)
#03 pc 00023f5d /system/lib/libgui.so (android::SensorEventQueue::waitForEvent() const+36)
#04 pc 0007e085 /system/lib/libandroid_runtime.so
#05 pc 0001def0 /system/lib/libdvm.so (dvmPlatformInvoke+112)
#06 pc 0004d14b /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+394)
#07 pc 00000214 /dev/ashmem/dalvik-jit-code-cache (deleted)
at android.hardware.SystemSensorManager.sensors_data_poll(Native Method)
at android.hardware.SystemSensorManager$SensorThread$SensorThreadRunnable.run(SystemSensorManager.java:133)
at java.lang.Thread.run(Thread.java:856)
"Binder_4" prio=5 tid=26 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41cedae0 self=0x58c98ec0
| sysTid=21272 nice=0 sched=0/0 cgrp=apps handle=1488945728
| schedstat=( 701164079 37010713 402 ) utm=66 stm=4 core=0
#00 pc 0000cb90 /system/lib/libc.so (__ioctl+8)
#01 pc 00027fcd /system/lib/libc.so (ioctl+16)
#02 pc 00016bfd /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+124)
#03 pc 000173af /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 0001b171 /system/lib/libbinder.so
#05 pc 0001104f /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
#06 pc 0004ba7b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#07 pc 00010bb5 /system/lib/libutils.so
#08 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#09 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"Binder_3" prio=5 tid=25 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41cfbe58 self=0x58ca4e68
| sysTid=21271 nice=0 sched=0/0 cgrp=apps handle=1485257944
| schedstat=( 29564295 25159912 195 ) utm=1 stm=1 core=0
#00 pc 0000cb90 /system/lib/libc.so (__ioctl+8)
#01 pc 00027fcd /system/lib/libc.so (ioctl+16)
#02 pc 00016bfd /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+124)
#03 pc 000173af /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 0001b171 /system/lib/libbinder.so
#05 pc 0001104f /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
#06 pc 0004ba7b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#07 pc 00010bb5 /system/lib/libutils.so
#08 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#09 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"AsyncTask #5" prio=5 tid=24 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41cf26f0 self=0x57682458
| sysTid=21266 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1464170168
| schedstat=( 135820845754 105683034246 2907951 ) utm=10204 stm=3378 core=2
at java.lang.Object.wait(Native Method)
- waiting on <0x41d1d280> (a java.lang.VMThread) held by tid=24 (AsyncTask #5)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #4" prio=5 tid=23 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41edc388 self=0x57682008
| sysTid=21265 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1465817672
| schedstat=( 132577127701 105107036747 2873808 ) utm=9956 stm=3301 core=2
at java.lang.Object.wait(Native Method)
- waiting on <0x41c8dbe0> (a java.lang.VMThread) held by tid=23 (AsyncTask #4)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"RefQueueWorker#org.apache.http.impl.conn.tsccm.ConnPoolByRoute#41eff7c8" daemon prio=5 tid=22 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41e2ac40 self=0x576129a8
| sysTid=21262 nice=0 sched=0/0 cgrp=apps handle=1465983376
| schedstat=( 211376 507582 7 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)
- waiting on <0x41f00830> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait(Object.java:401)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)
at org.apache.http.impl.conn.tsccm.RefQueueWorker.run(RefQueueWorker.java:102)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #3" prio=5 tid=21 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41ea3cd8 self=0x40e8a150
| sysTid=21261 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1088988576
| schedstat=( 147758360521 113209347880 3132414 ) utm=11120 stm=3655 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x41eb3510> (a java.lang.VMThread) held by tid=21 (AsyncTask #3)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:813)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:973)
at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1282)
at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:207)
at roboguice.util.SafeAsyncTask$Task.postToUiThreadAndWait(SafeAsyncTask.java:285)
at roboguice.util.SafeAsyncTask$Task.doFinally(SafeAsyncTask.java:248)
at roboguice.util.SafeAsyncTask$Task.call(SafeAsyncTask.java:188)
at roboguice.util.SafeAsyncTask$Task.call(SafeAsyncTask.java:158)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #2" prio=5 tid=20 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41f6d6c0 self=0x57600af0
| sysTid=21260 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1465924288
| schedstat=( 137061046899 106138943361 2940968 ) utm=10317 stm=3388 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x41f6d990> (a java.lang.VMThread) held by tid=20 (AsyncTask #2)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"pool-3-thread-1" prio=5 tid=19 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41ec84e8 self=0x57600688
| sysTid=21259 nice=0 sched=0/0 cgrp=apps handle=1089548880
| schedstat=( 333892046105 50531397520 395232 ) utm=24001 stm=9387 core=3
at java.lang.Object.wait(Native Method)
- waiting on <0x41cd3cb0> (a java.lang.VMThread) held by tid=19 (pool-3-thread-1)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"AsyncTask #1" prio=5 tid=18 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41e43190 self=0x57600238
| sysTid=21258 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1093436480
| schedstat=( 122133361244 94201913504 2662437 ) utm=9133 stm=3079 core=3
at java.lang.Object.wait(Native Method)
- waiting on <0x41e93b30> (a java.lang.VMThread) held by tid=18 (AsyncTask #1)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"pool-1-thread-1" prio=5 tid=17 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41d8d558 self=0x40018928
| sysTid=21257 nice=0 sched=0/0 cgrp=apps handle=1073843576
| schedstat=( 538748652 44112875 1633 ) utm=30 stm=23 core=2
at java.lang.Object.wait(Native Method)
- waiting on <0x41d958b8> (a java.lang.VMThread) held by tid=17 (pool-1-thread-1)
at java.lang.Thread.parkFor(Thread.java:1231)
at sun.misc.Unsafe.park(Unsafe.java:323)
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:157)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2022)
at java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:413)
at java.util.concurrent.ThreadPoolExecutor.getTask(ThreadPoolExecutor.java:1009)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1069)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
"com.google.inject.internal.util.$Finalizer" daemon prio=5 tid=14 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41d82388 self=0x40ea8430
| sysTid=21248 nice=0 sched=0/0 cgrp=apps handle=1089147888
| schedstat=( 135958 26125 2 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)
- waiting on <0x41d824a8> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait(Object.java:401)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)
at com.google.inject.internal.util.$Finalizer.run(Finalizer.java:114)
"OPTMZ" prio=5 tid=12 WAIT
| group="main" sCount=1 dsCount=0 obj=0x41ce5b60 self=0x40f1c8c8
| sysTid=21243 nice=0 sched=0/0 cgrp=apps handle=1089677856
| schedstat=( 241167 3985041 22 ) utm=0 stm=0 core=1
at java.lang.Object.wait(Native Method)
- waiting on <0x41ce5530> (a android.os.ConditionVariable)
at java.lang.Object.wait(Object.java:364)
at android.os.ConditionVariable.block(ConditionVariable.java:97)
at crittercism.android.f.run((null):-1)
at crittercism.android.cq.a((null):-1)
at crittercism.android.cv.run((null):-1)
at java.lang.Thread.run(Thread.java:856)
"Binder_2" prio=5 tid=10 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41c97448 self=0x40f17500
| sysTid=21232 nice=0 sched=0/0 cgrp=apps handle=1089092880
| schedstat=( 35924382 39652369 228 ) utm=1 stm=2 core=0
#00 pc 0000cb90 /system/lib/libc.so (__ioctl+8)
#01 pc 00027fcd /system/lib/libc.so (ioctl+16)
#02 pc 00016bfd /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+124)
#03 pc 000173af /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 0001b171 /system/lib/libbinder.so
#05 pc 0001104f /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
#06 pc 0004ba7b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#07 pc 00010bb5 /system/lib/libutils.so
#08 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#09 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"Binder_1" prio=5 tid=9 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41c971b8 self=0x40eb0008
| sysTid=21231 nice=0 sched=0/0 cgrp=apps handle=1088983768
| schedstat=( 41858044 25543380 342 ) utm=2 stm=2 core=0
#00 pc 0000cb90 /system/lib/libc.so (__ioctl+8)
#01 pc 00027fcd /system/lib/libc.so (ioctl+16)
#02 pc 00016bfd /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+124)
#03 pc 000173af /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+154)
#04 pc 0001b171 /system/lib/libbinder.so
#05 pc 0001104f /system/lib/libutils.so (android::Thread::_threadLoop(void*)+114)
#06 pc 0004ba7b /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+66)
#07 pc 00010bb5 /system/lib/libutils.so
#08 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#09 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"FinalizerWatchdogDaemon" daemon prio=5 tid=8 WAIT
| group="system" sCount=1 dsCount=0 obj=0x41c94180 self=0x40e096f0
| sysTid=21230 nice=0 sched=0/0 cgrp=apps handle=1089149536
| schedstat=( 193951857 409607638 3031 ) utm=8 stm=10 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x41311cf8> (a java.lang.Daemons$FinalizerWatchdogDaemon)
at java.lang.Object.wait(Object.java:364)
at java.lang.Daemons$FinalizerWatchdogDaemon.run(Daemons.java:214)
at java.lang.Thread.run(Thread.java:856)
"FinalizerDaemon" daemon prio=5 tid=7 WAIT
| group="system" sCount=1 dsCount=0 obj=0x41c93fd0 self=0x40ea38c0
| sysTid=21229 nice=0 sched=0/0 cgrp=apps handle=1074231352
| schedstat=( 2874811820 653275129 6681 ) utm=224 stm=62 core=3
at java.lang.Object.wait(Native Method)
- waiting on <0x413005d0> (a java.lang.ref.ReferenceQueue)
at java.lang.Object.wait(Object.java:401)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:102)
at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:73)
at java.lang.Daemons$FinalizerDaemon.run(Daemons.java:169)
at java.lang.Thread.run(Thread.java:856)
"ReferenceQueueDaemon" daemon prio=5 tid=6 WAIT
| group="system" sCount=1 dsCount=0 obj=0x41c93e68 self=0x40ea78a8
| sysTid=21228 nice=0 sched=0/0 cgrp=apps handle=1089109240
| schedstat=( 579457779 268872517 10279 ) utm=44 stm=13 core=0
at java.lang.Object.wait(Native Method)
- waiting on <0x413004f8>
at java.lang.Object.wait(Object.java:364)
at java.lang.Daemons$ReferenceQueueDaemon.run(Daemons.java:129)
at java.lang.Thread.run(Thread.java:856)
"Compiler" daemon prio=5 tid=5 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x41c93d78 self=0x40ed3568
| sysTid=21227 nice=0 sched=0/0 cgrp=apps handle=1089689680
| schedstat=( 13840664945 2175691525 62372 ) utm=829 stm=555 core=3
#00 pc 0000dca0 /system/lib/libc.so (__futex_syscall3+8)
#01 pc 00012e44 /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 00012ea0 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0006f955 /system/lib/libdvm.so
#04 pc 00053b8f /system/lib/libdvm.so
#05 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#06 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"JDWP" daemon prio=5 tid=4 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x41c93c90 self=0x40dcf718
| sysTid=21226 nice=0 sched=0/0 cgrp=apps handle=1087520184
| schedstat=( 164604246 215945407 747 ) utm=14 stm=1 core=1
#00 pc 0000d758 /system/lib/libc.so (recvmsg+8)
#01 pc 00060383 /system/lib/libdvm.so
#02 pc 00060581 /system/lib/libdvm.so
#03 pc 0006327b /system/lib/libdvm.so
#04 pc 00053b8f /system/lib/libdvm.so
#05 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#06 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
"Signal Catcher" daemon prio=5 tid=3 RUNNABLE
| group="system" sCount=0 dsCount=0 obj=0x41c93b98 self=0x40f01ca8
| sysTid=21224 nice=0 sched=0/0 cgrp=apps handle=1089261720
| schedstat=( 89234254 24155125 31 ) utm=4 stm=4 core=0
at dalvik.system.NativeStart.run(Native Method)
"GC" daemon prio=5 tid=2 VMWAIT
| group="system" sCount=1 dsCount=0 obj=0x41c93ab8 self=0x410cfde0
| sysTid=21222 nice=0 sched=0/0 cgrp=apps handle=1464184336
| schedstat=( 75670018971 4421244466 25704 ) utm=7432 stm=135 core=3
#00 pc 0000dca0 /system/lib/libc.so (__futex_syscall3+8)
#01 pc 00012e44 /system/lib/libc.so (__pthread_cond_timedwait_relative+48)
#02 pc 00012ea0 /system/lib/libc.so (__pthread_cond_timedwait+60)
#03 pc 0006e65b /system/lib/libdvm.so
#04 pc 00053b8f /system/lib/libdvm.so
#05 pc 00012e00 /system/lib/libc.so (__thread_entry+48)
#06 pc 00012558 /system/lib/libc.so (pthread_create+172)
at dalvik.system.NativeStart.run(Native Method)
NATIVE THREADS:
"ekeeper.reptile" sysTid=21267 nice=0 sched=0/0 cgrp=apps
| schedstat=( 18500 0 1 ) utm=0 stm=0 core=0
"ekeeper.reptile" sysTid=21268 nice=0 sched=0/0 cgrp=apps
| schedstat=( 572297498 198605347 10711 ) utm=25 stm=32 core=1
"ekeeper.reptile" sysTid=21269 nice=0 sched=0/0 cgrp=apps
| schedstat=( 1489497433 692708683 24726 ) utm=39 stm=109 core=2
----- end 21220 -----
Some more info in dumpstate file. (Retrieved from device after ANR at /data/log/dumpstate_app_anr.txt.gz) Process ID of app is 16042 with Unix user app_112. Looking at the more detailed logcat (search for MAIN LOG in the file), it looks like OutOfMemoryException. But I would expect the JVM to crash and restart, not lockup in this zombie state. What is keeping the app from crashing successfully?
More info of /proc/PID/ folder in zip file of frozen Android app.
I haven't seen the main thread stack in your ANR trace, where is it?
And, from the "java.lang.ProcessManager" stack, I am guessing you are doing something by forking child processes?
I have met this issue before, it is very strange bug that the the Java process wrapper sometimes got blocked when waiting for the child process to quit.
I am not sure it is a bug, in my case, my child process is already gone, but the main process is still waiting for it in the main thread. Then ANR happened.
Finally, I write some JNI code to wrap C library "system("cmd")" to workaround this issue.

Categories

Resources