Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: ANR triggered by thread waiting for a binder transaction #1488

Open
3 of 8 tasks
SdxCoder opened this issue Apr 24, 2024 · 1 comment
Open
3 of 8 tasks

[Bug]: ANR triggered by thread waiting for a binder transaction #1488

SdxCoder opened this issue Apr 24, 2024 · 1 comment

Comments

@SdxCoder
Copy link

Please check the following before submitting a new issue.

Please select affected platform(s)

  • Android
  • iOS
  • Linux
  • macOS
  • Web
  • Windows

Steps to reproduce

We have an application in production and we recieved this ANR from firebase crashlytics. We don't have clear steps to reproduce.
1- We are only using one method .i.e getting current location

Crash Log

Crashlytics - Stack trace

Application: cloud.solutions.pharmacy

Platform: android

Date: Thu Apr 18 2024 15:13:26 GMT-0600 (Mountain Daylight Time)



Signal Catcher (runnable):tid=3 systid=13109 
#00 pc 0x567274 libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool) + 140)
#01 pc 0x680184 libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool, BacktraceMap*, bool) const + 356)
#02 pc 0x69e6ec libart.so (art::DumpCheckpoint::Run(art::Thread*) + 916)
#03 pc 0x698124 libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*) + 524)
#04 pc 0x6972e4 libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, bool) + 1460)
#05 pc 0x696bec libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) + 1396)
#06 pc 0x641708 libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) + 208)
#07 pc 0x657240 libart.so (art::SignalCatcher::HandleSigQuit() + 1400)
#08 pc 0x656208 libart.so (art::SignalCatcher::Run(void*) + 344)
#09 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#10 pc 0x52c60 libc.so (__start_thread + 64)

main (native):tid=1 systid=13104 
#00 pc 0xa0524 libc.so (__ioctl + 4)
#01 pc 0x5aea4 libc.so (ioctl + 156)
#02 pc 0x45ae4 libbinder.so (android::IPCThreadState::talkWithDriver(bool) + 292)
#03 pc 0x46cbc libbinder.so (android::IPCThreadState::waitForResponse(android::Parcel*, int*) + 60)
#04 pc 0x46a08 libbinder.so (android::IPCThreadState::transact(int, unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 216)
#05 pc 0x3e950 libbinder.so (android::BpBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 192)
#06 pc 0x1687c0 libandroid_runtime.so (android_os_BinderProxy_transact(_JNIEnv*, _jobject*, int, _jobject*, _jobject*, int) + 152)
       at android.os.BinderProxy.transactNative(Native method)
       at android.os.BinderProxy.transact(BinderProxy.java:635)
       at android.app.IActivityManager$Stub$Proxy.bindIsolatedService(IActivityManager.java:7074)
       at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:2059)
       at android.app.ContextImpl.bindService(ContextImpl.java:1976)
       at android.content.ContextWrapper.bindService(ContextWrapper.java:829)
       at com.baseflow.geolocator.GeolocatorPlugin.bindForegroundService(GeolocatorPlugin.java)
       at com.baseflow.geolocator.GeolocatorPlugin.onAttachedToEngine(GeolocatorPlugin.java)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.add()
       at io.flutter.plugins.GeneratedPluginRegistrant.registerWith()
       at java.lang.reflect.Method.invoke(Native method)
       at io.flutter.embedding.engine.plugins.util.GeneratedPluginRegister.registerGeneratedPlugins()
       at io.flutter.embedding.engine.FlutterEngine.<init>()
       at io.flutter.embedding.engine.FlutterEngine.<init>()
       at io.flutter.embedding.engine.FlutterEngine.<init>()
       at io.flutter.embedding.engine.FlutterEngine.<init>()
       at io.flutter.embedding.engine.FlutterEngine.<init>()
       at io.flutter.embedding.engine.FlutterEngine.<init>()
       at io.flutter.plugins.firebase.messaging.FlutterFirebaseMessagingBackgroundExecutor.lambda$startBackgroundIsolate$0(FlutterFirebaseMessagingBackgroundExecutor.java)
       at android.os.Handler.handleCallback(Handler.java:938)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:226)
       at android.os.Looper.loop(Looper.java:313)
       at android.app.ActivityThread.main(ActivityThread.java:8751)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:571)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1135)

perfetto_hprof_listener (native):tid=6 systid=13111 
#00 pc 0xa0284 libc.so (read + 4)
#01 pc 0x211e8 libperfetto_hprof.so (void* std::__1::__thread_proxy<std::__1::tuple<std::__1::unique_ptr<std::__1::__thread_struct, std::__1::default_delete<std::__1::__thread_struct> >, ArtPlugin_Initialize::$_33> >(void*) + 280)
#02 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#03 pc 0x52c60 libc.so (__start_thread + 64)

Jit thread pool worker thread 0 (native):tid=7 systid=13112 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x28cccc libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*) + 148)
#02 pc 0x6a00e8 libart.so (art::ThreadPool::GetTask(art::Thread*) + 120)
#03 pc 0x69f4e8 libart.so (art::ThreadPoolWorker::Run() + 144)
#04 pc 0x69ef88 libart.so (art::ThreadPoolWorker::Callback(void*) + 192)
#05 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#06 pc 0x52c60 libc.so (__start_thread + 64)

HeapTaskDaemon (waiting):tid=9 systid=13113 
#00 pc 0x4d820 libc.so (syscall + 32)
#01 pc 0x28d0a4 libart.so (art::ConditionVariable::TimedWait(art::Thread*, long, int) + 172)
#02 pc 0x3b8784 libart.so (art::gc::TaskProcessor::GetTask(art::Thread*) + 364)
#03 pc 0x3b9154 libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*) + 92)
       at dalvik.system.VMRuntime.runHeapTasks(Native method)
       at java.lang.Daemons$HeapTaskDaemon.runInternal(Daemons.java:531)
       at java.lang.Daemons$Daemon.run(Daemons.java:139)
       at java.lang.Thread.run(Thread.java:920)

ReferenceQueueDaemon (waiting):tid=10 systid=13114 
       at java.lang.Object.wait(Native method)
       at java.lang.Object.wait(Object.java:442)
       at java.lang.Object.wait(Object.java:568)
       at java.lang.Daemons$ReferenceQueueDaemon.runInternal(Daemons.java:217)
       at java.lang.Daemons$Daemon.run(Daemons.java:139)
       at java.lang.Thread.run(Thread.java:920)

FinalizerWatchdogDaemon (timed waiting):tid=11 systid=13117 
       at java.lang.Thread.sleep(Native method)
       at java.lang.Thread.sleep(Thread.java:451)
       at java.lang.Thread.sleep(Thread.java:356)
       at java.lang.Daemons$FinalizerWatchdogDaemon.sleepForNanos(Daemons.java:390)
       at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization(Daemons.java:419)
       at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:325)
       at java.lang.Daemons$Daemon.run(Daemons.java:139)
       at java.lang.Thread.run(Thread.java:920)

FinalizerDaemon (waiting):tid=12 systid=13115 
       at java.lang.Object.wait(Native method)
       at java.lang.Object.wait(Object.java:442)
       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:190)
       at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:211)
       at java.lang.Daemons$FinalizerDaemon.runInternal(Daemons.java:273)
       at java.lang.Daemons$Daemon.run(Daemons.java:139)
       at java.lang.Thread.run(Thread.java:920)

Binder:13104_1 (native):tid=13 systid=13119 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x28cccc libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*) + 148)
#02 pc 0x46f28c libart.so (art::JNI<false>::CallBooleanMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list) + 492)
#03 pc 0xb62d0 libandroid_runtime.so (_JNIEnv::CallBooleanMethod(_jobject*, _jmethodID*, ...) + 120)
#04 pc 0x1675dc libandroid_runtime.so (JavaBBinder::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 156)
#05 pc 0x3c840 libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 248)
#06 pc 0x4631c libbinder.so (android::IPCThreadState::executeCommand(int) + 1028)
#07 pc 0x45e50 libbinder.so (android::IPCThreadState::getAndExecuteCommand() + 160)
#08 pc 0x466cc libbinder.so (android::IPCThreadState::joinThreadPool(bool) + 68)
#09 pc 0x6cf5c libbinder.so (android::PoolThread::threadLoop() + 380)
#10 pc 0x1223c libutils.so (android::Thread::_threadLoop(void*) + 260)
#11 pc 0xbf044 libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*) + 140)
#12 pc 0x11acc libutils.so (thread_data_t::trampoline(thread_data_t const*) + 404)
#13 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#14 pc 0x52c60 libc.so (__start_thread + 64)

Binder:13104_2 (native):tid=14 systid=13120 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x28cccc libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*) + 148)
#02 pc 0x46f28c libart.so (art::JNI<false>::CallBooleanMethodV(_JNIEnv*, _jobject*, _jmethodID*, std::__va_list) + 492)
#03 pc 0xb62d0 libandroid_runtime.so (_JNIEnv::CallBooleanMethod(_jobject*, _jmethodID*, ...) + 120)
#04 pc 0x1675dc libandroid_runtime.so (JavaBBinder::onTransact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 156)
#05 pc 0x3c840 libbinder.so (android::BBinder::transact(unsigned int, android::Parcel const&, android::Parcel*, unsigned int) + 248)
#06 pc 0x4631c libbinder.so (android::IPCThreadState::executeCommand(int) + 1028)
#07 pc 0x45e50 libbinder.so (android::IPCThreadState::getAndExecuteCommand() + 160)
#08 pc 0x466cc libbinder.so (android::IPCThreadState::joinThreadPool(bool) + 68)
#09 pc 0x6cf5c libbinder.so (android::PoolThread::threadLoop() + 380)
#10 pc 0x1223c libutils.so (android::Thread::_threadLoop(void*) + 260)
#11 pc 0xbf044 libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*) + 140)
#12 pc 0x11acc libutils.so (thread_data_t::trampoline(thread_data_t const*) + 404)
#13 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#14 pc 0x52c60 libc.so (__start_thread + 64)

Profile Saver (native):tid=15 systid=13124 
#00 pc 0x4d820 libc.so (syscall + 32)
#01 pc 0x28d0a4 libart.so (art::ConditionVariable::TimedWait(art::Thread*, long, int) + 172)
#02 pc 0x422ffc libart.so (art::ProfileSaver::Run() + 748)
#03 pc 0x428438 libart.so (art::ProfileSaver::RunProfileSaverThread(void*) + 176)
#04 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#05 pc 0x52c60 libc.so (__start_thread + 64)

ScionFrontendApi (timed waiting):tid=17 systid=13155 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2109)
       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:920)

GmsDynamite (waiting):tid=18 systid=13158 
       at java.lang.Object.wait(Native method)
       at java.lang.Object.wait(Object.java:442)
       at java.lang.Object.wait(Object.java:568)
       at com.google.android.gms.dynamite.zza.run(zza.java)

DefaultDispatcher-worker-2 (timed waiting):tid=19 systid=13168 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:353)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.park(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java)

DefaultDispatcher-worker-1 (timed waiting):tid=20 systid=13164 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:353)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.park(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java)

DefaultDispatcher-worker-3 (timed waiting):tid=21 systid=13170 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:353)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.park(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.java)
       at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.java)

Firebase Background Thread #0 (waiting):tid=22 systid=13283 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

Measurement Worker (native):tid=23 systid=13284 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x28cccc libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*) + 148)
#02 pc 0x744654 libart.so (art::GoToRunnable(art::Thread*) + 428)
#03 pc 0x744470 libart.so (art::JniMethodEnd(unsigned int, art::Thread*) + 24)
       at android.os.BinderProxy.transactNative(Native method)
       at android.os.BinderProxy.transact(BinderProxy.java:635)
       at android.app.IActivityManager$Stub$Proxy.bindIsolatedService(IActivityManager.java:7074)
       at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:2059)
       at android.app.ContextImpl.bindService(ContextImpl.java:1976)
       at android.content.ContextWrapper.bindService(ContextWrapper.java:829)
       at m.dk.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):103)
       at m.cv.d(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):52)
       at m.cm.c(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):183)
       at m.os.p(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):134)
       at m.os.C(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):52)
       at m.nd.s(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):101)
       at m.le.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):281)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at m.la.run(:com.google.android.gms.dynamite_measurementdynamite@[email protected] (190400-0):48)

Firebase-Messaging-Topics-Io (waiting):tid=24 systid=13291 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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)
       at java.lang.Thread.run(Thread.java:920)

pool-9-thread-1 (waiting):tid=25 systid=13287 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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:920)

Firebase-Messaging-Init (waiting):tid=26 systid=13288 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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)
       at java.lang.Thread.run(Thread.java:920)

Crashlytics Exception Handler1 (waiting):tid=27 systid=13346 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun()
       at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run()
       at java.lang.Thread.run(Thread.java:920)

Firebase Background Thread #1 (waiting):tid=28 systid=13345 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

FirebaseInstanceId (timed waiting):tid=29 systid=13351 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedNanos(AbstractQueuedSynchronizer.java:1063)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer.tryAcquireSharedNanos(AbstractQueuedSynchronizer.java:1358)
       at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:278)
       at com.google.android.gms.tasks.zzad.zzb(zzad.java)
       at com.google.android.gms.tasks.Tasks.await(Tasks.java)
       at com.google.firebase.iid.FirebaseInstanceId.awaitTask()
       at com.google.firebase.iid.FirebaseInstanceId.getToken()
       at com.google.firebase.iid.FirebaseInstanceId.blockingGetMasterToken()
       at com.google.firebase.iid.SyncTask.maybeRefreshToken()
       at com.google.firebase.iid.SyncTask.run()
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at com.google.android.gms.common.util.concurrent.zza.run(zza.java)
       at java.lang.Thread.run(Thread.java:920)

firebase-iid-executor (timed waiting):tid=30 systid=13426 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2109)
       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 com.google.android.gms.common.util.concurrent.zza.run(zza.java)
       at java.lang.Thread.run(Thread.java:920)

Firebase Background Thread #2 (waiting):tid=31 systid=13427 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

Firebase Background Thread #3 (waiting):tid=32 systid=13441 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

com.google.firebase.crashlytics.startup1 (waiting):tid=33 systid=13409 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun()
       at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run()
       at java.lang.Thread.run(Thread.java:920)

awaitEvenIfOnMainThread task continuation executor1 (waiting):tid=34 systid=13478 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun()
       at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run()
       at java.lang.Thread.run(Thread.java:920)

Firebase Blocking Thread #0 (timed waiting):tid=35 systid=13516 
       at sun.misc.Unsafe.park(Native method)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

Firebase Blocking Thread #1 (timed waiting):tid=36 systid=13536 
       at sun.misc.Unsafe.park(Native method)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

Firebase Blocking Thread #2 (timed waiting):tid=38 systid=13560 
       at sun.misc.Unsafe.park(Native method)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

Firebase Blocking Thread #3 (timed waiting):tid=37 systid=13604 
       at sun.misc.Unsafe.park(Native method)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

OkHttp ConnectionPool (timed waiting):tid=40 systid=13647 
       at java.lang.Object.wait(Native method)
       at com.android.okhttp.ConnectionPool$1.run(ConnectionPool.java:106)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:920)

Firebase Blocking Thread #4 (timed waiting):tid=41 systid=13630 
       at sun.misc.Unsafe.park(Native method)
       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 com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java)
       at java.lang.Thread.run(Thread.java:920)

pool-22-thread-1 (waiting):tid=39 systid=13705 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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:920)

MessengerIpcClient (timed waiting):tid=42 systid=13736 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2109)
       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 com.google.android.gms.common.util.concurrent.zza.run(zza.java)
       at java.lang.Thread.run(Thread.java:920)

AsyncTask #1 (native):tid=2 systid=13786 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x28cccc libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*) + 148)
#02 pc 0x744654 libart.so (art::GoToRunnable(art::Thread*) + 428)
#03 pc 0x744470 libart.so (art::JniMethodEnd(unsigned int, art::Thread*) + 24)
       at android.os.BinderProxy.transactNative(Native method)
       at android.os.BinderProxy.transact(BinderProxy.java:635)
       at android.app.IActivityManager$Stub$Proxy.bindIsolatedService(IActivityManager.java:7074)
       at android.app.ContextImpl.bindServiceCommon(ContextImpl.java:2059)
       at android.app.ContextImpl.bindService(ContextImpl.java:1976)
       at android.content.ContextWrapper.bindService(ContextWrapper.java:829)
       at com.facebook.internal.AttributionIdentifiers.getAndroidIdViaService(AttributionIdentifiers.java)
       at com.facebook.internal.AttributionIdentifiers.getAndroidId(AttributionIdentifiers.java)
       at com.facebook.internal.AttributionIdentifiers.getAttributionIdentifiers(AttributionIdentifiers.java)
       at com.facebook.FacebookSdk.publishInstallAndWaitForResponse(FacebookSdk.java)
       at com.facebook.FacebookSdk$9.run(FacebookSdk.java)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:920)

AsyncTask #3 (waiting):tid=4 systid=13788 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       at java.util.concurrent.LinkedBlockingDeque.takeFirst(LinkedBlockingDeque.java:492)
       at java.util.concurrent.LinkedBlockingDeque.take(LinkedBlockingDeque.java:680)
       at com.facebook.internal.AttributionIdentifiers$GoogleAdServiceConnection.getBinder(AttributionIdentifiers.java)
       at com.facebook.internal.AttributionIdentifiers.getAndroidIdViaService(AttributionIdentifiers.java)
       at com.facebook.internal.AttributionIdentifiers.getAndroidId(AttributionIdentifiers.java)
       at com.facebook.internal.AttributionIdentifiers.getAttributionIdentifiers(AttributionIdentifiers.java)
       at com.facebook.internal.AttributionIdentifiers.isTrackingLimited(AttributionIdentifiers.java)
       at com.facebook.appevents.aam.MetadataIndexer$1.run(MetadataIndexer.java)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:920)

AsyncTask #2 (timed waiting):tid=5 systid=13787 
       at sun.misc.Unsafe.park(Native method)
       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:920)

AsyncTask #5 (timed waiting):tid=8 systid=13806 
       at sun.misc.Unsafe.park(Native method)
       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:920)

pool-27-thread-1 (timed waiting):tid=16 systid=13812 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2109)
       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:920)

pool-28-thread-1 (waiting):tid=43 systid=13814 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2067)
       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 java.lang.Thread.run(Thread.java:920)

AsyncTask #4 (timed waiting):tid=44 systid=13799 
       at sun.misc.Unsafe.park(Native method)
       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:920)

queued-work-looper (native):tid=45 systid=13831 
#00 pc 0xa14e8 libc.so (__epoll_pwait + 8)
#01 pc 0x168d4 libutils.so (android::Looper::pollInner(int) + 180)
#02 pc 0x167b8 libutils.so (android::Looper::pollOnce(int, int*, int*, void**) + 112)
#03 pc 0x153f0c libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int) + 44)
       at android.os.MessageQueue.nativePollOnce(Native method)
       at android.os.MessageQueue.next(MessageQueue.java:335)
       at android.os.Looper.loopOnce(Looper.java:186)
       at android.os.Looper.loop(Looper.java:313)
       at android.os.HandlerThread.run(HandlerThread.java:67)

Okio Watchdog (timed waiting):tid=46 systid=13844 
       at java.lang.Object.wait(Native method)
       at com.android.okhttp.okio.AsyncTimeout.awaitTimeout(AsyncTimeout.java:325)
       at com.android.okhttp.okio.AsyncTimeout.access$000(AsyncTimeout.java:42)
       at com.android.okhttp.okio.AsyncTimeout$Watchdog.run(AsyncTimeout.java:288)

flutter-worker-1 (timed waiting):tid=47 systid=13857 
       at sun.misc.Unsafe.park(Native method)
       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:920)

flutter-worker-0 (timed waiting):tid=48 systid=13856 
       at sun.misc.Unsafe.park(Native method)
       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:920)

pool-24-thread-1 (timed waiting):tid=50 systid=13858 
       at sun.misc.Unsafe.park(Native method)
       at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:230)
       at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos(AbstractQueuedSynchronizer.java:2109)
       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:920)

flutter-worker-2 (timed waiting):tid=49 systid=13877 
       at sun.misc.Unsafe.park(Native method)
       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:920)

AudioPortEventHandler (native):tid=51 systid=13925 
#00 pc 0xa14e8 libc.so (__epoll_pwait + 8)
#01 pc 0x168d4 libutils.so (android::Looper::pollInner(int) + 180)
#02 pc 0x167b8 libutils.so (android::Looper::pollOnce(int, int*, int*, void**) + 112)
#03 pc 0x153f0c libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int) + 44)
       at android.os.MessageQueue.nativePollOnce(Native method)
       at android.os.MessageQueue.next(MessageQueue.java:335)
       at android.os.Looper.loopOnce(Looper.java:186)
       at android.os.Looper.loop(Looper.java:313)
       at android.os.HandlerThread.run(HandlerThread.java:67)

com.it_nomads.fluttersecurestorage.worker (native):tid=52 systid=13926 
#00 pc 0xa14e8 libc.so (__epoll_pwait + 8)
#01 pc 0x168d4 libutils.so (android::Looper::pollInner(int) + 180)
#02 pc 0x167b8 libutils.so (android::Looper::pollOnce(int, int*, int*, void**) + 112)
#03 pc 0x153f0c libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long, int) + 44)
       at android.os.MessageQueue.nativePollOnce(Native method)
       at android.os.MessageQueue.next(MessageQueue.java:335)
       at android.os.Looper.loopOnce(Looper.java:186)
       at android.os.Looper.loop(Looper.java:313)
       at android.os.HandlerThread.run(HandlerThread.java:67)

1.ui (unknown):tid=13908 systid=13908 
#00 pc 0xa14e8 libc.so (__epoll_pwait + 8)
#01 pc 0x168d4 libutils.so (android::Looper::pollInner(int) + 180)
#02 pc 0x167b8 libutils.so (android::Looper::pollOnce(int, int*, int*, void**) + 112)
#03 pc 0x17284 libandroid.so (ALooper_pollOnce + 100)
#04 pc 0x3a2bb4 split_config.arm64_v8a.apk!libflutter.so + 17756160
#05 pc 0x3a0ac8 split_config.arm64_v8a.apk!libflutter.so + 17756160
#06 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#07 pc 0x52c60 libc.so (__start_thread + 64)

1.raster (unknown):tid=13909 systid=13909 
#00 pc 0xa14e8 libc.so (__epoll_pwait + 8)
#01 pc 0x168d4 libutils.so (android::Looper::pollInner(int) + 180)
#02 pc 0x167b8 libutils.so (android::Looper::pollOnce(int, int*, int*, void**) + 112)
#03 pc 0x17284 libandroid.so (ALooper_pollOnce + 100)
#04 pc 0x3a2bb4 split_config.arm64_v8a.apk!libflutter.so + 17756160
#05 pc 0x3a0ac8 split_config.arm64_v8a.apk!libflutter.so + 17756160
#06 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#07 pc 0x52c60 libc.so (__start_thread + 64)

1.io (unknown):tid=13910 systid=13910 
#00 pc 0xa14e8 libc.so (__epoll_pwait + 8)
#01 pc 0x168d4 libutils.so (android::Looper::pollInner(int) + 180)
#02 pc 0x167b8 libutils.so (android::Looper::pollOnce(int, int*, int*, void**) + 112)
#03 pc 0x17284 libandroid.so (ALooper_pollOnce + 100)
#04 pc 0x3a2bb4 split_config.arm64_v8a.apk!libflutter.so + 17756160
#05 pc 0x3a0ac8 split_config.arm64_v8a.apk!libflutter.so + 17756160
#06 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#07 pc 0x52c60 libc.so (__start_thread + 64)

io.worker.1 (unknown):tid=13913 systid=13913 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0xb3da0 libc.so (pthread_cond_wait + 80)
#03 pc 0x38ca10 split_config.arm64_v8a.apk!libflutter.so + 17756160
#04 pc 0x39c5a0 split_config.arm64_v8a.apk!libflutter.so + 17756160
#05 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#06 pc 0x52c60 libc.so (__start_thread + 64)

io.worker.2 (unknown):tid=13914 systid=13914 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0xb3da0 libc.so (pthread_cond_wait + 80)
#03 pc 0x38ca10 split_config.arm64_v8a.apk!libflutter.so + 17756160
#04 pc 0x39c5a0 split_config.arm64_v8a.apk!libflutter.so + 17756160
#05 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#06 pc 0x52c60 libc.so (__start_thread + 64)

io.worker.3 (unknown):tid=13915 systid=13915 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0xb3da0 libc.so (pthread_cond_wait + 80)
#03 pc 0x38ca10 split_config.arm64_v8a.apk!libflutter.so + 17756160
#04 pc 0x39c5a0 split_config.arm64_v8a.apk!libflutter.so + 17756160
#05 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#06 pc 0x52c60 libc.so (__start_thread + 64)

io.worker.4 (unknown):tid=13916 systid=13916 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0xb3da0 libc.so (pthread_cond_wait + 80)
#03 pc 0x38ca10 split_config.arm64_v8a.apk!libflutter.so + 17756160
#04 pc 0x39c5a0 split_config.arm64_v8a.apk!libflutter.so + 17756160
#05 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#06 pc 0x52c60 libc.so (__start_thread + 64)

dart:io EventHa (unknown):tid=13917 systid=13917 
#00 pc 0xa14e8 libc.so (__epoll_pwait + 8)
#01 pc 0x6ff918 split_config.arm64_v8a.apk!libflutter.so + 17756160
#02 pc 0x730210 split_config.arm64_v8a.apk!libflutter.so + 17756160
#03 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#04 pc 0x52c60 libc.so (__start_thread + 64)

mali-mem-purge (unknown):tid=13919 systid=13919 
#00 pc 0x4d820 libc.so (syscall + 32)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0xb3e6c libc.so (pthread_cond_timedwait + 140)
#03 pc 0x18d617c libGLES_mali.so (osup_sync_object_timedwait + 180)
#04 pc 0x18c0e0c libGLES_mali.so (cmemp_hoard_purge_thread + 196)
#05 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#06 pc 0x52c60 libc.so (__start_thread + 64)

mali-utility-wo (unknown):tid=13920 systid=13920 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0x5f26c libc.so (sem_wait + 132)
#03 pc 0x17ff2d4 libGLES_mali.so (cmarp_utility_thread + 148)
#04 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#05 pc 0x52c60 libc.so (__start_thread + 64)

mali-utility-wo (unknown):tid=13921 systid=13921 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0x5f26c libc.so (sem_wait + 132)
#03 pc 0x17ff2d4 libGLES_mali.so (cmarp_utility_thread + 148)
#04 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#05 pc 0x52c60 libc.so (__start_thread + 64)

mali-utility-wo (unknown):tid=13922 systid=13922 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0x5f26c libc.so (sem_wait + 132)
#03 pc 0x17ff2d4 libGLES_mali.so (cmarp_utility_thread + 148)
#04 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#05 pc 0x52c60 libc.so (__start_thread + 64)

mali-utility-wo (unknown):tid=13923 systid=13923 
#00 pc 0x4d81c libc.so (syscall + 28)
#01 pc 0x521b0 libc.so (__futex_wait_ex(void volatile*, bool, int, bool, timespec const*) + 144)
#02 pc 0x5f26c libc.so (sem_wait + 132)
#03 pc 0x17ff2d4 libGLES_mali.so (cmarp_utility_thread + 148)
#04 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#05 pc 0x52c60 libc.so (__start_thread + 64)

mali-cmar-backe (unknown):tid=13924 systid=13924 
#00 pc 0xa15e8 libc.so (__ppoll + 8)
#01 pc 0x5d6bc libc.so (poll + 92)
#02 pc 0x17ff5cc libGLES_mali.so (cmarp_backend_thread + 364)
#03 pc 0xb4b38 libc.so (__pthread_start(void*) + 264)
#04 pc 0x52c60 libc.so (__start_thread + 64)

Expected results

ANR should not be triggered.

Actual results

Binder call may be taking too long, causing the main thread to wait, and triggering the ANR.

Code sample

Code sample
final GeolocatorPlatform geolocator = GeolocatorPlatform.instance;
  Future<Position> getCurrentPosition() async {
    return geolocator.getCurrentPosition(
      locationSettings: const LocationSettings(accuracy: LocationAccuracy.high),
    );
  }

Screenshots or video

Screenshots or video demonstration

[Upload media here]

Version

geolocator: ^10.1.0

Flutter Doctor output

Doctor output
[✓] Flutter (Channel stable, 3.16.9, on macOS 14.4 23E214 darwin-arm64, locale
    en-CA)
    • Flutter version 3.16.9 on channel stable at /Users/saadahmed/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 41456452f2 (3 months ago), 2024-01-25 10:06:23 -0800
    • Engine revision f40e976bed
    • Dart version 3.2.6
    • DevTools version 2.28.5

[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
    • Android SDK at /Users/saadahmed/Library/Android/sdk
    • Platform android-34, build-tools 34.0.0
    • Java binary at: /Applications/Android
      Studio.app/Contents/jbr/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      17.0.9+0-17.0.9b1087.7-11185874)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 15.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Build 15C500b
    • CocoaPods version 1.15.0

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 2023.2)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
      🔨 https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build
      17.0.9+0-17.0.9b1087.7-11185874)

[✓] VS Code (version 1.88.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.86.0

[✓] Connected device (4 available)            
    • macOS (desktop)          • macos                     • darwin-arm64   •
      macOS 14.4 23E214 darwin-arm64
    • Chrome (web)             • chrome                    • web-javascript •
      Google Chrome 124.0.6367.79

[✓] Network resources
    • All expected network resources are available.

• No issues found!
@rvanderlinden
Copy link

rvanderlinden commented Oct 30, 2024

Are you still receiving this issue @SdxCoder ?

I'm having a similar issue; an ANR when stopping location updates using geolocator ^13.0.1 on Android.
I don't exactly know how to reproduce it, which doesn't help. But I was hoping others are experiencing something similar.

Crash log
main (native):tid=1 systid=28976 
#00 pc 0xb7698 libc.so (__ioctl + 8) (BuildId: a87908b48b368e6282bcc9f34bcfc28c)
#01 pc 0x70668 libc.so (ioctl + 156) (BuildId: a87908b48b368e6282bcc9f34bcfc28c)
#02 pc 0x72054 libbinder.so (android::IPCThreadState::transact + 1136) (BuildId: 3addbb7cd771af5c6944aac9adee7bd0)
#03 pc 0x71930 libbinder.so (android::BpBinder::transact + 172) (BuildId: 3addbb7cd771af5c6944aac9adee7bd0)
#04 pc 0x197b88 libandroid_runtime.so (android_os_BinderProxy_transact + 152) (BuildId: c741d6d101847b558f8cdb0633f23335)
#05 pc 0x377030 libart.so (art_quick_generic_jni_trampoline + 144) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#06 pc 0x3605a4 libart.so (art_quick_invoke_stub + 612) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#07 pc 0x4906b4 libart.so (bool art::interpreter::DoCall<false> + 1248) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#08 pc 0x509f94 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 780) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#09 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#10 pc 0x1c4f90 framework.jar (android.os.BinderProxy.transact)
#11 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#12 pc 0x37c560 libart.so (artQuickToInterpreterBridge + 672) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#13 pc 0x377168 libart.so (art_quick_to_interpreter_bridge + 88) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#14 pc 0x58c14c libart.so (nterp_helper + 9292) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#15 pc 0x35a1e6 framework.jar (android.location.ILocationManager$Stub$Proxy.unregisterGnssNmeaCallback + 50)
#16 pc 0x58bb20 libart.so (nterp_helper + 7712) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#17 pc 0x35cb64 framework.jar (android.location.LocationManager$GnssNmeaTransportManager.unregisterTransport + 8)
#18 pc 0x58ac54 libart.so (nterp_helper + 3924) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#19 pc 0x35cb80 framework.jar (android.location.LocationManager$GnssNmeaTransportManager.unregisterTransport + 4)
#20 pc 0x58ac54 libart.so (nterp_helper + 3924) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#21 pc 0x434f38 framework.jar (com.android.internal.listeners.ListenerTransportManager.removeListener + 48)
#22 pc 0x58ac54 libart.so (nterp_helper + 3924) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#23 pc 0x35ea90 framework.jar (android.location.LocationManager.removeNmeaListener + 4)
#24 pc 0x3605a4 libart.so (art_quick_invoke_stub + 612) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#25 pc 0x4906b4 libart.so (bool art::interpreter::DoCall<false> + 1248) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#26 pc 0x509f94 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 780) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#27 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#28 pc 0x7440 (com.baseflow.geolocator.location.NmeaClient.stop)
#29 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#30 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#31 pc 0x509f94 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 780) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#32 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#33 pc 0x6038 (com.baseflow.geolocator.location.FusedLocationClient.stopPositionUpdates)
#34 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#35 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#36 pc 0x50aca4 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 4124) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#37 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#38 pc 0x6238 (com.baseflow.geolocator.location.GeolocationManager.stopPositionUpdates)
#39 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#40 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#41 pc 0x509f94 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 780) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#42 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#43 pc 0x47b8 (com.baseflow.geolocator.StreamHandlerImpl.disposeListeners)
#44 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#45 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#46 pc 0x50a5d4 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 2380) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#47 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#48 pc 0x4880 (com.baseflow.geolocator.StreamHandlerImpl.onCancel)
#49 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#50 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#51 pc 0x50aca4 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 4124) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#52 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#53 pc 0x2dc7cc (io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onCancel)
#54 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#55 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#56 pc 0x50a5d4 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 2380) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#57 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#58 pc 0x2dc9d8 (io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onMessage)
#59 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#60 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#61 pc 0x50aca4 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 4124) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#62 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#63 pc 0x2cf3a8 (io.flutter.embedding.engine.dart.DartMessenger.invokeHandler)
#64 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#65 pc 0x37c560 libart.so (artQuickToInterpreterBridge + 672) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#66 pc 0x377168 libart.so (art_quick_to_interpreter_bridge + 88) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#67 pc 0x2084c10 memfd:jit-cache (io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger + 656)
#68 pc 0x3605a4 libart.so (art_quick_invoke_stub + 612) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#69 pc 0x3ae360 libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge + 320) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#70 pc 0x398584 libart.so (bool art::interpreter::DoCall<true> + 1488) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#71 pc 0x50cf2c libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 12964) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#72 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#73 pc 0x2cebd8 (io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run)
#74 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#75 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#76 pc 0x50aca4 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 4124) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#77 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#78 pc 0x1d6bb4 framework.jar (android.os.Handler.handleCallback)
#79 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#80 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#81 pc 0x50a2f8 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 1648) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#82 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#83 pc 0x1d69fc framework.jar (android.os.Handler.dispatchMessage)
#84 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#85 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#86 pc 0x509f94 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 780) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#87 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#88 pc 0x1fbe08 framework.jar (android.os.Looper.loopOnce)
#89 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#90 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#91 pc 0x50a2f8 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 1648) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#92 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#93 pc 0x1fc57c framework.jar (android.os.Looper.loop)
#94 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#95 pc 0x49120c libart.so (bool art::interpreter::DoCall<false> + 4152) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#96 pc 0x50a2f8 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 1648) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#97 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#98 pc 0x1c3970 framework.jar (android.app.ActivityThread.main)
#99 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0100 pc 0x37c560 libart.so (artQuickToInterpreterBridge + 672) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0101 pc 0x377168 libart.so (art_quick_to_interpreter_bridge + 88) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0102 pc 0x360880 libart.so (art_quick_invoke_static_stub + 640) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0103 pc 0x26a904 libart.so (_jobject* art::InvokeMethod<8> + 780) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0104 pc 0x26a5e8 libart.so (art::Method_invoke  + 32) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0105 pc 0x377030 libart.so (art_quick_generic_jni_trampoline + 144) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0106 pc 0x3605a4 libart.so (art_quick_invoke_stub + 612) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0107 pc 0x4906b4 libart.so (bool art::interpreter::DoCall<false> + 1248) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0108 pc 0x509f94 libart.so (void art::interpreter::ExecuteSwitchImplCpp<false> + 780) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0109 pc 0x3797d8 libart.so (ExecuteSwitchImplAsm + 8) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0110 pc 0x50cd00 framework.jar (com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run)
#0111 pc 0x37cde0 libart.so (art::interpreter::Execute  + 356) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0112 pc 0x37c560 libart.so (artQuickToInterpreterBridge + 672) (BuildId: b10f5696fea1b32039b162aef3850ed3)
#0113 pc 0x377168 libart.so (art_quick_to_interpreter_bridge + 88) (BuildId: b10f5696fea1b32039b162aef3850ed3)
       at android.os.BinderProxy.transactNative(Native method)
       at android.os.BinderProxy.transact(BinderProxy.java:584)
       at android.location.ILocationManager$Stub$Proxy.unregisterGnssNmeaCallback(ILocationManager.java:1639)
       at android.location.LocationManager$GnssNmeaTransportManager.unregisterTransport(LocationManager.java:3117)
       at android.location.LocationManager$GnssNmeaTransportManager.unregisterTransport(LocationManager.java:3099)
       at com.android.internal.listeners.ListenerTransportManager.removeListener(ListenerTransportManager.java:95)
       at android.location.LocationManager.removeNmeaListener(LocationManager.java:2622)
       at com.baseflow.geolocator.location.NmeaClient.stop(NmeaClient.java:91)
       at com.baseflow.geolocator.location.FusedLocationClient.stopPositionUpdates(FusedLocationClient.java:279)
       at com.baseflow.geolocator.location.GeolocationManager.stopPositionUpdates(GeolocationManager.java:69)
       at com.baseflow.geolocator.StreamHandlerImpl.disposeListeners(StreamHandlerImpl.java:160)
       at com.baseflow.geolocator.StreamHandlerImpl.onCancel(StreamHandlerImpl.java:148)
       at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onCancel(EventChannel.java:231)
       at io.flutter.plugin.common.EventChannel$IncomingStreamRequestHandler.onMessage(EventChannel.java:199)
       at io.flutter.embedding.engine.dart.DartMessenger.invokeHandler(DartMessenger.java:292)
       at io.flutter.embedding.engine.dart.DartMessenger.lambda$dispatchMessageToQueue$0$io-flutter-embedding-engine-dart-DartMessenger(DartMessenger.java:319)
       at io.flutter.embedding.engine.dart.DartMessenger$$ExternalSyntheticLambda0.run(D8$$SyntheticClass)
       at android.os.Handler.handleCallback(Handler.java:958)
       at android.os.Handler.dispatchMessage(Handler.java:99)
       at android.os.Looper.loopOnce(Looper.java:205)
       at android.os.Looper.loop(Looper.java:294)
       at android.app.ActivityThread.main(ActivityThread.java:8177)
       at java.lang.reflect.Method.invoke(Native method)
       at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:552)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:971)
Code sample
      StreamSubscription<Position>? _geoLocatorPositionListener = Geolocator.getPositionStream(
        locationSettings: const LocationSettings(),
      ).listen(_locationDidUpdate);

      ...

    _geoLocatorPositionListener?.cancel();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants