- waiting to lock <0x01aed1da> (a java.lang.Object) held by thread 3 ———关键行!!! at android.view.View.performClick(View.java:7187) at android.view.View.performClickInternal(View.java:7164) at android.view.View.access$3500(View.java:813) at android.view.View$PerformClick.run(View...
at com.android.server.audio.AudioService.getDeviceSetForStream(AudioService.java:7041) -waiting to lock<0x01384d82> (a java.lang.Class<com.android.server.audio.AudioService$VolumeStreamState>) held by thread 110 at com.android.server.audio.AudioService.getDeviceForStream(AudioService.java:6948)...
atandroid.view.inputmethod.InputMethodManager.windowDismissed(InputMethodManager.java:1296) - waiting to lock <0x3fd06119> (a >>android.view.inputmethod.InputMethodManager$H) held by thread80atandroid.view.WindowManagerGlobal.removeViewLocked(WindowManagerGlobal.java:366) atandroid.view.WindowManagerGloba...
you are lucky if find "waiting to lock" example : waiting to lock <0xblahblah> (a com.foo.A) held by threadid=74 You can notice that "tid=74" hold a task now. So go to tid=74 tid=74 maybe SUSPENDED state! find main reason! trace does not always contain "waiting to lock". ...
很明显当时在做Binder通信,并没有waiting to lock等代表死锁的字样,那么说明这个案例即有可能是在等Binder对端响应,我们知道Binder通信对于发起方来说是默认是阻塞等待响应,只有有了返回结果后才会继续执行下去,当然了可以给接口设置oneway声明,这样的话binder请求就是异步请求,这里不多说 ...
- waiting to lock <0x03180f01> (a android.os.MessageQueue) at android.os.Handler.enqueueMessage(Handler.java:778) at android.os.Handler.sendMessageAtTime(Handler.java:727) at android.view.ViewRootImpl$ViewRootHandler.sendMessageAtTime(ViewRootImpl.java:5135) ...
1. waiting to lock <0x01aed1da> (a java.lang.Object) held by thread 3 1. 其中等待的锁是<0x01aed1da>,这个锁的持有者是线程 3。进一步搜索 “tid=3” 找到线程3, 发现它正在TimeWating。 那么ANR的原因找到了:线程3持有了一把锁,并且自身长时间不释放,主线程等待这把锁发生超时。在线上环境中,...
- waiting to lock <0x26b337a3> (a com.mediatek.anrappmanager.MessageLogger) held by thread 49 其含义就是,主线程正在被 block, 其正在等待 线程49 释放锁,最终因此导致出现了 ANR。 可以接着搜关键字tid=49,如果简单的话一般会是: "xxxThread" prio=5 tid=49 Sleeping ...
- waiting to lock <0x01aed1da> (a java.lang.Object) held by thread 3 ———关键行!!! at android.view.View.performClick(View.java:7187) at android.view.View.performClickInternal(View.java:7164) at android.view.View.access$3500(View.java:813) at android...
- waiting to lock <0x41a7e2e8> (a java.lang.Object) held by tid=85 (Binder_B) at com.android.server.power.PowerManagerService.isScreenOn(PowerManagerService.java:2522) at com.android.server.wm.WindowManagerService.sendScreenStatusToClientsLocked(WindowManagerService.java:7749) ...