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 In Firebase Unity SDK 8.3.0 #1151

Closed
SamiSdd opened this issue Oct 1, 2021 · 18 comments
Closed

[Bug] ANR In Firebase Unity SDK 8.3.0 #1151

SamiSdd opened this issue Oct 1, 2021 · 18 comments
Labels
api: messaging closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question

Comments

@SamiSdd
Copy link

SamiSdd commented Oct 1, 2021

[REQUIRED] Please fill in the following fields:

  • Unity editor version: 2019.4.29F1
  • Firebase Unity SDK version: 8.3.0
  • Source you installed the SDK: UPM with tgz
  • Problematic Firebase Component: Initialization
  • Other Firebase Components in use: Crashlytics, Messaging, Analytics, Dynamic Links
  • Additional SDKs you are using: Facebook, Ironsource, Admob, Vungle, AdColony
  • Platform you are using the Unity editor on: Mac, Windows
  • Platform you are targeting: iOS, Android
  • Scripting Runtime: IL2CPP

[REQUIRED] Please describe the issue here:

We have recently updated Firebase Unity SDK From 8.1.0 to 8.3.0, A new ANR seems to appear on 5% Install on Google Play Store,

image
image

ANR
Bootup
 Input dispatching timed out (com.company.game/com.google.firebase.MessagingUnityPlayerActivity, Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago.  Wait queue length: 18.  Wait queue head age: 53764.5ms.)
Oct 1st, 2021, 11:51:52 UTC

STACKTRACE

ANR:  Input dispatching timed out (com.company.game/com.google.firebase.MessagingUnityPlayerActivity, Waiting to send non-key event because the touched window has not finished processing certain input events that were delivered to it over 500.0ms ago.  Wait queue length: 18.  Wait queue head age: 53764.5ms.)
        at com.google.firebase.app.internal.cpp.JniResultCallback.onCompletion(JniResultCallback.java:149)
        at com.google.firebase.app.internal.cpp.JniResultCallback$TaskCallback.onFailure(JniResultCallback.java:77)
        at com.google.android.gms.tasks.zzk.run(com.google.android.gms:play-services-tasks@@17.2.1:1)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:224)
        at android.app.ActivityThread.main(ActivityThread.java:7561)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)

THREADS

Thread 2 - main
        at com.google.firebase.app.internal.cpp.JniResultCallback.onCompletion(JniResultCallback.java:149)
        at com.google.firebase.app.internal.cpp.JniResultCallback$TaskCallback.onFailure(JniResultCallback.java:77)
        at com.google.android.gms.tasks.zzk.run(com.google.android.gms:play-services-tasks@@17.2.1:1)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:224)
        at android.app.ActivityThread.main(ActivityThread.java:7561)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)

Thread 5869 - Jit thread pool worker thread 0
        at unknown method(unknown file)

Thread 5870 - Signal Catcher
        at unknown method(unknown file)

Thread 5871 - HeapTaskDaemon
        at unknown method(unknown file)

Thread 5872 - ReferenceQueueDaemon
        at java.lang.Object.wait(Object.java:-2)
        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:919)

Thread 5873 - FinalizerDaemon
        at java.lang.Object.wait(Object.java:-2)
        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:919)

Thread 5874 - FinalizerWatchdogDaemon
        at java.lang.Object.wait(Object.java:-2)
        at java.lang.Object.wait(Object.java:442)
        at java.lang.Object.wait(Object.java:568)
        at java.lang.Daemons$FinalizerWatchdogDaemon.sleepUntilNeeded(Daemons.java:341)
        at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal(Daemons.java:321)
        at java.lang.Daemons$Daemon.run(Daemons.java:139)
        at java.lang.Thread.run(Thread.java:919)

Thread 5875 - Binder:2023_1
        at unknown method(unknown file)

Thread 5876 - Binder:2023_2
        at unknown method(unknown file)

Thread 5877 - Binder:2023_3
        at unknown method(unknown file)

Thread 5878 - Profile Saver
        at unknown method(unknown file)

Thread 5884 - Crashlytics Exception Handler1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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:64)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27)
        at java.lang.Thread.run(Thread.java:919)

Thread 5887 - GmsDynamite
        at java.lang.Object.wait(Object.java:-2)
        at java.lang.Object.wait(Object.java:442)
        at java.lang.Object.wait(Object.java:568)
        at cw.run(:com.google.android.gms.dynamite_dynamiteloader@213614081@21.36.14 (120400-0):2)

Thread 5888 - pool-6-thread-1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5889 - awaitEvenIfOnMainThread task continuation executor1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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:64)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27)
        at java.lang.Thread.run(Thread.java:919)

Thread 5890 - com.google.firebase.crashlytics.startup1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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:64)
        at com.google.firebase.crashlytics.internal.common.BackgroundPriorityRunnable.run(BackgroundPriorityRunnable.java:27)
        at java.lang.Thread.run(Thread.java:919)

Thread 5892 - Firebase-Messaging-Init
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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@@17.6.0:2)
        at java.lang.Thread.run(Thread.java:919)

Thread 5893 - Firebase-Messaging-Topics-Io
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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@@17.6.0:2)
        at java.lang.Thread.run(Thread.java:919)

Thread 5897 - queued-work-looper
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5900 - FirebaseInstanceId
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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@@17.6.0:2)
        at java.lang.Thread.run(Thread.java:919)

Thread 5905 - AsyncTask #1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
        at java.util.concurrent.SynchronousQueue$TransferStack.awaitFulfill(SynchronousQueue.java:459)
        at java.util.concurrent.SynchronousQueue$TransferStack.transfer(SynchronousQueue.java:362)
        at java.util.concurrent.SynchronousQueue.take(SynchronousQueue.java:920)
        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)

Thread 5907 - pool-17-thread-1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5910 - pool-19-thread-1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5916 - pool-21-thread-1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5919 - pool-18-thread-1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5920 - pool-21-thread-2
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5922 - UnityMain
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        at java.util.concurrent.locks.LockSupport.park(LockSupport.java:190)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:868)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1023)
        at java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireSharedInterruptibly(AbstractQueuedSynchronizer.java:1334)
        at java.util.concurrent.CountDownLatch.await(CountDownLatch.java:232)
        at com.google.firebase.crashlytics.internal.common.Utils.awaitEvenIfOnMainThread(Utils.java:112)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController.handleUncaughtException(CrashlyticsController.java:231)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsController$1.onUncaughtException(CrashlyticsController.java:153)
        at com.google.firebase.crashlytics.internal.common.CrashlyticsUncaughtExceptionHandler.uncaughtException(CrashlyticsUncaughtExceptionHandler.java:54)
        at com.unity3d.player.n.uncaughtException(Unknown:94)
        at com.bugsnag.android.ExceptionHandler.uncaughtException(ExceptionHandler.java:71)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
        at java.lang.Thread.dispatchUncaughtException(Thread.java:2187)

Thread 5923 - pool-21-thread-3
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5925 - pool-21-thread-4
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5929 - AssetPackBackgroundExecutor
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5930 - AssetPackService
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5933 - Binder:2023_4
        at unknown method(unknown file)

Thread 5936 - AudioPortEventHandler
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5937 - AudioTrack
        at unknown method(unknown file)

Thread 5941 - bugsnag-anr-collector
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5942 - process reaper
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5946 - ConnectivityThread
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5953 - Thread-12
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at com.ironsource.mediationsdk.sdk.j$a.run(Unknown:10)

Thread 5954 - Timer-0
        at java.lang.Object.wait(Object.java:-2)
        at java.lang.Object.wait(Object.java:442)
        at java.util.TimerThread.mainLoop(Timer.java:559)
        at java.util.TimerThread.run(Timer.java:512)

Thread 5955 - Timer-1
        at java.lang.Object.wait(Object.java:-2)
        at java.lang.Object.wait(Object.java:442)
        at java.util.TimerThread.mainLoop(Timer.java:559)
        at java.util.TimerThread.run(Timer.java:512)

Thread 5956 - UnityChoreographer
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5960 - logThread
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5961 - httpThread
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5967 - pool-27-thread-1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5968 - pool-28-thread-1
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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)

Thread 5969 - Thread-18
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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.appsflyer.AFExecutor$1$4.run(unknown:31)
        at java.lang.Thread.run(Thread.java:919)

Thread 5971 - Thread-20
        at com.google.firebase.app.internal.cpp.JniResultCallback.nativeOnResult(JniResultCallback.java:-2)
        at com.google.firebase.app.internal.cpp.JniResultCallback.onCompletion(JniResultCallback.java:151)
        at com.google.firebase.app.internal.cpp.JniResultCallback.cancel(JniResultCallback.java:143)

Thread 5972 - GoogleApiHandler
        at android.os.MessageQueue.nativePollOnce(MessageQueue.java:-2)
        at android.os.MessageQueue.next(MessageQueue.java:336)
        at android.os.Looper.loop(Looper.java:181)
        at android.os.HandlerThread.run(HandlerThread.java:67)

Thread 5975 - Thread-22
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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.appsflyer.AFExecutor$1$4.run(unknown:31)
        at java.lang.Thread.run(Thread.java:919)

Thread 5976 - MessengerIpcClient
        at sun.misc.Unsafe.park(Unsafe.java:-2)
        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@@17.6.0:2)
        at java.lang.Thread.run(Thread.java:919)

Thread 5986 - Thread-31
        at com.google.firebase.app.internal.cpp.JniResultCallback.onCompletion(JniResultCallback.java:149)
        at com.google.firebase.app.internal.cpp.JniResultCallback$TaskCallback.onFailure(JniResultCallback.java:77)
        at com.google.android.gms.tasks.zzk.run(com.google.android.gms:play-services-tasks@@17.2.1:1)
        at android.os.Handler.handleCallback(Handler.java:883)
        at android.os.Handler.dispatchMessage(Handler.java:100)
        at android.os.Looper.loop(Looper.java:224)
        at android.app.ActivityThread.main(ActivityThread.java:7561)
        at java.lang.reflect.Method.invoke(Method.java:-2)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:995)

Google Play Store Screenshot:
image

@google-oss-bot
Copy link

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@dconeybe
Copy link

dconeybe commented Oct 1, 2021

Although I'm not in a position to fix this bug, it piqued my interest. There seems to be a clear bug here.

According to the stack traces, the main thread is blocked at line 149 in JniResultCallback.java calling synchronized (this) in public void onCompletion(): https://github.com/firebase/firebase-cpp-sdk/blob/ef28f1058b4b0b920756ed9d2fd9f2848a12b4da/app/src_java/com/google/firebase/app/internal/cpp/JniResultCallback.java#L147-L150

Then, there is another thread, Thread 5971 - Thread-20, that appears to be a call from native C++ code to JniResultCallback.cancel(), which has acquired the "this" lock and called back down to native code. Here is an (adapted) excerpt from the stack from of this thread from the stack traces provided in the OP:

at JniResultCallback.nativeOnResult()
at JniResultCallback.onCompletion(JniResultCallback.java:151)
at JniResultCallback.cancel(JniResultCallback.java:143)

It would appear that the native code executed by nativeOnResult() has deadlocked. Since this is an intermittent issue, my guess is that this is caused by acquiring two different locks in different orders when being called from different places. The fact that cancel() is being called from native code suggests there is something being "cancelled" or "shut down" and is cleaning up all of the listeners.

@SamiSdd
Copy link
Author

SamiSdd commented Oct 1, 2021

Yes, something has changed in Unity SDK 8.1.0 & 8.3.0 that caused it

@paulinon
Copy link
Contributor

paulinon commented Oct 5, 2021

Hi @SamiSdd,

Could you provide a minimal, reproducible example of your implementation so that we can analyze what's causing this issue?

@paulinon paulinon added the needs-info Need information for the developer label Oct 5, 2021
@SamiSdd
Copy link
Author

SamiSdd commented Oct 8, 2021

Hi @paulinon, I can share the way our code interact with Firebase SDK, But the issue above we were not able to reproduce this on our end, We had seen this issue with couple of users on 5% rollout of our Android build

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Oct 8, 2021
@paulinon
Copy link
Contributor

paulinon commented Oct 8, 2021

Hi @SamiSdd,

It's okay if you weren't able to replicate the issue on your end. We can try to analyze what's causing this based on the project as well as the logs you provided.

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Oct 8, 2021
@SamiSdd
Copy link
Author

SamiSdd commented Oct 8, 2021

Hi @paulinon, Please find a minimal project here

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Oct 8, 2021
@paulinon
Copy link
Contributor

Thanks for providing a minimal project, @SamiSdd. It's possible that the issue occurs only on certain devices. Could you share the list of devices that have faced this issue so far?

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Oct 12, 2021
@SamiSdd
Copy link
Author

SamiSdd commented Oct 18, 2021

Here is the device list which is affected

Xiaomi - Redmi Note 9 Pro
samsung - Galaxy A10 (SM-A105F)
TCL - Alcatel 1B (5002E)
HUAWEI - DRA-LX5
Xiaomi - M2003J15SC
Xiaomi - Redmi 9C NFC (M2006C3MNG)
realme - RMX3231
Xiaomi - Redmi Note 7
Xiaomi - Redmi Note 8 Pro
HUAWEI - Huawei MediaPad T5 (AGS2-L09)
BLU - C6 2019
HUAWEI - honor 10 Lite (HRY-LX1)
Sony - Xperia 10 Plus (I4213)
HUAWEI - Honor 8X (JSN-L21)
HUAWEI - HONOR 8S (KSA-LX9)
Xiaomi - Redmi 9T (M2010J19SY)
Xiaomi - POCO X3 Pro (M2102J20SG)
Xiaomi - Mi A1
HMD Global - Nokia 2.2
HMD Global - Nokia 5.1
Xiaomi - Redmi Note 4
Xiaomi - Redmi Note 6 Pro (Redmi Note 6 Pro)
Xiaomi - Redmi Note 8
samsung - Galaxy A02 (SM-A022G)
samsung - Galaxy A20 (SM-A205G)
samsung - Galaxy A21s (SM-A217F)
samsung - Galaxy A30 (SM-A305FN)
samsung - Galaxy A40 (SM-A405FN)
samsung - Galaxy A50 (SM-A505FN)
samsung - Galaxy A51 (SM-A515F)
samsung - Galaxy A71 (SM-A715F)
samsung - Galaxy S8 (SM-G950F)
samsung - Galaxy Tab S6 Lite (SM-P610)
HUAWEI - Honor 9X (STK-LX3)
TECNO MOBILE LIMITED - SPARK 5 Air (TECNO KD6)

Here are the OS versions

android - 11 - 41.3%
android - 10 - 37%
android - 9 - 10.9%
android - 8.1.0 - 6.5%
android - 6.0 - 2.2%
android - 8.0.0 - 2.2%

@google-oss-bot google-oss-bot added needs-attention Need Googler's attention and removed needs-info Need information for the developer labels Oct 18, 2021
@paulinon
Copy link
Contributor

Thanks for letting me know, @SamiSdd. Version 8.4.0 has been released recently. Could you confirm if using this version makes a difference?

@paulinon paulinon added needs-info Need information for the developer and removed needs-attention Need Googler's attention labels Oct 19, 2021
@Originator99
Copy link

Hi,
We've been noticing a similar ANR in our project with Firebase 8.1.0+
Tried upgrading firebase to 8.4.0 after @paulinon's suggestion but we're still noticing the same ANR. We have multiple ANRs which are linked to com.google.firebase.MessagingUnityPlayerActivity. Here's a playstore screenshot :

ANRs_GITHUB

The first one has no stack trace, but the others do. All of these stack traces have the following threads in common :

image

I uploaded my stack traces of all ANRs linked with MessagingUnityPlayerActivity below :

  1. No Stack Trace
  2. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_2.txt
  3. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_3.txt
  4. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_4.txt
  5. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_5.txt
  6. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_6.txt
  7. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_7.txt
  8. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_8.txt
  9. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_9.txt
  10. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_10.txt
  11. https://s3.ap-south-1.amazonaws.com/superstars.assetbundles.testbuild/ANR_Stack_Traces/Trace_11.txt

We currently have 13k users on this version where the ANR is happening.
Do let me know how I can be of help. We're not able to recreate this on our end either. Do let me know if this ANR is not linked with this current issue.

@GoatHunter
Copy link

Hi Firebase team,

We're also experiencing this issue which has an adverse effect on our users, please prioritize this.

@Jack37
Copy link

Jack37 commented Oct 26, 2021

Hello, I'm having the same problem. I'll add my stack trace, maybe this is related:

Native StackTrace:

Thread 0 (crashed)
0   libc.so                            0x0000007d4064cd24 <symbols missing for uuid: a9be8f8e3ba7df39d3fe4858932ef34b> 
1   libFirebaseCppApp-8_4_0.so         0x00000078422fec24 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
2   libFirebaseCppApp-8_4_0.so         0x00000078423044e8 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
3   libFirebaseCppApp-8_4_0.so         0x000000784230449c <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
4   libFirebaseCppApp-8_4_0.so         0x0000007842372100 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
5   libFirebaseCppApp-8_4_0.so         0x00000078423884c8 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
6   libart.so                          0x0000007a4ec89ed4 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
7   libart.so                          0x0000007a4ec80564 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
8   libart.so                          0x0000007a4ece4e94 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
9   libart.so                          0x0000007a4ee58254 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
10  libart.so                          0x0000007a4ee543dc <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
11  libart.so                          0x0000007a4f18c964 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
12  libart.so                          0x0000007a4ec7ac14 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
13  libart.so                          0x0000007a4f187310 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
14  libart.so                          0x0000007a4ec7a814 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
15  libart.so                          0x0000007a4ee4ad48 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
16  libart.so                          0x0000007a4f175a84 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
17  libart.so                          0x0000007a4ec89ff8 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
18  libart.so                          0x0000007a4ec80564 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
19  libart.so                          0x0000007a4ece4e94 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
20  libart.so                          0x0000007a4f07e198 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
21  libart.so                          0x0000007a4f07f734 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
22  libart.so                          0x0000007a4f07f918 <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
23  libart.so                          0x0000007a4eee4ecc <symbols missing for uuid: 590bc1a07a50a63c196efb048a7125f4> 
24  libFirebaseCppApp-8_4_0.so         0x0000007842303b58 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
25  libFirebaseCppApp-8_4_0.so         0x000000784238662c <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
26  libFirebaseCppApp-8_4_0.so         0x00000078423862b4 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
27  libFirebaseCppApp-8_4_0.so         0x00000078423bfaf8 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
28  libFirebaseCppApp-8_4_0.so         0x00000078422ffdd0 <symbols missing for uuid: 75c537d8a20bc56fceb35ccb80f6344f> 
29  libil2cpp.so                       0x00000079c58a562c AppUtilPINVOKE_FirebaseApp_ReleaseReferenceInternal_m83E641C7626685F4E5018D332B214A4497F4437C (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:6916)
30  libil2cpp.so                       0x00000079c58a79b8 FirebaseApp_ReleaseReferenceInternal_m251EC6B33F516335E844BC8CBC7531205D41C934 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:10169)
31  libil2cpp.so                       0x00000079c58a62d8 FirebaseApp_RemoveReference_mF1E15EE01A41D7674FAFDAB777CF637071F907E0 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:8150)
32  libil2cpp.so                       0x00000079c58a95fc FirebaseApp_CheckDependenciesInternal_m3C1FA1603F994655D1C49443FFF8053420F98509 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:9776)
33  libil2cpp.so                       0x00000079c58ad2b4 U3CCheckDependenciesU3Ec__AnonStorey2_U3CU3Em__0_mECC3E61E5A6E1E53D59A57324902DABE019526D2 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:13554)
34  libil2cpp.so                       0x00000079c524583c Action_Invoke_m3FFA5BE3D64F0FF8E1E1CB6F953913FADB5EB89E (/Applications/Unity/Hub/Editor/2020.3.20f1/Unity.app/Contents/il2cpp/libil2cpp/vm/ClassInlines.h:0)
35  libil2cpp.so                       0x00000079c58a6408 FirebaseApp_TranslateDllNotFoundException_m7AA751F31022C03AA209E73B99646C4D0A17A90D (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:7669)
36  libil2cpp.so                       0x00000079c58a9524 FirebaseApp_CheckDependencies_mCD719D29867B855EBA5F74102286BB9A44FCB946 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:9656)
37  libil2cpp.so                       0x00000079c58a9c80 FirebaseApp_U3CCheckDependenciesAsyncU3Em__2_m7418E08620989B76203932B94ED9C94E3C928ACF (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Firebase.App.cpp:10336)
38  libil2cpp.so                       0x00000079c55c4c58 Func_1_Invoke_mE30C1A875EF0B23CF6994EB0F0010292C886106D_gshared (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Generics12.cpp:31406)
39  libil2cpp.so                       0x00000079c553342c Task_1_InnerInvoke_mB52092E4E9AC61B6E83BCD7AAA6B804D9A4AC66D_gshared (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Generics24.cpp:16892)
40  libil2cpp.so                       0x00000079c5391d28 Task_Execute_m35673A0487248C5577449A4A3FBDF7FD3B6BA086 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/mscorlib17.cpp:65)
41  libil2cpp.so                       0x00000079c4ee6420 ContextCallback_Invoke_mF4F8496213E8F0925947DD8994A477AE2E54EFDF (/Applications/Unity/Hub/Editor/2020.3.20f1/Unity.app/Contents/il2cpp/libil2cpp/vm/ClassInlines.h:0)
42  libil2cpp.so                       0x00000079c51156a0 ExecutionContext_RunInternal_mC5D58D6EDE270B4CDA05181E9064E040D6692B2B (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/mscorlib7.cpp:27806)
43  libil2cpp.so                       0x00000079c5392410 Task_ExecuteWithThreadLocal_m25476BDF5AAFF102A95E92CB1E0989DFF72408A8 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/mscorlib17.cpp:28637)
44  libil2cpp.so                       0x00000079c5392228 Task_ExecuteEntry_m55634616576BB085EF3CEDB04801C4183FE1B053 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/mscorlib17.cpp:28501)
45  libil2cpp.so                       0x00000079c5274f6c ThreadPoolWorkQueue_Dispatch_mCC5743D99870EC7844CAB3FF3FA7D23A44A4A984 (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/mscorlib18.cpp:110)
46  libil2cpp.so                       0x00000079c4b0b838 RuntimeInvoker_FalseSByte_t928712DD662DC29BA4FAAE8CE2230AFB23447F0B(void (*)(), MethodInfo const*, void*, void**) (/Users/-/Documents/-/Library/Il2cppBuildCache/Android/armeabi-v7a/il2cppOutput/Il2CppInvokerTable.cpp:70023)
47  libil2cpp.so                       0x00000079c4aa563c worker_thread(void*) (/Applications/Unity/Hub/Editor/2020.3.20f1/Unity.app/Contents/il2cpp/libil2cpp/mono/ThreadPool/ThreadPoolWorkerThread.cpp:250)
48  libil2cpp.so                       0x00000079c4a6f200 il2cpp::vm::ThreadStart(void*) (/Applications/Unity/Hub/Editor/2020.3.20f1/Unity.app/Contents/il2cpp/libil2cpp/vm/Thread.cpp:708)
49  libil2cpp.so                       0x00000079c4a3b980 il2cpp::os::Thread::RunWrapper(void*) (/Applications/Unity/Hub/Editor/2020.3.20f1/Unity.app/Contents/il2cpp/libil2cpp/os/Thread.cpp:183)
50  libil2cpp.so                       0x00000079c4a3a304 il2cpp::os::ThreadImpl::ThreadStartWrapper(void*) (/Applications/Unity/Hub/Editor/2020.3.20f1/Unity.app/Contents/il2cpp/libil2cpp/os/Posix/ThreadImpl.cpp:125)
51  libc.so                            0x0000007d4064c234 <symbols missing for uuid: a9be8f8e3ba7df39d3fe4858932ef34b> 
52  libc.so                            0x0000007d405e6e64 <symbols missing for uuid: a9be8f8e3ba7df39d3fe4858932ef34b> 

@Originator99
Copy link

Hi Team, an update from my end.
Downgrading firebase did not help us with these ANRs either. We downgraded to 7.2.0.
Any update from your end?

@ktaylor86
Copy link

The cause for some of the ANR was found and a pull request is here.

When trying to shutdown firebase-messenger, the JNI functions are called in the wrong order.

firebase/firebase-cpp-sdk#739

@jonsimantov
Copy link
Contributor

The cause for some of the ANR was found and a pull request is here.

When trying to shutdown firebase-messenger, the JNI functions are called in the wrong order.

firebase/firebase-cpp-sdk#739

This fix will be included in the next Firebase Unity SDK release (version 8.6.0).

@google-oss-bot google-oss-bot added the stale Don't have recent activity label Nov 12, 2021
@google-oss-bot
Copy link

Hey @SamiSdd. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@SamiSdd if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Dec 20, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
api: messaging closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question
Projects
None yet
Development

No branches or pull requests

9 participants