ANR Input dispatching timed out

前端 未结 2 1828
傲寒
傲寒 2021-02-06 22:22

ANR Input dispatching timed out (Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over

相关标签:
2条回答
  • 2021-02-06 23:01

    This happened to me when I had a loop and there was a condition for the loop to get incremented. I had not set the increment for when the condition was not met. Hence, the loop stalled. This resulted in the above error.

    Without your code, I cannot help. But the above is a possible cause of your error.

    0 讨论(0)
  • 2021-02-06 23:01

    Obviously, you anr log is not complete. It only shows main thread log, what else thread log.

    In main thread, from this "main" prio=5 tid=1 Suspended, we know the thread was suspended. Before that, it - locked <0x08f02647> (a android.os.MessageQueue) at android.os.Handler.removeMessages(Handler.java:652) at android.view.Choreographer.removeCallbacksInternal(Choreographer.java:418) - locked <0x0bd41e74> (a java.lang.Object)

    You should search the log to check which thread waiting to lock the <0x08f02647> and <0x0bd41e74>, the you may find some clue.

    0 讨论(0)
提交回复
热议问题