ANR 问题分析,按键点击后触发了ANR问题,从trace.txt看到的主线程的调用盏如下,这是什么原因造成的呢?

simonws 发布于 2012/07/18 10:58
阅读 4K+
收藏 0

有log 信息:

Reason: keyDispatchingTimedOut
07-13 19:08:42.914   278   315 E ActivityManager: Load: 6.81 / 6.27 / 7.24
7.4% TOTAL: 1.9% user + 3.1% kernel + 2.1% iowait + 0.1% softirq

traces.txt主线程如下:

DALVIK THREADS:

(mutexes: tll=0 tsl=0 tscl=0 ghl=0)
"main" prio=5 tid=1 NATIVE
  | group="main" sCount=1 dsCount=0 obj=0x40f4a4d0 self=0x43b7d0
  | sysTid=1431 nice=0 sched=0/0 cgrp=default handle=1074317524
  | schedstat=( 1689937579 749850867 4090 ) utm=113 stm=55 core=0
  at android.os.MessageQueue.nativePollOnce(Native Method)
  at android.os.MessageQueue.next(MessageQueue.java:118)
  at android.os.Looper.loop(Looper.java:135)
  at android.app.ActivityThread.main(ActivityThread.java:4642)
  at java.lang.reflect.Method.invokeNative(Native Method)
  at java.lang.reflect.Method.invoke(Method.java:511)
  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:809)
  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:576)
  at dalvik.system.NativeStart.main(Native Method)

 

是不是io阻塞?怎么去找到原因呢?望高人指点。

加载中
0
D
DanielZhao1990
 keyDispatchingTimedOut key处理阻塞
返回顶部
顶部