Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANR for NetworkDispatcher #29

Closed
wx2013 opened this issue May 3, 2017 · 1 comment
Closed

ANR for NetworkDispatcher #29

wx2013 opened this issue May 3, 2017 · 1 comment

Comments

@wx2013
Copy link

wx2013 commented May 3, 2017

in oppo x9007:
After some time the phone crashes;

Cmd line: com.esbook.reader

JNI: CheckJNI is off; workarounds are on; pins=1; globals=160

DALVIK THREADS:
(mutexes: tll=0 tsl=0 tscl=0 ghl=0)

"main" prio=5 tid=1 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x41ee9710 self=0x41ed4b00
| sysTid=11799 nice=0 sched=0/0 cgrp=apps handle=1074655228
| state=S schedstat=( 167869122 72698117 339 ) utm=14 stm=2 core=0
#00 pc 0001c8bc /system/lib/libc.so (epoll_wait+12)
#1 pc 00014ff1 /system/lib/libutils.so (android::Looper::pollInner(int)+92)
#2 pc 00015215 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
#3 pc 0006baf5 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#4 pc 000203cc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#5 pc 00050ca7 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#6 pc 00029860 /system/lib/libdvm.so
#7 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#8 pc 00062fbf /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+350)
#9 pc 0006abe3 /system/lib/libdvm.so
#10 pc 00029860 /system/lib/libdvm.so
#11 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#12 pc 00062d01 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#13 pc 0004c88b /system/lib/libdvm.so
#14 pc 0004f53b /system/lib/libandroid_runtime.so
#15 pc 000501cb /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+378)
#16 pc 0000105b /system/bin/app_process
#17 pc 0000df77 /system/lib/libc.so (__libc_init+50)
#18 pc 00000d7c /system/bin/app_process
at android.os.MessageQueue.nativePollOnce(Native Method)
at android.os.MessageQueue.next(MessageQueue.java:132)
at android.os.Looper.loop(Looper.java:124)
at android.app.ActivityThread.main(ActivityThread.java:5166)
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:768)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:584)
at dalvik.system.NativeStart.main(Native Method)

"java.lang.ProcessManager" daemon prio=5 tid=24 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x431ca018 self=0x74367ec8
| sysTid=11857 nice=0 sched=0/0 cgrp=apps handle=1949690488
| state=S schedstat=( 236354 672136 7 ) utm=0 stm=0 core=0
#00 pc 0001afd8 /system/lib/libc.so (wait4+8)
#1 pc 00021b33 /system/lib/libjavacore.so
#2 pc 000203cc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#3 pc 00050ca7 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#4 pc 00029860 /system/lib/libdvm.so
#5 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#6 pc 00062d01 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#7 pc 00062d2b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#8 pc 00057aa3 /system/lib/libdvm.so
#9 pc 0000cde0 /system/lib/libc.so (__thread_entry+72)
#10 pc 0000cf5c /system/lib/libc.so (pthread_create+208)
at libcore.io.Posix.waitpid(Native Method)
at libcore.io.ForwardingOs.waitpid(ForwardingOs.java:141)
at java.lang.ProcessManager.watchChildren(ProcessManager.java:86)
at java.lang.ProcessManager.access$000(ProcessManager.java:40)
at java.lang.ProcessManager$1.run(ProcessManager.java:58)

"Thread-1362" prio=5 tid=25 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x431c8718 self=0x7436b2f0
| sysTid=11856 nice=0 sched=0/0 cgrp=apps handle=1949707288
| state=S schedstat=( 17581453 7506511 99 ) utm=0 stm=1 core=2
#00 pc 0001b4b0 /system/lib/libc.so (read+8)
#1 pc 00021d91 /system/lib/libjavacore.so
#2 pc 000203cc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#3 pc 00050ca7 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#4 pc 00029860 /system/lib/libdvm.so
#5 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#6 pc 00062fbf /system/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+350)
#7 pc 0006abe3 /system/lib/libdvm.so
#8 pc 00029860 /system/lib/libdvm.so
#9 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#10 pc 00062d01 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#11 pc 00062d2b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#12 pc 0007063f /system/lib/libdvm.so
#13 pc 00029860 /system/lib/libdvm.so
#14 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#15 pc 00062d01 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#16 pc 00062d2b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#17 pc 00057aa3 /system/lib/libdvm.so
#18 pc 0000cde0 /system/lib/libc.so (__thread_entry+72)
#19 pc 0000cf5c /system/lib/libc.so (pthread_create+208)
at libcore.io.Posix.readBytes(Native Method)
at libcore.io.Posix.read(Posix.java:127)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:525)
at com.morgoo.droidplugin.hook.proxy.ProxyHook.invoke(ProxyHook.java:56)
at $Proxy17.read(Native Method)
at libcore.io.BlockGuardOs.read(BlockGuardOs.java:149)
at libcore.io.IoBridge.read(IoBridge.java:425)
at java.io.FileInputStream.read(FileInputStream.java:179)
at java.io.InputStreamReader.read(InputStreamReader.java:244)
at java.io.BufferedReader.fillBuf(BufferedReader.java:130)
at java.io.BufferedReader.readLine(BufferedReader.java:354)
at com.esbook.reader.util.LogcatHelper$LogDumper.run(LogcatHelper.java:112)

"DroidPlugin@FileLogThread" prio=5 tid=23 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x43178748 self=0x74361bc8
| sysTid=11849 nice=0 sched=0/0 cgrp=apps handle=1949695016
| state=S schedstat=( 232396 175416 1 ) utm=0 stm=0 core=2
#00 pc 0001c8bc /system/lib/libc.so (epoll_wait+12)
#1 pc 00014ff1 /system/lib/libutils.so (android::Looper::pollInner(int)+92)
#2 pc 00015215 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
#3 pc 0006baf5 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#4 pc 000203cc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#5 pc 00050ca7 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#6 pc 00029860 /system/lib/libdvm.so
#7 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#8 pc 00062d01 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#9 pc 00062d2b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#10 pc 00057aa3 /system/lib/libdvm.so
#11 pc 0000cde0 /system/lib/libc.so (__thread_entry+72)
#12 pc 0000cf5c /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:124)
at android.os.HandlerThread.run(HandlerThread.java:61)

"LocationClient" prio=5 tid=22 NATIVE
| group="main" sCount=1 dsCount=0 obj=0x43111aa8 self=0x7435cf00
| sysTid=11843 nice=0 sched=0/0 cgrp=apps handle=1949684560
| state=S schedstat=( 249688 0 3 ) utm=0 stm=0 core=2
#00 pc 0001c8bc /system/lib/libc.so (epoll_wait+12)
#1 pc 00014ff1 /system/lib/libutils.so (android::Looper::pollInner(int)+92)
#2 pc 00015215 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92)
#3 pc 0006baf5 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22)
#4 pc 000203cc /system/lib/libdvm.so (dvmPlatformInvoke+112)
#5 pc 00050ca7 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+398)
#6 pc 00029860 /system/lib/libdvm.so
#7 pc 0002e218 /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
#8 pc 00062d01 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+292)
#9 pc 00062d2b /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
#10 pc 00057aa3 /system/lib/libdvm.so
#11 pc 0000cde0 /system/lib/libc.so (__thread_entry+72)
#12 pc 0000cf5c /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:124)
at android.os.HandlerThread.run(HandlerThread.java:61)

"Thread-1351" prio=5 tid=21 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f9a40 self=0x7435c660
| sysTid=11842 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1949682352
| state=S schedstat=( 142708 55157 3 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f9bc0> (a java.lang.VMThread) held by tid=21 (Thread-1351)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1350" prio=5 tid=20 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f93f0 self=0x7435c008
| sysTid=11841 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897340088
| state=S schedstat=( 131927 91823 3 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f95c8> (a java.lang.VMThread) held by tid=20 (Thread-1350)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1349" prio=5 tid=19 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f70e0 self=0x71171330
| sysTid=11840 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897338752
| state=S schedstat=( 126407 66405 4 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f7288> (a java.lang.VMThread) held by tid=19 (Thread-1349)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1348" prio=5 tid=18 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f6408 self=0x711709e8
| sysTid=11839 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897336376
| state=S schedstat=( 197863 87031 5 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f6930> (a java.lang.VMThread) held by tid=18 (Thread-1348)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1347" prio=5 tid=17 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f55f8 self=0x7116ee98
| sysTid=11838 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897329384
| state=S schedstat=( 191093 1416250 5 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f59d8> (a java.lang.VMThread) held by tid=17 (Thread-1347)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1346" prio=5 tid=16 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f4468 self=0x71170300
| sysTid=11837 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897327176
| state=S schedstat=( 109322 34948 2 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f4838> (a java.lang.VMThread) held by tid=16 (Thread-1346)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1345" prio=5 tid=15 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f3b50 self=0x7116fba0
| sysTid=11836 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897332920
| state=S schedstat=( 139896 2628645 7 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f3c60> (a java.lang.VMThread) held by tid=15 (Thread-1345)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1344" prio=5 tid=14 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f3a28 self=0x7116cb90
| sysTid=11835 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897326072
| state=S schedstat=( 205522 129167 2 ) utm=0 stm=0 core=2
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f3b38> (a java.lang.VMThread) held by tid=14 (Thread-1344)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.NetworkDispatcher.run(NetworkDispatcher.java:90)

"Thread-1343" prio=5 tid=13 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430f3900 self=0x7116bba8
| sysTid=11834 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1897318208
| state=S schedstat=( 7708858 9135572 18 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)

  • waiting on <0x430f3a10> (a java.lang.VMThread) held by tid=13 (Thread-1343)
    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.PriorityBlockingQueue.take(PriorityBlockingQueue.java:505)
    at com.android.volley.CacheDispatcher.run(CacheDispatcher.java:90)

"RefQueueWorker@org.apache.http.impl.conn.tsccm.ConnPoolByRoute@430b1b78" daemon prio=5 tid=12 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430b4a10 self=0x71169010
| sysTid=11831 nice=0 sched=0/0 cgrp=apps handle=1897305184
| state=S schedstat=( 91927 0 2 ) utm=0 stm=0 core=0
at java.lang.Object.wait(Native Method)

  • waiting on <0x430b3a50> (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:841)

"AsyncTask #1" prio=5 tid=11 WAIT
| group="main" sCount=1 dsCount=0 obj=0x430acc80 self=0x710d4bd8
| sysTid=11830 nice=10 sched=0/0 cgrp=apps/bg_non_interactive handle=1896697896
| state=S schedstat=( 530989 524949 6 ) utm=0 stm=0 core=3
at java.lang.Object.wait(Native Method)

  • waiting on <0x430ace18> (a java.lang.VMThread) held by tid=11 (AsyncTask Bring up build infrastructure #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)
@jpd236
Copy link
Collaborator

jpd236 commented May 3, 2017

There's no sign I can see that this is related to Volley.

The main thread is idle, as are all NetworkDispatcher threads. Volley is not visibly contributing to any ANRs according to these traces.

@jpd236 jpd236 closed this as completed May 3, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants