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

[ANR Android] at Bugsnag.start() with BackgroundTaskService #2031

Open
fernan88 opened this issue May 16, 2024 · 5 comments
Open

[ANR Android] at Bugsnag.start() with BackgroundTaskService #2031

fernan88 opened this issue May 16, 2024 · 5 comments
Labels
needs discussion Requires internal analysis/discussion

Comments

@fernan88
Copy link

Describe the bug

This ANR happens in the background when receiving a push notification and the application onCreate() method is triggered. It occurs in all versions of Android and with version 6.5.0 of the library as well. Would you help us? Thank you

Steps to reproduce

Seems to happen in background when a notification is received, by example.

Environment

  • Android version: 9, 10,11,12,13..
  • Bugsnag version: 6.5.0
  • Emulator or physical device: Physical device

StackTrace

MainThread:

"main" tid=1 Waiting
  at jdk.internal.misc.Unsafe.park (Native method)
  at java.util.concurrent.locks.LockSupport.park (LockSupport.java:211)
  at java.util.concurrent.FutureTask.awaitDone (FutureTask.java:447)
  at java.util.concurrent.FutureTask.get (FutureTask.java:190)
  at com.bugsnag.android.internal.BackgroundTaskService$SafeFuture.get (BackgroundTaskService.kt:202)
  at com.bugsnag.android.internal.dag.DependencyModule.resolveDependencies (DependencyModule.kt:34)
  at com.bugsnag.android.Client.<init> (Client.java:203)
  at com.bugsnag.android.Bugsnag.start (Bugsnag.java:64)
  at com.etermax.errortracker.tracker.BugsnagTracker.initialize (BugsnagTracker.kt:20)
  at com.etermax.errortracker.ErrorTracker.initialize (ErrorTracker.kt:20)
  at com.etermax.preguntados.BasePreguntadosApplication.initializeErrorTracker (BasePreguntadosApplication.java)
  at com.etermax.preguntados.BasePreguntadosApplication.onCreate (BasePreguntadosApplication.java:182)
  at com.etermax.preguntados.PreguntadosApplication.onCreate (PreguntadosApplication.kt)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1316)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:7698)
  at android.app.ActivityThread.-$$Nest$mhandleBindApplication (unavailable)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2478)
  at android.os.Handler.dispatchMessage (Handler.java:106)
  at android.os.Looper.loopOnce (Looper.java:230)
  at android.os.Looper.loop (Looper.java:319)
  at android.app.ActivityThread.main (ActivityThread.java:8906)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:608)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1103)
@clr182
Copy link

clr182 commented May 21, 2024

Hi @fernan88

From our understanding, This may be occuring as a push notification is received, the Play Services can ask the OS to restart the app in order to receive the notification.

As to why your application is ANRing, we cannot tell based on the stack trace shared above. We believe the actual fault should be viewable on another background thread.

Would it be possible for you to share the rest of the threads stack traces that include Bugsnag?

@clr182 clr182 added the awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. label May 21, 2024
@fernan88
Copy link
Author

Hi @clr182 thank you for your response and sorry for the delay. I am attaching the requested information:

"main" tid=1 Waiting
  at sun.misc.Unsafe.park (Native method)
  at java.util.concurrent.locks.LockSupport.park (LockSupport.java:190)
  at java.util.concurrent.FutureTask.awaitDone (FutureTask.java:450)
  at java.util.concurrent.FutureTask.get (FutureTask.java:192)
  at com.bugsnag.android.internal.BackgroundTaskService$SafeFuture.get (BackgroundTaskService.kt:202)
  at com.bugsnag.android.internal.dag.DependencyModule.resolveDependencies (DependencyModule.kt)
  at com.bugsnag.android.Client.<init> (Client.java)
  at com.bugsnag.android.Bugsnag.start (Bugsnag.java:64)
  at com.etermax.errortracker.tracker.BugsnagTracker.initialize (BugsnagTracker.kt)
  at com.etermax.errortracker.ErrorTracker.initialize (ErrorTracker.kt)
  at com.etermax.preguntados.BasePreguntadosApplication.initializeErrorTracker (BasePreguntadosApplication.java)
  at com.etermax.preguntados.BasePreguntadosApplication.onCreate (BasePreguntadosApplication.java)
  at com.etermax.preguntados.PreguntadosApplication.onCreate (PreguntadosApplication.kt)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1211)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6673)
  at android.app.ActivityThread.access$1400 (ActivityThread.java:233)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1995)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:241)
  at android.app.ActivityThread.main (ActivityThread.java:7582)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:941)

"Crashlytics Exception Handler1" tid=6 Runnable
  at com.google.firebase.crashlytics.internal.persistence.FileStore.getSessionDir (FileStore.java)
  at com.google.firebase.crashlytics.internal.persistence.FileStore.getSessionFiles (FileStore.java)
  at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.synthesizeReport (CrashlyticsReportPersistence.java)
  at com.google.firebase.crashlytics.internal.persistence.CrashlyticsReportPersistence.finalizeReports (CrashlyticsReportPersistence.java)
  at com.google.firebase.crashlytics.internal.common.SessionReportingCoordinator.finalizeSessions (SessionReportingCoordinator.java)
  at com.google.firebase.crashlytics.internal.common.CrashlyticsController.doCloseSessions (CrashlyticsController.java:631)
  at com.google.firebase.crashlytics.internal.common.CrashlyticsController.finalizeSessions (CrashlyticsController.java)
  at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.doBackgroundInitialization (CrashlyticsCore.java)
  at com.google.firebase.crashlytics.internal.common.CrashlyticsCore.access$000 (CrashlyticsCore.java)
  at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$1.call (CrashlyticsCore.java:231)
  at com.google.firebase.crashlytics.internal.common.CrashlyticsCore$1.call (CrashlyticsCore.java:228)
  at com.google.firebase.crashlytics.internal.common.Utils.lambda$callTask$3 (Utils.java)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1167)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
  at com.google.firebase.crashlytics.internal.common.ExecutorUtils$1$1.onRun (ExecutorUtils.java)
  at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run (BackgroundPriorityRunnable.java)
  at java.lang.Thread.run (Thread.java:919)

"Signal Catcher" tid=7 Runnable
  #00  pc 0x000000000040f3d4  /apex/com.android.runtime/lib64/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 0x00000000004f45b0  /apex/com.android.runtime/lib64/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+508)
  #02  pc 0x000000000050e984  /apex/com.android.runtime/lib64/libart.so (art::DumpCheckpoint::Run(art::Thread*)+820)
  #03  pc 0x0000000000507a24  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+456)
  #04  pc 0x0000000000506e7c  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1816)
  #05  pc 0x0000000000506660  /apex/com.android.runtime/lib64/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+860)
  #06  pc 0x00000000004c2690  /apex/com.android.runtime/lib64/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+196)
  #07  pc 0x00000000004d6400  /apex/com.android.runtime/lib64/libart.so (art::SignalCatcher::HandleSigQuit()+1464)
  #08  pc 0x00000000004d5428  /apex/com.android.runtime/lib64/libart.so (art::SignalCatcher::Run(void*)+252)
  #09  pc 0x00000000000e205c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #10  pc 0x0000000000084af0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

"Jit thread pool worker thread 0" tid=2 Native
  #00  pc 0x000000000008027c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #01  pc 0x000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #02  pc 0x00000000005103dc  /apex/com.android.runtime/lib64/libart.so (art::ThreadPool::GetTask(art::Thread*)+260)
  #03  pc 0x000000000050f76c  /apex/com.android.runtime/lib64/libart.so (art::ThreadPoolWorker::Run()+144)
  #04  pc 0x000000000050f230  /apex/com.android.runtime/lib64/libart.so (art::ThreadPoolWorker::Callback(void*)+148)
  #05  pc 0x00000000000e205c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #06  pc 0x0000000000084af0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

"HeapTaskDaemon" tid=8 Waiting
  #00  pc 0x000000000008027c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #01  pc 0x000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #02  pc 0x000000000028d2a0  /apex/com.android.runtime/lib64/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+444)
  #03  pc 0x000000000028db38  /apex/com.android.runtime/lib64/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+92)
  at dalvik.system.VMRuntime.runHeapTasks (Native method)
  at java.lang.Daemons$HeapTaskDaemon.runInternal (Daemons.java:523)
  at java.lang.Daemons$Daemon.run (Daemons.java:137)
  at java.lang.Thread.run (Thread.java:919)

"ReferenceQueueDaemon" tid=9 Waiting
  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:215)
  at java.lang.Daemons$Daemon.run (Daemons.java:137)
  at java.lang.Thread.run (Thread.java:919)

"FinalizerDaemon" tid=10 Waiting
  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:271)
  at java.lang.Daemons$Daemon.run (Daemons.java:137)
  at java.lang.Thread.run (Thread.java:919)

"FinalizerWatchdogDaemon" tid=11 Waiting
  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$FinalizerWatchdogDaemon.sleepUntilNeeded (Daemons.java:339)
  at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal (Daemons.java:319)
  at java.lang.Daemons$Daemon.run (Daemons.java:137)
  at java.lang.Thread.run (Thread.java:919)

"Binder:23855_1" tid=12 Native
  #00  pc 0x00000000000cd7a4  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+4)
  #01  pc 0x000000000008b39c  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+132)
  #02  pc 0x000000000005829c  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+256)
  #03  pc 0x0000000000058470  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
  #04  pc 0x0000000000058c3c  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60)
  #05  pc 0x000000000007ee70  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+44)
  #06  pc 0x0000000000013670  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+288)
  #07  pc 0x00000000000c3748  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
  #08  pc 0x00000000000e205c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #09  pc 0x0000000000084af0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

"Binder:23855_2" tid=13 Native
  #00  pc 0x00000000000cd7a4  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+4)
  #01  pc 0x000000000008b39c  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+132)
  #02  pc 0x000000000005829c  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+256)
  #03  pc 0x0000000000058470  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
  #04  pc 0x0000000000058c3c  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60)
  #05  pc 0x000000000007ee70  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+44)
  #06  pc 0x0000000000013670  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+288)
  #07  pc 0x00000000000c3748  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
  #08  pc 0x00000000000e205c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #09  pc 0x0000000000084af0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

"Profile Saver" tid=14 Native
  #00  pc 0x000000000008027c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #01  pc 0x000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #02  pc 0x00000000003452cc  /apex/com.android.runtime/lib64/libart.so (art::ProfileSaver::Run()+412)
  #03  pc 0x0000000000348edc  /apex/com.android.runtime/lib64/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+88)
  #04  pc 0x00000000000e205c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #05  pc 0x0000000000084af0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

"NMTWSP-thread-1" tid=4 Timed Waiting
  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:919)

"ScionFrontendApi" tid=3 Timed Waiting
  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:919)

"GmsDynamite" tid=5 Waiting
  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 (com.google.android.gms:play-services-basement@@18.3.0)

"com.google.firebase.crashlytics.startup1" tid=16 Waiting
  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 (ExecutorUtils.java)
  at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run (BackgroundPriorityRunnable.java)
  at java.lang.Thread.run (Thread.java:919)

"Firebase Background Thread #0" tid=17 Waiting
  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:919)

"GoogleApiHandler" tid=18 Native
  #00  pc 0x00000000000cd668  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
  #01  pc 0x0000000000017afc  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
  #02  pc 0x00000000000179cc  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
  #03  pc 0x00000000001386a4  /system/lib64/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:343)
  at android.os.Looper.loop (Looper.java:188)
  at android.os.HandlerThread.run (HandlerThread.java:67)

"pool-7-thread-1" tid=19 Timed Waiting
  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:919)

"awaitEvenIfOnMainThread task continuation executor1" tid=15 Waiting
  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 (ExecutorUtils.java)
  at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run (BackgroundPriorityRunnable.java)
  at java.lang.Thread.run (Thread.java:919)

"Firebase Blocking Thread #0" tid=20 Timed Waiting
  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:919)

"Firebase Background Thread #1" tid=21 Waiting
  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:919)

"pool-10-thread-1" tid=22 Waiting
  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:919)

"Measurement Worker" tid=23 Timed Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:442)
  at m.lt.run (:com.google.android.gms.dynamite_measurementdynamite@[email protected] (100400-0):71)

"OkHttp ConnectionPool" tid=24 Timed Waiting
  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:919)

"Okio Watchdog" tid=26 Waiting
  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.android.okhttp.okio.AsyncTimeout.awaitTimeout (AsyncTimeout.java:313)
  at com.android.okhttp.okio.AsyncTimeout.access$000 (AsyncTimeout.java:42)
  at com.android.okhttp.okio.AsyncTimeout$Watchdog.run (AsyncTimeout.java:288)

"pool-2-thread-1" tid=25 Waiting
  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:919)

"DefaultDispatcher-worker-1" tid=27 Timed Waiting
  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.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark (CoroutineScheduler.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt)

"DefaultDispatcher-worker-2" tid=28 Timed Waiting
  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.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark (CoroutineScheduler.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt)

"DefaultDispatcher-worker-3" tid=29 Timed Waiting
  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.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.tryPark (CoroutineScheduler.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker (CoroutineScheduler.kt)
  at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run (CoroutineScheduler.kt)

"Firebase Background Thread #2" tid=30 Waiting
  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:919)

"Firebase Background Thread #3" tid=31 Waiting
  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:919)

"Firebase-Messaging-Init" tid=32 Waiting
  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 (com.google.android.gms:play-services-basement@@18.3.0)
  at java.lang.Thread.run (Thread.java:919)

"Firebase-Messaging-Topics-Io" tid=33 Waiting
  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 (com.google.android.gms:play-services-basement@@18.3.0)
  at java.lang.Thread.run (Thread.java:919)

"NMTWSP-thread-2" tid=36 Timed Waiting
  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:919)

"Firebase Blocking Thread #1" tid=37 Timed Waiting
  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:919)

"AsyncTask #1" tid=35 Timed Waiting
  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 com.google.android.gms.common.BlockingServiceConnection.getServiceWithTimeout (com.google.android.gms:play-services-basement@@18.3.0)
  at com.google.android.gms.ads.identifier.AdvertisingIdClient.zzb (com.google.android.gms:play-services-ads-identifier@@17.1.0)
  at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo (com.google.android.gms:play-services-ads-identifier@@17.1.0)
  at java.lang.reflect.Method.invoke (Native method)
  at com.facebook.internal.Utility.invokeMethodQuietly (Utility.kt)
  at com.facebook.internal.AttributionIdentifiers$Companion.getAndroidIdViaReflection (AttributionIdentifiers.kt)
  at com.facebook.internal.AttributionIdentifiers$Companion.getAndroidId (AttributionIdentifiers.kt)
  at com.facebook.internal.AttributionIdentifiers$Companion.getAttributionIdentifiers (AttributionIdentifiers.kt)
  at com.facebook.FacebookSdk.publishInstallAndWaitForResponse (FacebookSdk.kt)
  at com.facebook.FacebookSdk.publishInstallAsync$lambda-15 (FacebookSdk.kt)
  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:919)

"FAN:ASYNC #1" tid=41 Timed Waiting
  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:919)

"logThread" tid=39 Timed Waiting
  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 com.google.android.gms.common.BlockingServiceConnection.getServiceWithTimeout (com.google.android.gms:play-services-basement@@18.3.0)
  at com.google.android.gms.ads.identifier.AdvertisingIdClient.zzb (com.google.android.gms:play-services-ads-identifier@@17.1.0)
  at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo (com.google.android.gms:play-services-ads-identifier@@17.1.0)
  at java.lang.reflect.Method.invoke (Native method)
  at com.amplitude.api.DeviceInfo$CachedInfo.getAndCacheGoogleAdvertisingId (DeviceInfo.java)
  at com.amplitude.api.DeviceInfo$CachedInfo.getAdvertisingId (DeviceInfo.java)
  at com.amplitude.api.DeviceInfo$CachedInfo.<init> (DeviceInfo.java:58)
  at com.amplitude.api.DeviceInfo$CachedInfo.<init> (DeviceInfo.java:42)
  at com.amplitude.api.DeviceInfo.getCachedInfo (DeviceInfo.java)
  at com.amplitude.api.DeviceInfo.prefetch (DeviceInfo.java)
  at com.amplitude.api.AmplitudeClient.lambda$initializeInternal$1 (AmplitudeClient.java)
  at android.os.Handler.handleCallback (Handler.java:883)
  at android.os.Handler.dispatchMessage (Handler.java:100)
  at android.os.Looper.loop (Looper.java:241)
  at android.os.HandlerThread.run (HandlerThread.java:67)

"httpThread" tid=44 Native
  #00  pc 0x00000000000cd668  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
  #01  pc 0x0000000000017afc  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
  #02  pc 0x00000000000179cc  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
  #03  pc 0x00000000001386a4  /system/lib64/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:343)
  at android.os.Looper.loop (Looper.java:188)
  at android.os.HandlerThread.run (HandlerThread.java:67)

"etermax-anr-info-collector" tid=45 Native
  #00  pc 0x00000000000cd668  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
  #01  pc 0x0000000000017afc  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
  #02  pc 0x00000000000179cc  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
  #03  pc 0x00000000001386a4  /system/lib64/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:343)
  at android.os.Looper.loop (Looper.java:188)
  at android.os.HandlerThread.run (HandlerThread.java:67)

"|ANR-WatchDog|" tid=46 Timed Waiting
  at java.lang.Thread.sleep (Native method)
  at java.lang.Thread.sleep (Thread.java:440)
  at java.lang.Thread.sleep (Thread.java:356)
  at com.github.anrwatchdog.ANRWatchDog.run (ANRWatchDog.java)

"Binder:23855_3" tid=43 Native
  #00  pc 0x00000000000cd7a4  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+4)
  #01  pc 0x000000000008b39c  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+132)
  #02  pc 0x000000000005829c  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+256)
  #03  pc 0x0000000000058470  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
  #04  pc 0x0000000000058c3c  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60)
  #05  pc 0x000000000007ee70  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+44)
  #06  pc 0x0000000000013670  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+288)
  #07  pc 0x00000000000c3748  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
  #08  pc 0x00000000000e205c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #09  pc 0x0000000000084af0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

"pool-22-thread-1" tid=47 Timed Waiting
  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:919)

"pool-23-thread-1" tid=48 Waiting
  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:919)

"startapp-shared-1" tid=42 Native
  #00  pc 0x000000000008027c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #01  pc 0x000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #02  pc 0x000000000058b200  /apex/com.android.runtime/lib64/libart.so (art::GoToRunnable(art::Thread*) (.llvm.12213850983437425814)+440)
  #03  pc 0x000000000058b004  /apex/com.android.runtime/lib64/libart.so (art::JniMethodEnd(unsigned int, art::Thread*)+28)
  at android.os.BinderProxy.transactNative (Native method)
  at android.os.BinderProxy.transact (BinderProxy.java:511)
  at com.android.internal.view.IInputMethodManager$Stub$Proxy.getEnabledInputMethodSubtypeList (IInputMethodManager.java:528)
  at android.view.inputmethod.InputMethodManager.getEnabledInputMethodSubtypeList (InputMethodManager.java:1108)
  at com.startapp.c4.a (Sta)
  at com.startapp.x1.a (Sta:1)
  at com.startapp.x1.b (Sta)
  at com.startapp.u0.b (Sta:80)
  at com.startapp.u0.a (Sta:12)
  at com.startapp.sdk.adsbase.remoteconfig.a.a (Sta:6)
  at com.startapp.p2.run (Sta)
  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:919)

"startapp-core" tid=52 Native
  #00  pc 0x00000000000cd668  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
  #01  pc 0x0000000000017afc  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
  #02  pc 0x00000000000179cc  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
  #03  pc 0x00000000001386a4  /system/lib64/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:343)
  at android.os.Looper.loop (Looper.java:188)
  at android.os.HandlerThread.run (HandlerThread.java:67)

"startapp-anr" tid=53 Timed Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:442)
  at com.startapp.sdk.adsbase.crashreport.b.a (Sta)
  at com.startapp.sdk.adsbase.crashreport.b.run (Sta)

"startapp-db" tid=40 Native
  #00  pc 0x00000000000cd668  /apex/com.android.runtime/lib64/bionic/libc.so (__epoll_pwait+8)
  #01  pc 0x0000000000017afc  /system/lib64/libutils.so (android::Looper::pollInner(int)+144)
  #02  pc 0x00000000000179cc  /system/lib64/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+56)
  #03  pc 0x00000000001386a4  /system/lib64/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:343)
  at android.os.Looper.loop (Looper.java:188)
  at android.os.HandlerThread.run (HandlerThread.java:67)

"startapp-air-1" tid=54 Timed Waiting
  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 com.google.android.gms.common.BlockingServiceConnection.getServiceWithTimeout (com.google.android.gms:play-services-basement@@18.3.0)
  at com.google.android.gms.ads.identifier.AdvertisingIdClient.zzb (com.google.android.gms:play-services-ads-identifier@@17.1.0)
  at com.google.android.gms.ads.identifier.AdvertisingIdClient.getAdvertisingIdInfo (com.google.android.gms:play-services-ads-identifier@@17.1.0)
  at java.lang.reflect.Method.invoke (Native method)
  at com.startapp.sdk.common.advertisingid.AdvertisingIdResolver.a (Sta:149)
  at com.startapp.sdk.common.advertisingid.a.run (Sta)
  at java.lang.Thread.run (Thread.java:919)

"startapp-lid-1" tid=55 Timed Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:442)
  at com.startapp.f5.a (Sta:47)
  at com.startapp.g5.run (Sta)
  at java.lang.Thread.run (Thread.java:919)

"WM.task-1" tid=38 Waiting
  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:919)

"flutter-worker-0" tid=56 Native
  #00  pc 0x000000000008027c  /apex/com.android.runtime/lib64/bionic/libc.so (syscall+28)
  #01  pc 0x000000000014bf34  /apex/com.android.runtime/lib64/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+148)
  #02  pc 0x00000000003db8f4  /apex/com.android.runtime/lib64/libart.so (art::JNI::NewWeakGlobalRef(_JNIEnv*, _jobject*)+432)
  #03  pc 0x0000000000378bfc  /apex/com.android.runtime/lib64/libart.so (art::JavaVMExt::LoadNativeLibrary(_JNIEnv*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, _jobject*, _jclass*, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>*)+2480)
  #04  pc 0x00000000000050e8  /apex/com.android.runtime/lib64/libopenjdkjvm.so (JVM_NativeLoad+412)
  at java.lang.Runtime.nativeLoad (Native method)
  at java.lang.Runtime.nativeLoad (Runtime.java:1115)
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1069)
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1007)
  at java.lang.System.loadLibrary (System.java:1667)
  at io.flutter.embedding.engine.FlutterJNI.loadLibrary (FlutterJNI.java)
  at io.flutter.embedding.engine.loader.FlutterLoader$1.call (FlutterLoader.java:191)
  at io.flutter.embedding.engine.loader.FlutterLoader$1.call (FlutterLoader.java:185)
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)
  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:919)

"Binder:23855_4" tid=34 Native
  #00  pc 0x00000000000cd7a4  /apex/com.android.runtime/lib64/bionic/libc.so (__ioctl+4)
  #01  pc 0x000000000008b39c  /apex/com.android.runtime/lib64/bionic/libc.so (ioctl+132)
  #02  pc 0x000000000005829c  /system/lib64/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+256)
  #03  pc 0x0000000000058470  /system/lib64/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+24)
  #04  pc 0x0000000000058c3c  /system/lib64/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+60)
  #05  pc 0x000000000007ee70  /system/lib64/libbinder.so (android::PoolThread::threadLoop()+44)
  #06  pc 0x0000000000013670  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+288)
  #07  pc 0x00000000000c3748  /system/lib64/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+140)
  #08  pc 0x00000000000e205c  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36)
  #09  pc 0x0000000000084af0  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64)

"Bugsnag IO thread" tid=57 Blocked
  at java.lang.Runtime.loadLibrary0 (Runtime.java)
  at java.lang.Runtime.loadLibrary0 (Runtime.java:1007)
  at java.lang.System.loadLibrary (System.java:1667)
  at com.bugsnag.android.RootDetector.<init> (RootDetector.kt:48)
  at com.bugsnag.android.RootDetector.<init> (RootDetector.kt:16)
  at com.bugsnag.android.DataCollectionModule$rootDetector$2.invoke (DataCollectionModule.kt)
  at com.bugsnag.android.DataCollectionModule$rootDetector$2.invoke (DataCollectionModule.kt)
  at com.bugsnag.android.internal.dag.DependencyModule$future$lazy$1.invoke (DependencyModule.kt)
  at kotlin.SynchronizedLazyImpl.getValue (LazyJVM.kt)
  at com.bugsnag.android.internal.dag.DependencyModule.resolveDependencies$lambda-2$lambda-1 (DependencyModule.kt)
  at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:462)
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)
  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:919)

"process reaper" tid=58 Timed Waiting
  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:919)

"WM.task-2" tid=59 Waiting
  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:919)

"pool-24-thread-1" tid=49 Timed Waiting
  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:919)

@mclack
Copy link

mclack commented Jun 5, 2024

Hi @fernan88

Thank you for providing those stack traces.

We've added a task to investigate this further and see whether there's anything we can directly do. We don't currently have an ETA on when this will be looked at in more detail, but we will make sure to keep this thread updated.

@mclack mclack added needs discussion Requires internal analysis/discussion and removed awaiting feedback Awaiting a response from a customer. Will be automatically closed after approximately 2 weeks. labels Jun 5, 2024
@SahanaDHegde
Copy link

Had a similar issue. However, the ANR problem was reported while adding the app to the Play Store, but it could not be reproduced in the development environment. The ANR stack trace is below. How can it be debugged or how can I identify the cause of the issue?

"main" tid=1 Timed Waiting
  at jdk.internal.misc.Unsafe.park (Native method)
  at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:252)
  at java.util.concurrent.FutureTask.awaitDone (FutureTask.java:444)
  at java.util.concurrent.FutureTask.get (FutureTask.java:203)
  at com.bugsnag.android.internal.BackgroundTaskService$SafeFuture.get (BackgroundTaskService.kt:207)
  at com.bugsnag.android.EventStore.flushOnLaunch (EventStore.kt:61)
  at com.bugsnag.android.Client.start (Client.java:306)
  at com.bugsnag.android.Client.<init> (Client.java:239)
  at com.bugsnag.android.Bugsnag.start (Bugsnag.java:64)
  at co.package.MyApp.BugSnagCapacitorPlugin.lambda$initialize$0 (BugSnagCapacitorPlugin.java:30)
  at co.package.MyApp.BugSnagCapacitorPlugin.$r8$lambda$T6vVDqVdDh5Bgy28MAM1c3KXM-8 (unavailable)
  at co.package.MyApp.BugSnagCapacitorPlugin$$ExternalSyntheticLambda2.run (unavailable:4)
  at android.os.Handler.handleCallback (Handler.java:938)
  at android.os.Handler.dispatchMessage (Handler.java:99)
  at android.os.Looper.loopOnce (Looper.java:233)
  at android.os.Looper.loop (Looper.java:344)
  at android.app.ActivityThread.main (ActivityThread.java:8249)
  at java.lang.reflect.Method.invoke (Native method)
  at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:589)
  at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1071)
"ReferenceQueueDaemon" tid=9 Waiting
  at java.lang.Object.wait (Native method)
  at java.lang.Object.wait (Object.java:386)
  at java.lang.Object.wait (Object.java:524)
  at java.lang.Daemons$ReferenceQueueDaemon.runInternal (Daemons.java:239)
  at java.lang.Daemons$Daemon.run (Daemons.java:145)
  at java.lang.Thread.run (Thread.java:1012)

@mclack
Copy link

mclack commented Sep 17, 2024

Hi @SahanaDHegde

If this error was reported by BugSnag to your BugSnag dashboard, then we would recommend seeing what other information alongside the stacktrace is available in the report, if the stacktrace alone isn't proving to be overly useful to you. For example, you might find the breadcrumbs tab useful to determine whether there is a trend in particular events occurring that lead to the crash.

We're aware that you opened a support ticket with us directly regarding this ANR you experienced, and there has already been some discussion about it there. If you have any additional questions regarding this, then please feel free to respond to us via the ticket thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs discussion Requires internal analysis/discussion
Projects
None yet
Development

No branches or pull requests

4 participants