Error "android.os.MessageQueue.nativePollOnce" "Input dispatching timed out" in Google Console.

Hi,
There have been several posts regarding the error : Input dispatching timed out, but most of them had admob or something related in their stacktrace. My stacktrace for the main thread looks like :

Thread
“main” tid=1 Native
#00 pc 0x000000000005ddec /apex/com.android.runtime/lib/bionic/libc.so (syscall)
#00 pc 0x00000000001377e5 /apex/com.android.art/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*))
#00 pc 0x00000000002bb38b /apex/com.android.art/lib/libart.so (art::JNI::CallObjectMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list))
#00 pc 0x0000000000003659 /apex/com.android.art/lib/libnativehelper.so (_JNIEnv::CallObjectMethod(_jobject*, _jmethodID*, …))
#00 pc 0x000000000009bbe1 /system/lib/libandroid_runtime.so (android::NativeDisplayEventReceiver::dispatchVsync(long long, unsigned long long, unsigned int))
#00 pc 0x0000000000065551 /system/lib/libgui.so (android::smile:isplayEventDispatcher::handleEvent(int, int, void*))
#00 pc 0x0000000000011de5 /system/lib/libutils.so (android::Looper::pollInner(int))
#00 pc 0x0000000000011ad7 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**))
#00 pc 0x00000000000b9f05 /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int))
at android.os.MessageQueue.nativePollOnce (MessageQueue.java)
at android.os.MessageQueue.next (MessageQueue.java:335)
at android.os.Looper.loop (Looper.java:183)
at android.app.ActivityThread.main (ActivityThread.java:7695)
at java.lang.reflect.Method.invoke (Method.java)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:592)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1084)

Any ideas on what could be causing the ANR?

Thanks!

Note: I can provide the stacktraces for other threads as well.

1 Like

We have this ANR as well and it makes the ANR stats look very bad. We hope with every Unity update that this bug will finally be fixed, but nothing happens…

“main” tid=1 Native
#00 pc 0x0000000000068ef8 /system/lib64/libc.so (__epoll_pwait)
#00 pc 0x000000000001fb68 /system/lib64/libc.so (epoll_pwait)
#00 pc 0x0000000000015c1c /system/lib64/libutils.so (android::Looper::pollInner(int))
#00 pc 0x0000000000015b04 /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**))
#00 pc 0x0000000000111f14 /system/lib64/libandroid_runtime.so
#00 pc 0x00000000001e61ec /system/framework/arm64/boot-framework.oat (Java_android_os_MessageQueue_nativePollOnce__JI)
at android.os.MessageQueue.nativePollOnce (Native method)
at android.os.MessageQueue.next (MessageQueue.java:375)
at android.os.Looper.loop (Looper.java:225)
at android.app.ActivityThread.main (ActivityThread.java:6572)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run (Zygote.java:240)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:767)

1 Like

Some news about this?

For us the bug got introduced with updating Unity Ads. Since then it persists and we also hope that Unity fixes it at one point, but I doubt that will ever happen since it’s now many months, everyone knows about it but nothing got done.

1 Like

I guess it started after i updated ironsource version and their adapters (unity ads, facebook ads, vungle, applovin and admob) so I have no idea which one caused it. It doesn’t show any stack trace which leaves me hopeless at the moment. Any updates on your sides?

any updates on this ?

This issue is misleading. It means the app has recovered from ANR before OS killed it, so info about what was stuck has been lost.
Look into other ANRs that you have, those will point to the reasons of this one.

Here is the complete stack trace: This is the mostly occur ANR in our game.
“main” tid=1 Native
#00 pc 0x0000000000019cfc /system/lib/libc.so (syscall+28)
#01 pc 0x00000000000a6b63 /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+78)
#02 pc 0x0000000000269a21 /system/lib/libart.so (art::JNI::CallObjectMethod(_JNIEnv*, _jobject*, _jmethodID*, …)+352)
#03 pc 0x000000000009b903 /system/lib/libandroid_runtime.so (android::NativeInputEventReceiver::consumeEvents(_JNIEnv*, bool, long long, bool*)+138)
#04 pc 0x000000000009b6d9 /system/lib/libandroid_runtime.so (android::NativeInputEventReceiver::handleEvent(int, int, void*)+80)
#05 pc 0x000000000000f28d /system/lib/libutils.so (android::Looper::pollInner(int)+632)
#06 pc 0x000000000000ef97 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+26)
#07 pc 0x00000000000b98ff /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24)
at android.os.MessageQueue.nativePollOnce (Native method)
at android.os.MessageQueue.next (MessageQueue.java:326)
at android.os.Looper.loop (Looper.java:160)
at android.app.ActivityThread.main (ActivityThread.java:6819)
at java.lang.reflect.Method.invoke (Native method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:497)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:912)

“Signal Catcher” tid=3 Runnable
#00 pc 0x00000000002d9f4f /system/lib/libart.so (art::smile:umpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+134)
#01 pc 0x000000000036f1b5 /system/lib/libart.so (art::thread::smile:umpStack(std::__1::basic_ostream<char, std::__1::char_traits>&, bool, BacktraceMap*, bool) const+264)
#02 pc 0x000000000036b933 /system/lib/libart.so (art::thread::smile:ump(std::__1::basic_ostream<char, std::__1::char_traits>&, bool, BacktraceMap*, bool) const+34)
#03 pc 0x0000000000384969 /system/lib/libart.so (art::smile:umpCheckpoint::Run(art::Thread*)+744)
#04 pc 0x000000000037ebd7 /system/lib/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+330)
#05 pc 0x000000000037e2bf /system/lib/libart.so (art::ThreadList::smile:ump(std::__1::basic_ostream<char, std::__1::char_traits>&, bool)+758)
#06 pc 0x000000000037def7 /system/lib/libart.so (art::ThreadList::smile:umpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits>&)+614)
#07 pc 0x0000000000357ec9 /system/lib/libart.so (art::Runtime::smile:umpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits>&)+120)
#08 pc 0x0000000000360ee9 /system/lib/libart.so (art::SignalCatcher::HandleSigQuit()+1040)
#09 pc 0x000000000036007b /system/lib/libart.so (art::SignalCatcher::Run(void*)+246)
#10 pc 0x00000000000632f9 /system/lib/libc.so (__pthread_start(void*)+22)
#11 pc 0x000000000001de51 /system/lib/libc.so (__start_thread+24)

“Jit thread pool worker thread 0” tid=2 Native
#00 pc 0x0000000000019cfc /system/lib/libc.so (syscall+28)
#01 pc 0x00000000000a6b63 /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+78)
#02 pc 0x0000000000385b3f /system/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+174)
#03 pc 0x0000000000385403 /system/lib/libart.so (art::ThreadPoolWorker::Run()+62)
#04 pc 0x0000000000385037 /system/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+94)
#05 pc 0x00000000000632f9 /system/lib/libc.so (__pthread_start(void*)+22)
#06 pc 0x000000000001de51 /system/lib/libc.so (__start_thread+24)

“FinalizerDaemon” tid=4 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Object.wait (Object.java:422)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:188)
at java.lang.ref.ReferenceQueue.remove (ReferenceQueue.java:209)
at java.lang.Daemons$FinalizerDaemon.runInternal (Daemons.java:233)
at java.lang.Daemons$Daemon.run (Daemons.java:104)
at java.lang.Thread.run (Thread.java:764)

“ReferenceQueueDaemon” tid=5 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Daemons$ReferenceQueueDaemon.runInternal (Daemons.java:179)
at java.lang.Daemons$Daemon.run (Daemons.java:104)
at java.lang.Thread.run (Thread.java:764)

“FinalizerWatchdogDaemon” tid=6 Timed Waiting
at java.lang.Thread.sleep (Native method)
at java.lang.Thread.sleep (Thread.java:373)
at java.lang.Thread.sleep (Thread.java:314)
at java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor (Daemons.java:343)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization (Daemons.java:365)
at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal (Daemons.java:282)
at java.lang.Daemons$Daemon.run (Daemons.java:104)
at java.lang.Thread.run (Thread.java:764)

“HeapTaskDaemon” tid=7 Waiting
#00 pc 0x0000000000019d00 /system/lib/libc.so (syscall+32)
#01 pc 0x00000000000a6e8f /system/lib/libart.so (art::ConditionVariable::TimedWait(art::Thread*, long long, int)+98)
#02 pc 0x00000000001a9701 /system/lib/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+248)
#03 pc 0x00000000001a9d59 /system/lib/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+48)
at dalvik.system.VMRuntime.runHeapTasks (Native method)
at java.lang.Daemons$HeapTaskDaemon.runInternal (Daemons.java:480)
at java.lang.Daemons$Daemon.run (Daemons.java:104)
at java.lang.Thread.run (Thread.java:764)

“Binder:7004_1” tid=8 Native
#00 pc 0x00000000000537fc /system/lib/libc.so (__ioctl+8)
#01 pc 0x00000000000219cf /system/lib/libc.so (ioctl+30)
#02 pc 0x000000000003d535 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+204)
#03 pc 0x000000000003dacb /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+10)
#04 pc 0x000000000003e04b /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
#05 pc 0x0000000000054a4f /system/lib/libbinder.so (android::PoolThread::threadLoop()+14)
#06 pc 0x000000000000c0df /system/lib/libutils.so (android::thread::_threadLoop(void*)+166)
#07 pc 0x000000000007033f /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+82)
#08 pc 0x00000000000632f9 /system/lib/libc.so (__pthread_start(void*)+22)
#09 pc 0x000000000001de51 /system/lib/libc.so (__start_thread+24)

“Binder:7004_2” tid=9 Native
#00 pc 0x00000000000537fc /system/lib/libc.so (__ioctl+8)
#01 pc 0x00000000000219cf /system/lib/libc.so (ioctl+30)
#02 pc 0x000000000003d535 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+204)
#03 pc 0x000000000003dacb /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+10)
#04 pc 0x000000000003e04b /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
#05 pc 0x0000000000054a4f /system/lib/libbinder.so (android::PoolThread::threadLoop()+14)
#06 pc 0x000000000000c0df /system/lib/libutils.so (android::thread::_threadLoop(void*)+166)
#07 pc 0x000000000007033f /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+82)
#08 pc 0x00000000000632f9 /system/lib/libc.so (__pthread_start(void*)+22)
#09 pc 0x000000000001de51 /system/lib/libc.so (__start_thread+24)

“Binder:7004_3” tid=10 Native
#00 pc 0x00000000000537fc /system/lib/libc.so (__ioctl+8)
#01 pc 0x00000000000219cf /system/lib/libc.so (ioctl+30)
#02 pc 0x000000000003d535 /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+204)
#03 pc 0x000000000003dacb /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+10)
#04 pc 0x000000000003e04b /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
#05 pc 0x0000000000054a4f /system/lib/libbinder.so (android::PoolThread::threadLoop()+14)
#06 pc 0x000000000000c0df /system/lib/libutils.so (android::thread::_threadLoop(void*)+166)
#07 pc 0x000000000007033f /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+82)
#08 pc 0x00000000000632f9 /system/lib/libc.so (__pthread_start(void*)+22)
#09 pc 0x000000000001de51 /system/lib/libc.so (__start_thread+24)

“Profile Saver” tid=11 Native
#00 pc 0x0000000000019cfc /system/lib/libc.so (syscall+28)
#01 pc 0x00000000000a6b63 /system/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+78)
#02 pc 0x000000000025d867 /system/lib/libart.so (art::ProfileSaver::Run()+358)
#03 pc 0x0000000000260119 /system/lib/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+52)
#04 pc 0x00000000000632f9 /system/lib/libc.so (__pthread_start(void*)+22)
#05 pc 0x000000000001de51 /system/lib/libc.so (__start_thread+24)

“pool-6-thread-1” tid=14 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“Firebase-Messaging-Init” tid=15 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1120)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:849)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run (zza.java:2)
at java.lang.Thread.run (Thread.java:764)

“Firebase-Messaging-Topics-Io” tid=16 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1120)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:849)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run (zza.java:2)
at java.lang.Thread.run (Thread.java:764)

“pool-13-thread-1” tid=17 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill (SynchronousQueue.java:461)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer (SynchronousQueue.java:362)
at java.util.concurrent.SynchronousQueue.poll (SynchronousQueue.java:937)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“ScionFrontendApi” tid=18 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2101)
at java.util.concurrent.LinkedBlockingQueue.poll (LinkedBlockingQueue.java:467)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“heartbeat-information-executor” tid=19 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2101)
at java.util.concurrent.LinkedBlockingQueue.poll (LinkedBlockingQueue.java:467)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“FirebaseInstanceId” tid=22 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1120)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:849)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at com.google.android.gms.common.util.concurrent.zza.run (zza.java:2)
at java.lang.Thread.run (Thread.java:764)

“pool-15-thread-1” tid=20 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill (SynchronousQueue.java:461)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer (SynchronousQueue.java:362)
at java.util.concurrent.SynchronousQueue.poll (SynchronousQueue.java:937)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“pool-14-thread-1” tid=21 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill (SynchronousQueue.java:461)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer (SynchronousQueue.java:362)
at java.util.concurrent.SynchronousQueue.poll (SynchronousQueue.java:937)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“pool-16-thread-1” tid=23 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill (SynchronousQueue.java:461)
at java.util.concurrent.SynchronousQueue$TransferStack.transfer (SynchronousQueue.java:362)
at java.util.concurrent.SynchronousQueue.poll (SynchronousQueue.java:937)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“GmsDynamite” tid=24 Waiting
at java.lang.Object.wait (Native method)
at com.google.android.gms.dynamite.zza.run (zza.java:2)

“AsyncTask #1” tid=25 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2101)
at java.util.concurrent.LinkedBlockingQueue.poll (LinkedBlockingQueue.java:467)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“AsyncTask #3” tid=26 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2101)
at java.util.concurrent.LinkedBlockingQueue.poll (LinkedBlockingQueue.java:467)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“AsyncTask #2” tid=28 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2101)
at java.util.concurrent.LinkedBlockingQueue.poll (LinkedBlockingQueue.java:467)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“WM.task-1” tid=29 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“pool-21-thread-1” tid=30 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“pool-21-thread-2” tid=31 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“YandexMobileAds.BaseController” tid=32 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“WM.task-2” tid=33 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“pool-22-thread-1” tid=34 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.LinkedBlockingQueue.take (LinkedBlockingQueue.java:442)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“queued-work-looper” tid=37 Native
#00 pc 0x00000000000536c0 /system/lib/libc.so (__epoll_pwait+20)
#01 pc 0x0000000000025e95 /system/lib/libc.so (epoll_wait+16)
#02 pc 0x000000000000f089 /system/lib/libutils.so (android::Looper::pollInner(int)+116)
#03 pc 0x000000000000ef97 /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+26)
#04 pc 0x00000000000b98ff /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24)
at android.os.MessageQueue.nativePollOnce (Native method)
at android.os.MessageQueue.next (MessageQueue.java:326)
at android.os.Looper.loop (Looper.java:160)
at android.os.HandlerThread.run (HandlerThread.java:65)

“pool-23-thread-1” tid=38 Timed Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2101)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1132)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:849)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
at java.lang.Thread.run (Thread.java:764)

“pool-24-thread-1” tid=39 Waiting
at java.lang.Object.wait (Native method)
at java.lang.Thread.parkFor$ (Thread.java:2137)
at sun.misc.Unsafe.park (Unsafe.java:358)
at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await (AbstractQueuedSynchronizer.java:2059)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:1120)
at java.util.concurrent.ScheduledThreadPoolExecutor$DelayedWorkQueue.take (ScheduledThreadPoolExecutor.java:849)
at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1092)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)

@Aurimas-Cernius in terms of % of affected players in Google Play Console, we see that this crash might be related to that kinda generic ANR: Many crashes Unity 2021.3.20f1 ThreadedStreamBuffer::ReadStreamingData
We’re currently trying to bring down memory consumption to maybe fix this.