0

我在使用 AsynchTask 时遇到了一个奇怪的错误消息,我不确定它指的是什么。

这是错误日志:

E/art: Thread[31,tid=13078,WaitingForDebuggerSend,Thread*=0xb711bb58,peer=0x12c007c0,"AsyncTask #2"] suspend count too deep for method invocation: 2
I/art: Background sticky concurrent mark sweep GC freed 711005(14MB) AllocSpace objects, 0(0B) LOS objects, 26% free, 21MB/29MB, paused 2.929ms total 135.052ms
I/art: Background partial concurrent mark sweep GC freed 423095(8MB) AllocSpace objects, 0(0B) LOS objects, 40% free, 21MB/36MB, paused 4.272ms total 147.504ms
I/art: WaitForGcToComplete blocked for 87.501ms for cause HeapTrim
W/art: Suspending all threads took: 11.414ms
W/art: Suspending all threads took: 5.127ms

没有遇到任何不好的事情,但它仍然是一个错误。我应该注意这个吗?有人可以解释这是指什么吗?

基本上我所做的是每 20 秒执行一次 AsynchTask,如下所示:

if (request != null) {
    request.cancel(true);
}
if (requestListener == null) {
    request = new Request(context);
} else {
    request = new Request(context, requestListener);
}
request.execute(unlockUrl);
4

0 回答 0