anr 分析(MessageQueue 主线程处于空闲状态)

来源:互联网 发布:flexible.js原理 编辑:程序博客网 时间:2024/04/27 15:00
call stack如下:
"main" prio=5 tid=1 Native
  | group="main" sCount=1 dsCount=0 obj=0x76c35ae8 self=0x7e33296a00
  | sysTid=23443 nice=0 cgrp=default sched=0/0 handle=0x7e37875a98
  | state=S schedstat=( 2299870549 585063683 1521 ) utm=45 stm=184 core=0 HZ=100
  | stack=0x7fc294c000-0x7fc294e000 stackSize=8MB
  | held mutexes=
  kernel: (couldn't read /proc/self/task/23443/stack)
  native: #00 pc 000000000006c754  /system/lib64/libc.so (__epoll_pwait+8)
  native: #01 pc 000000000001e250  /system/lib64/libc.so (epoll_pwait+64)
  native: #02 pc 0000000000018168  /system/lib64/libutils.so (_ZN7android6Looper9pollInnerEi+156)
  native: #03 pc 000000000001800c  /system/lib64/libutils.so (_ZN7android6Looper8pollOnceEiPiS1_PPv+60)
  native: #04 pc 00000000000f2fc0  /system/lib64/libandroid_runtime.so (_ZN7android18NativeMessageQueue8pollOnceEP7_JNIEnvP8_jobjecti+48)
  native: #05 pc 00000000008da5e0  /system/framework/arm64/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI+140)
  at android.os.MessageQueue.nativePollOnce(Native method)
  at android.os.MessageQueue.next(MessageQueue.java:328)
  at android.os.Looper.loop(Looper.java:148)
  at android.app.ActivityThread.main(ActivityThread.java:6255)
  at java.lang.reflect.Method.invoke!(Native method)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1064)

  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:925)


MessageQueue

目前media主线程处于空闲状态,根本原因要联系codecheck,优先check一下system server进程是否存在lock现象