0

我收到此日志警告

09-29 17:05:27.539 16093-19955/com.popcornstay.popcornstay W/art: Long 

monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.702s
09-29 17:05:27.539 16093-16277/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.702s
09-29 17:05:27.539 16093-19915/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.668s
09-29 17:05:27.539 16093-16553/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.700s
09-29 17:05:27.539 16093-16465/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.703s
09-29 17:05:27.539 16093-20640/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.668s
09-29 17:05:27.539 16093-22796/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-121 (20431) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.600s
09-29 17:05:27.539 16093-19829/com.popcornstay.popcornstay W/art: Long monitor contention with owner main (16093) at android.os.Message android.os.MessageQueue.next()(MessageQueue.java:331) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.601s
09-29 17:05:27.539 16093-17260/com.popcornstay.popcornstay W/art: Long monitor contention with owner Timer-83 (19829) at boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long)(MessageQueue.java:547) waiters=143 in boolean android.os.MessageQueue.enqueueMessage(android.os.Message, long) for 8.668s

请帮我解决这个问题。

因此,我的应用程序无法正常工作并在 30 秒后挂起。

对此提出任何解决方案。

这导致挂起和之后的 ANR。

4

1 回答 1

1

这是因为一个线程没有响应太多时间并阻塞其他线程。应用程序可能在一个线程中执行过多任务。尝试找到这个线程并卸载它。从它开始。如果没有的话 - 在这里给我写信,我们可以去下午。

于 2018-09-25T10:12:26.063 回答