在使用AsynchTask时,我得到了一个奇怪的错误massege,我不确定它是指什么。
以下是错误日志:
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);