2 wanghai3334 wanghai3334 于 2013.10.27 11:00 提问

关于android ANR错误,求助?

一段log:
E/ActivityManager( 834): Reason: keyDispatchingTimedOut
E/ActivityManager( 834): Load: 7.84 / 3.14 / 1.16
E/ActivityManager( 834): CPU usage from 13781ms to 3279ms ago:
E/ActivityManager( 834): 4% 834/system_server: 2.6% user + 1.3% kernel / faults: 102 minor
E/ActivityManager( 834): 0.6% 276/mediaserver: 0.3% user + 0.2% kernel / faults: 1 minor
E/ActivityManager( 834): 1.6% 345/adbd: 0% user + 1.6% kernel / faults: 47 minor
E/ActivityManager( 834): 0.9% 270/surfaceflinger: 0.2% user + 0.6% kernel / faults: 1 minor
E/ActivityManager( 834): 0.8% 2485/com.example.displaydemo: 0.4% user + 0.3% kernel / faults: 146 minor
E/ActivityManager( 834): 0.7% 335/mm-pp-daemon: 0% user + 0.6% kernel
E/ActivityManager( 834): 0.7% 1191/com.hx.memorycleaner: 0.5% user + 0.1% kernel / faults: 114 minor
E/ActivityManager( 834): 0.5% 1561/mpdecision: 0% user + 0.5% kernel
E/ActivityManager( 834): 0.4% 124/kworker/0:3: 0% user + 0.4% kernel
E/ActivityManager( 834): 0.4% 445/sensors.qcom: 0.3% user + 0% kernel / faults: 1 minor
E/ActivityManager( 834): 0% 157/kworker/u:5: 0% user + 0% kernel
E/ActivityManager( 834): 0.2% 1814/kworker/0:2H: 0% user + 0.2% kernel
E/ActivityManager( 834): 0.1% 3/ksoftirqd/0: 0% user + 0.1% kernel
E/ActivityManager( 834): 0.1% 1091/MC_Thread: 0% user + 0.1% kernel
E/ActivityManager( 834): 0% 2411/kworker/u:9: 0% user + 0% kernel
E/ActivityManager( 834): 0% 1//init: 0% user + 0% kernel / faults: 35 minor
E/ActivityManager( 834): 0% 27/kworker/0:1H: 0% user + 0% kernel
E/ActivityManager( 834): 0% 100/file-storage: 0% user + 0% kernel
E/ActivityManager( 834): 0% 160/ngd_msm_ctrl_ng: 0% user + 0% kernel
E/ActivityManager( 834): 0% 263/vold: 0% user + 0% kernel
E/ActivityManager( 834): 0% 322/qmuxd: 0% user + 0% kernel
E/ActivityManager( 834): 0% 1092/TX_Thread: 0% user + 0% kernel
E/ActivityManager( 834): 0% 1183/wpa_supplicant: 0% user + 0% kernel
E/ActivityManager( 834): 0% 2410/kworker/u:8: 0% user + 0% kernel
E/ActivityManager( 834): 0% 2417/kworker/u:15: 0% user + 0% kernel
E/ActivityManager( 834): 0% 2422/kworker/u:20: 0% user + 0% kernel
E/ActivityManager( 834): +0% 2988/logcat: 0% user + 0% kernel
E/ActivityManager( 834): 20% TOTAL: 10% user + 9.4% kernel + 0% iowait
E/ActivityManager( 834): CPU usage from 865ms to 1385ms later:
E/ActivityManager( 834): 9.2% 834/system_server: 3.7% user + 5.5% kernel / faults: 3 minor
E/ActivityManager( 834): 7.4% 956/ActivityManager: 1.8% user + 5.5% kernel
E/ActivityManager( 834): 1.8% 1282/Binder_A: 1.8% user + 0% kernel
E/ActivityManager( 834): 1.5% 1814/kworker/0:2H: 0% user + 1.5% kernel
E/ActivityManager( 834): 2.9% TOTAL: 0.9% user + 1.9% kernel

就是想请问一下,这个问题,我是调用了Lock锁,ServiceUtil.class.wait()调用本地服务;但是我是在异步任务中调用的,出现了这种错误,求有什么好的解决办法??谢谢

1个回答

su1216
su1216   2013.11.06 13:33

把trace log贴出来

Csdn user default icon
上传中...
上传图片
插入图片