ANR Cmd line: com.android.music

yas56400772 2014-08-20 05:50:23
用monkey跑出来的anr问题。模块为音乐。
// NOT RESPONDING: com.android.music (pid 4081)
ANR in com.android.music (com.android.music/.TrackBrowserActivity)
PID: 4081
Reason: Input dispatching timed out (Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up.)
Load: 1.75 / 2.13 / 1.88
CPU usage from 3585ms to -3707ms ago:
12% 619/system_server: 9.6% user + 3.1% kernel / faults: 1350 minor 128 major
0% 160/debuggerd: 0% user + 0% kernel / faults: 2446 minor 101 major
2% 50/ksmd: 0% user + 2% kernel
1.3% 90/mmcqd/0: 0% user + 1.3% kernel
0.8% 721/com.android.systemui: 0.2% user + 0.5% kernel / faults: 184 minor 26 major
0.8% 4081/com.android.music: 0.6% user + 0.1% kernel / faults: 141 minor 17 major
0.6% 162/surfaceflinger: 0.6% user + 0% kernel / faults: 12 minor 20 major
0.6% 864/com.android.phone: 0.4% user + 0.2% kernel / faults: 245 minor 36 major
0.5% 691/com.android.keyguard: 0.2% user + 0.2% kernel / faults: 315 minor 116 major
0% 875/com.marvell.powermeter: 0% user + 0% kernel / faults: 509 minor 109 major
0% 900/com.android.exchange: 0% user + 0% kernel / faults: 503 minor 132 major
0% 911/com.pekall.dm: 0% user + 0% kernel / faults: 493 minor 118 major
0.2% 49/kswapd0: 0% user + 0.2% kernel
0.2% 4288/adbd: 0.1% user + 0.1% kernel
0% 8/rcu_preempt: 0% user + 0% kernel
0% 87/cfinteractive: 0% user + 0% kernel
0.1% 135/logcat: 0% user + 0.1% kernel
0.1% 165/mediaserver: 0.1% user + 0% kernel / faults: 35 minor 102 major
0% 173/phservice: 0% user + 0% kernel / faults: 206 minor 7 major
0% 5213/kworker/0:1: 0% user + 0% kernel
0% 5904/kworker/u9:1: 0% user + 0% kernel
0% 7236/kworker/1:2: 0% user + 0% kernel
7.8% TOTAL: 3.7% user + 2.5% kernel + 1.3% iowait + 0.1% softirq
CPU usage from 3160ms to 3677ms later:
5.6% 619/system_server: 1.8% user + 3.7% kernel
5.6% 634/ActivityManager: 1.8% user + 3.7% kernel
1.9% 50/ksmd: 0% user + 1.9% kernel
0.9% TOTAL: 0% user + 0.9% kernel

...全文
6245 11 打赏 收藏 转发到动态 举报
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
怡红绿玉 2016-11-18
  • 打赏
  • 举报
回复
楼主,我也遇到了这个问题,不知道解决了没有?
qq_15392919 2016-06-30
  • 打赏
  • 举报
回复
楼主解决了没,我也遇到这个问题了
fengyun2023 2015-09-17
  • 打赏
  • 举报
回复
TrackBrowserActivity
深圳之光 2014-12-18
  • 打赏
  • 举报
回复
同问,出现了桌面ANR,必现问题 Line 27174: 12-18 09:09:26.958689 666 761 I InputDispatcher: Application is not responding: AppWindowToken{425bf2e0 token=Token{4265d550 ActivityRecord{423cd488 u0 com.android.launcher3/.Launcher t1}}}. It has been 8087.6ms since event, 8008.1ms since wait started. Reason: Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up. Line 27275: 12-18 09:09:27.081933 1294 1299 D dalvikvm: dump native stack for : launcher-loader
  • 打赏
  • 举报
回复
楼主还没有解决吗?有解决方案了吗?
comyqiu 2014-11-25
  • 打赏
  • 举报
回复
楼主,有什么思路吗?我也遇到了
yas56400772 2014-11-24
  • 打赏
  • 举报
回复
还没有解决 好像跟桌面有关系 而导致的。
baidu_21225855 2014-09-24
  • 打赏
  • 举报
回复
楼主,问题有解决吗? 求教~~
  • 打赏
  • 举报
回复
Reason: Input dispatching timed out (Waiting because no window has focus but there is a focused application that may eventually add a window when it finishes starting up.) 看着跟这两个问题差不多,楼主看看 http://stackoverflow.com/questions/16838917/anr-in-random-usage-of-application http://stackoverflow.com/questions/17884815/back-button-not-working-in-native-activity
yas56400772 2014-08-20
  • 打赏
  • 举报
回复
这个anr问题我是真没有思路,请大家帮忙提示一下吧。
yas56400772 2014-08-20
  • 打赏
  • 举报
回复
traces.txt Cmd line: com.android.music JNI: CheckJNI is off; workarounds are on; pins=0; globals=439 DALVIK THREADS: (mutexes: tll=0 tsl=0 tscl=0 ghl=0) "main" prio=5 tid=1 NATIVE | group="main" sCount=1 dsCount=0 obj=0x41841cd8 self=0x418303c8 | sysTid=4081 nice=0 sched=0/0 cgrp=apps handle=1074078036 | state=S schedstat=( 0 0 0 ) utm=54370 stm=6458 core=3 #00 pc 0002175c /system/lib/libc.so (epoll_wait+12) #01 pc 000105e3 /system/lib/libutils.so (android::Looper::pollInner(int)+94) #02 pc 00010811 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+92) #03 pc 0006a625 /system/lib/libandroid_runtime.so (android::NativeMessageQueue::pollOnce(_JNIEnv*, int)+22) #04 pc 0001e48c /system/vendor/lib/libdvm.so (dvmPlatformInvoke+112) #05 pc 0005c967 /system/vendor/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+174) #06 pc 000278a0 /system/vendor/lib/libdvm.so #07 pc 0002fb98 /system/vendor/lib/libdvm.so (dvmMterpStd(Thread*)+76) #08 pc 0002ca50 /system/vendor/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) #09 pc 000772e9 /system/vendor/lib/libdvm.so (dvmInvokeMethod(Object*, Method const*, ArrayObject*, ArrayObject*, ClassObject*, bool)+1020) #10 pc 00082f93 /system/vendor/lib/libdvm.so #11 pc 000278a0 /system/vendor/lib/libdvm.so #12 pc 0002fb98 /system/vendor/lib/libdvm.so (dvmMterpStd(Thread*)+76) #13 pc 0002ca50 /system/vendor/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184) #14 pc 00076dd7 /system/vendor/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+566) #15 pc 00053e6d /system/vendor/lib/libdvm.so #16 pc 0004d1cb /system/lib/libandroid_runtime.so #17 pc 0004deef /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+354) #18 pc 0000105b /system/bin/app_process #19 pc 0000e3eb /system/lib/libc.so (__libc_init+50) #20 pc 00000d7c /system/bin/app_process at android.os.MessageQueue.nativePollOnce(Native Method) at android.os.MessageQueue.next(MessageQueue.java:138) at android.os.Looper.loop(Looper.java:123) at android.app.ActivityThread.main(ActivityThread.java:5017) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595) at dalvik.system.NativeStart.main(Native Method) "Binder_A" prio=5 tid=25 NATIVE | group="main" sCount=1 dsCount=0 obj=0x41b41448 self=0x5f185060 | sysTid=9889 nice=0 sched=0/0 cgrp=apps handle=1593141928 | state=S schedstat=( 0 0 0 ) utm=11 stm=7 core=0 #00 pc 000205a8 /system/lib/libc.so (__ioctl+8) #01 pc 0002d3ff /system/lib/libc.so (ioctl+14) #02 pc 0001d495 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db9f /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc35 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021b91 /system/lib/libbinder.so #06 pc 0000ea01 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004d165 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e533 /system/lib/libutils.so #09 pc 0000d208 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3a4 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "Binder_9" prio=5 tid=26 NATIVE | group="main" sCount=1 dsCount=0 obj=0x420b9a58 self=0x5f1f7c58 | sysTid=6470 nice=0 sched=0/0 cgrp=apps handle=1593047896 | state=S schedstat=( 0 0 0 ) utm=41 stm=24 core=3 #00 pc 000205a8 /system/lib/libc.so (__ioctl+8) #01 pc 0002d3ff /system/lib/libc.so (ioctl+14) #02 pc 0001d495 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db9f /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc35 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021b91 /system/lib/libbinder.so #06 pc 0000ea01 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004d165 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e533 /system/lib/libutils.so #09 pc 0000d208 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3a4 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "Binder_8" prio=5 tid=24 NATIVE | group="main" sCount=1 dsCount=0 obj=0x41b46680 self=0x5f01a808 | sysTid=5698 nice=0 sched=0/0 cgrp=apps handle=1592236968 | state=S schedstat=( 0 0 0 ) utm=43 stm=39 core=1 #00 pc 000205a8 /system/lib/libc.so (__ioctl+8) #01 pc 0002d3ff /system/lib/libc.so (ioctl+14) #02 pc 0001d495 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db9f /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc35 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021b91 /system/lib/libbinder.so #06 pc 0000ea01 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004d165 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e533 /system/lib/libutils.so #09 pc 0000d208 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3a4 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "Binder_7" prio=5 tid=22 NATIVE | group="main" sCount=1 dsCount=0 obj=0x4222fc68 self=0x5f1f8f10 | sysTid=5606 nice=0 sched=0/0 cgrp=apps handle=1593591224 | state=S schedstat=( 0 0 0 ) utm=57 stm=27 core=2 #00 pc 000205a8 /system/lib/libc.so (__ioctl+8) #01 pc 0002d3ff /system/lib/libc.so (ioctl+14) #02 pc 0001d495 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db9f /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc35 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021b91 /system/lib/libbinder.so #06 pc 0000ea01 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004d165 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e533 /system/lib/libutils.so #09 pc 0000d208 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3a4 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) "Binder_6" prio=5 tid=16 NATIVE | group="main" sCount=1 dsCount=0 obj=0x42110ce0 self=0x61455280 | sysTid=5112 nice=0 sched=0/0 cgrp=apps handle=1593327320 | state=S schedstat=( 0 0 0 ) utm=57 stm=42 core=0 #00 pc 000205a8 /system/lib/libc.so (__ioctl+8) #01 pc 0002d3ff /system/lib/libc.so (ioctl+14) #02 pc 0001d495 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+140) #03 pc 0001db9f /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+6) #04 pc 0001dc35 /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+48) #05 pc 00021b91 /system/lib/libbinder.so #06 pc 0000ea01 /system/lib/libutils.so (android::Thread::_threadLoop(void*)+216) #07 pc 0004d165 /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+68) #08 pc 0000e533 /system/lib/libutils.so #09 pc 0000d208 /system/lib/libc.so (__thread_entry+72) #10 pc 0000d3a4 /system/lib/libc.so (pthread_create+240) at dalvik.system.NativeStart.run(Native Method) ..........

80,351

社区成员

发帖
与我相关
我的任务
社区描述
移动平台 Android
androidandroid-studioandroidx 技术论坛(原bbs)
社区管理员
  • Android
  • yechaoa
  • 失落夏天
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧