如何修复互斥锁?

时间:2017-06-13 10:37:55

标签: android multithreading mutex android-anr-dialog

Google Play在我的应用程序中报告了一个ANR,以下是与ANR关联的日志片段,

"HeapTaskDaemon" daemon prio=5 tid=6 Blocked
  | group="system" sCount=1 dsCount=0 obj=0x12c9bc40 self=0xb93a6020
  | sysTid=15299 nice=0 cgrp=default sched=0/0 handle=0xb40ed930
  | state=S schedstat=( 0 0 0 ) utm=6793 stm=227 core=0 HZ=100
  | stack=0xb3feb000-0xb3fed000 stackSize=1038KB
  | held mutexes=
  native: pc 0000000000016a5c  /system/lib/libc.so (syscall+32)
  native: pc 00000000000f6ed9  /system/lib/libart.so (_ZN3art17ConditionVariable9TimedWaitEPNS_6ThreadExi+120)
  native: pc 00000000001d7265  /system/lib/libart.so (_ZN3art2gc13TaskProcessor7GetTaskEPNS_6ThreadE+240)
  native: pc 00000000001d7711  /system/lib/libart.so (_ZN3art2gc13TaskProcessor11RunAllTasksEPNS_6ThreadE+72)
  native: pc 000000000000037f  /data/dalvik-cache/arm/system@framework@boot.oat (Java_dalvik_system_VMRuntime_runHeapTasks__+74)
  at dalvik.system.VMRuntime.runHeapTasks (Native method)
- waiting to lock an unknown object
  at java.lang.Daemons$HeapTaskDaemon.run (Daemons.java:355)
  at java.lang.Thread.run (Thread.java:818)

请深入了解如何解决这个问题。

注意: - 您可以在此链接中找到整个崩溃日志: -

https://pastebin.com/pxzLLnBt

0 个答案:

没有答案