Skip to content

ANR Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000010 | com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) } #3059

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

Closed
saumilvaghelaGS opened this issue Oct 15, 2021 · 10 comments

Comments

@saumilvaghelaGS
Copy link

[READ] Step 1: Are you in the right place?

Issues filed here should be about bugs in the code in this repository.
If you have a general question, need help debugging, or fall into some
other category use one of these other channels:

  • For general technical questions, post a question on StackOverflow
    with the firebase tag.
  • For general Firebase discussion, use the firebase-talk
    google group.
  • For help troubleshooting your application that does not fall under one
    of the above categories, reach out to the personalized
    Firebase support channel.

[REQUIRED] Step 2: Describe your environment

  • Android Studio version: android studio arctic fox 2020.3.1 patch 2
  • Firebase Component: firebase-bom, firebase-perf-ktx, firebase-messaging-ktx, firebase-analytics-ktx, firebase-crashlytics-ktx, firebase-database-ktx, firebase-dynamic-links-ktx, firebase-inappmessaging-display-ktx
  • Component version: firebase-bom 26.2.0

[REQUIRED] Step 3: Describe the problem

Getting So many ANRs due to Broadcast of Intent
Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000010 pkg=com.gspeaks.mypandit cmp=com.gspeaks.mypandit/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }

Steps to reproduce:

What happened? How can we make the problem occur?
Type: "main" prio=5 tid=1 Native
#00 pc 0000000000017638 /system/lib/libc.so (syscall+28)
#00 pc 00000000000f59cd /system/lib/libart.so (art::ConditionVariable::Wait(art::Thread*)+80)
#00 pc 0000000000278441 /system/lib/libart.so (art::JNI::GetByteArrayElements(_JNIEnv*, _jbyteArray*, unsigned char*)+832)
#00 pc 0000000000009285 /system/lib/libjavacrypto.so (???)
#00 pc 0000000000009597 /system/lib/libjavacrypto.so (???)
#00 pc 00000000004d1a9b /system/framework/arm/boot.oat (Java_com_android_org_conscrypt_NativeCrypto_EVP_1DigestUpdate__Lcom_android_org_conscrypt_NativeRef_00024EVP_1MD_1CTX_2_3BII+134)
at com.android.org.conscrypt.NativeCrypto.EVP_DigestUpdate (Native method)
at com.android.org.conscrypt.OpenSSLMessageDigestJDK.engineUpdate (OpenSSLMessageDigestJDK.java:84)
at java.security.MessageDigest$MessageDigestImpl.engineUpdate (MessageDigest.java:410)
at java.security.MessageDigest.update (MessageDigest.java:208)
at com.android.org.bouncycastle.crypto.digests.OpenSSLDigest.update (OpenSSLDigest.java:63)
at com.android.org.bouncycastle.crypto.macs.HMac.doFinal (HMac.java:208)
at com.android.org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.F (PKCS5S2ParametersGenerator.java:69)
at com.android.org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.generateDerivedKey (PKCS5S2ParametersGenerator.java:100)
at com.android.org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.generateDerivedParameters (PKCS5S2ParametersGenerator.java:119)
at com.android.org.bouncycastle.crypto.generators.PKCS5S2ParametersGenerator.generateDerivedMacParameters (PKCS5S2ParametersGenerator.java:155)
at com.android.org.bouncycastle.jcajce.provider.symmetric.util.PBE$Util.makePBEMacParameters (PBE.java:329)
at com.android.org.bouncycastle.jcajce.provider.digest.SHA1$BasePBKDF2WithHmacSHA1.engineGenerateSecret (SHA1.java:141)
at javax.crypto.SecretKeyFactory.generateSecret (SecretKeyFactory.java:187)
at com.freshchat.consumer.sdk.b.h.a (unavailable)
at com.freshchat.consumer.sdk.b.h.k (unavailable)
at com.freshchat.consumer.sdk.b.h. (unavailable)
at com.freshchat.consumer.sdk.j.i.ap (unavailable)
at com.freshchat.consumer.sdk.j.i. (unavailable)
at com.freshchat.consumer.sdk.b.e. (unavailable)
at com.freshchat.consumer.sdk.b.e.i (unavailable)
at com.freshchat.consumer.sdk.Freshchat.init (unavailable)
at com.gspeaks.mypandit.AppClass.initialiseFreshchat (AppClass.java:415)
at com.gspeaks.mypandit.AppClass.initFreshchat (AppClass.java:205)
at com.gspeaks.mypandit.AppClass.onCreate (AppClass.java:155)
at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1037)
at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6422)
at android.app.ActivityThread.-wrap5 (ActivityThread.java)
at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1887)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:148)
at android.app.ActivityThread.main (ActivityThread.java:7325)
at java.lang.reflect.Method.invoke! (Native method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1120)

Type: "FinalizerWatchdogDaemon" daemon prio=5 tid=3 Sleeping
at java.lang.Thread.sleep! (Native method)
at java.lang.Thread.sleep (Thread.java:1031)
at java.lang.Thread.sleep (Thread.java:985)
at java.lang.Daemons$FinalizerWatchdogDaemon.sleepFor (Daemons.java:288)
at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization (Daemons.java:299)
at java.lang.Daemons$FinalizerWatchdogDaemon.run (Daemons.java:247)
at java.lang.Thread.run (Thread.java:818)

Relevant Code:

// TODO(you): code here to reproduce the problem

We are getting ANR in the google play console

@google-oss-bot
Copy link
Contributor

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

@aguatno
Copy link

aguatno commented Oct 15, 2021

Hi @saumilvaghelaGS this is definitely very strange. Could you try out the latest version (28.4.2) of Firebase and see if you get the same behavior? Thanks!

@daront
Copy link

daront commented Oct 21, 2021

Hi @saumilvaghelaGS this is definitely very strange. Could you try out the latest version (28.4.2) of Firebase and see if you get the same behavior? Thanks!

I got this issues too. I have updated Firebase(BOM) to version 28.4.2 & Admob to version 20.4.0. Still got huge amount of ARN.

Before upgrade to Firebase BOM, I'm using following Firebase library (with out any ARN).

implementation 'com.google.firebase:firebase-messaging:20.1.5'
implementation 'com.google.firebase:firebase-ads:19.7.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'com.google.android.gms:play-services-auth:18.0.0'
implementation 'com.google.firebase:firebase-ml-vision:24.0.2'
implementation 'com.google.firebase:firebase-crashlytics:17.3.1'
implementation 'com.google.firebase:firebase-analytics:18.0.2'

Then I changed to (lot of ARN).

implementation platform('com.google.firebase:firebase-bom:28.2.0')
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.android.gms:play-services-ads:20.2.0'
implementation 'com.google.android.gms:play-services-mlkit-face-detection:16.2.0'
implementation 'com.google.android.gms:play-services-location:18.0.0'
implementation 'com.google.android.gms:play-services-auth:19.0.0'

@google-oss-bot
Copy link
Contributor

Hey @saumilvaghelaGS. 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!

@waseefakhtar
Copy link

waseefakhtar commented Nov 2, 2021

I have huge amount of ANRs related with this as well:

Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10000010 pkg=com.degoo.android cmp=com.degoo.android/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }

Here are the versions I use:

"com.google.firebase:firebase-common:16.0.3"
"com.google.firebase:firebase-analytics:18.0.2"
"com.google.firebase:firebase-plugins:1.1.0"
"com.google.firebase:firebase-iid:20.0.2"
"com.google.firebase:firebase-messaging:20.2.4"
"com.google.firebase:firebase-config:19.1.1"
"com.google.firebase:firebase-crashlytics:17.2.1"
"com.google.firebase:firebase-crashlytics-gradle:2.3.0"

Any idea what the issue might be?

@Adam-Beno
Copy link

Adam-Beno commented Nov 5, 2021

Also running into this issue on our production app for about a month.

Our notifications are data-only with high priority

implementation platform('com.google.firebase:firebase-bom:28.4.2')
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-crashlytics'
implementation 'com.google.firebase:firebase-analytics'
implementation 'com.google.firebase:firebase-config'
implementation 'com.google.firebase:firebase-perf'
implementation 'com.google.firebase:firebase-inappmessaging-display'

We are actually getting two different ANRs:

Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=com.my.app cmp=com.my.app/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }

Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x11000010 pkg=com.my.app cmp=com.my.app/io.invertase.firebase.messaging.ReactNativeFirebaseMessagingReceiver (has extras) }

My assumption is that they are both the same problem but the second one shows up because our app is written in React Native and we use rnfirebase which at the end just implements this sdk.

We've also noticed that this issue seems to be primarly happening on lower end devices such as:
ZTE Z3351S LGE Stylo 6 AT&T U304AA U307AS

Initially we thought the problem is with how we process our notifications because there is a time consuming task that we run, but we've optimized it as best as we could and now the process doesn't run any longer than 5 seconds even on the slowest device we could find.

Another thing we tried was to block these lower end devices from recieving notifications in our react native app, but we are still getting ANRs from them even tho our metrics show that these devices don't actually process the notifications anymore so our time consuming code doesn't even run on them. On other devices that still recieve notifications we've observed an avarage of 600ms to process notifications and the slowest one so far was about 3.25s.

Just out of curiosity we disabled dispatching of notifications from our backend for about a day and for that one day we had 0 ANRs.

Android versions don't seem to matter, we are seeing most of them on Android 9 but right behind is Android 10 & 11

I also tried logging an emulator and a real device with logcat to see if I can find any errors when the app recieves a notification, but no luck.

Majority of our ANR reports don't have a stack trace, but when they do it's always the same:

Type
"main" prio=5 tid=1 Native
  #00  pc 000000000005ba14  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
  #00  pc 00000000000e4841  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 00000000002dcfdb  /apex/com.android.runtime/lib/libart.so (art::JNI::NewWeakGlobalRef(_JNIEnv*, _jobject*)+310)
  #00  pc 000000000028e541  /apex/com.android.runtime/lib/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>>*)+1572)
  #00  pc 00000000000039a1  /apex/com.android.runtime/lib/libopenjdkjvm.so (JVM_NativeLoad+248)
  at java.lang.Runtime.nativeLoad (Native method)
  at java.lang.Runtime.nativeLoad (Runtime.java:1115)
  at java.lang.Runtime.load0 (Runtime.java:936)
  at java.lang.System.load (System.java:1631)
  at com.facebook.soloader.SoLoader$1.load (SoLoader.java:405)
  at com.facebook.soloader.DirectorySoSource.loadLibraryFrom (DirectorySoSource.java:77)
  at com.facebook.soloader.UnpackingSoSource.loadLibrary (UnpackingSoSource.java:477)
  at com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:860)
  at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl (SoLoader.java:740)
  at com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:640)
  at com.facebook.soloader.DirectorySoSource.loadDependencies (DirectorySoSource.java:121)
  at com.facebook.soloader.DirectorySoSource.loadLibraryFrom (DirectorySoSource.java:71)
  at com.facebook.soloader.UnpackingSoSource.loadLibrary (UnpackingSoSource.java:477)
  at com.facebook.soloader.SoLoader.doLoadLibraryBySoName (SoLoader.java:860)
  at com.facebook.soloader.SoLoader.loadLibraryBySoNameImpl (SoLoader.java:740)
  at com.facebook.soloader.SoLoader.loadLibraryBySoName (SoLoader.java:654)
  at com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:634)
  at com.facebook.soloader.SoLoader.loadLibrary (SoLoader.java:582)
  at com.facebook.react.ReactInstanceManagerBuilder.getDefaultJSExecutorFactory (ReactInstanceManagerBuilder.java:305)
  at com.facebook.react.ReactInstanceManagerBuilder.build (ReactInstanceManagerBuilder.java:277)
  at com.facebook.react.ReactNativeHost.createReactInstanceManager (ReactNativeHost.java:89)
  at com.facebook.react.ReactNativeHost.getReactInstanceManager (ReactNativeHost.java:39)
  at com.my.app.MainApplication.onCreate (MainApplication.java:56)
  at android.app.Instrumentation.callApplicationOnCreate (Instrumentation.java:1190)
  at android.app.ActivityThread.handleBindApplication (ActivityThread.java:6479)
  at android.app.ActivityThread.access$1300 (ActivityThread.java:220)
  at android.app.ActivityThread$H.handleMessage (ActivityThread.java:1860)
  at android.os.Handler.dispatchMessage (Handler.java:107)
  at android.os.Looper.loop (Looper.java:214)
  at android.app.ActivityThread.main (ActivityThread.java:7397)
  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:935)
Type
"Jit thread pool worker thread 0" daemon prio=5 tid=6 Native
  #00  pc 000000000005ba14  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
  #00  pc 00000000000e4841  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 00000000003c49d9  /apex/com.android.runtime/lib/libart.so (art::ThreadPool::GetTask(art::Thread*)+172)
  #00  pc 00000000003c4165  /apex/com.android.runtime/lib/libart.so (art::ThreadPoolWorker::Run()+72)
  #00  pc 00000000003c3db7  /apex/com.android.runtime/lib/libart.so (art::ThreadPoolWorker::Callback(void*)+90)
  #00  pc 00000000000aa8bb  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000061993  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
Type
"FinalizerWatchdogDaemon" daemon prio=5 tid=8 Sleeping
  at java.lang.Thread.sleep (Native method)
  at java.lang.Thread.sleep (Thread.java:440)
  at java.lang.Thread.sleep (Thread.java:356)
  at java.lang.Daemons$FinalizerWatchdogDaemon.sleepForMillis (Daemons.java:383)
  at java.lang.Daemons$FinalizerWatchdogDaemon.waitForFinalization (Daemons.java:411)
  at java.lang.Daemons$FinalizerWatchdogDaemon.runInternal (Daemons.java:323)
  at java.lang.Daemons$Daemon.run (Daemons.java:137)
  at java.lang.Thread.run (Thread.java:919)
Type
"FinalizerDaemon" daemon prio=5 tid=9 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)
Type
"ReferenceQueueDaemon" daemon prio=5 tid=10 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)
Type
"Binder:3582_1" prio=5 tid=12 Native
  #00  pc 000000000009a654  /apex/com.android.runtime/lib/bionic/libc.so (__ioctl+8)
  #00  pc 00000000000660b5  /apex/com.android.runtime/lib/bionic/libc.so (ioctl+28)
  #00  pc 000000000003b04b  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+206)
  #00  pc 000000000003b1a1  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+8)
  #00  pc 000000000003b793  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
  #00  pc 00000000000548a5  /system/lib/libbinder.so (android::PoolThread::threadLoop()+12)
  #00  pc 000000000000da57  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+214)
  #00  pc 0000000000080edd  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+88)
  #00  pc 00000000000aa8bb  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000061993  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
Type
"Binder:3582_2" prio=5 tid=13 Native
  #00  pc 000000000009a654  /apex/com.android.runtime/lib/bionic/libc.so (__ioctl+8)
  #00  pc 00000000000660b5  /apex/com.android.runtime/lib/bionic/libc.so (ioctl+28)
  #00  pc 000000000003b04b  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+206)
  #00  pc 000000000003b1a1  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+8)
  #00  pc 000000000003b793  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
  #00  pc 00000000000548a5  /system/lib/libbinder.so (android::PoolThread::threadLoop()+12)
  #00  pc 000000000000da57  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+214)
  #00  pc 0000000000080edd  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+88)
  #00  pc 00000000000aa8bb  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000061993  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
Type
"Binder:3582_3" prio=5 tid=14 Native
  #00  pc 000000000009a654  /apex/com.android.runtime/lib/bionic/libc.so (__ioctl+8)
  #00  pc 00000000000660b5  /apex/com.android.runtime/lib/bionic/libc.so (ioctl+28)
  #00  pc 000000000003b04b  /system/lib/libbinder.so (android::IPCThreadState::talkWithDriver(bool)+206)
  #00  pc 000000000003b1a1  /system/lib/libbinder.so (android::IPCThreadState::getAndExecuteCommand()+8)
  #00  pc 000000000003b793  /system/lib/libbinder.so (android::IPCThreadState::joinThreadPool(bool)+38)
  #00  pc 00000000000548a5  /system/lib/libbinder.so (android::PoolThread::threadLoop()+12)
  #00  pc 000000000000da57  /system/lib/libutils.so (android::Thread::_threadLoop(void*)+214)
  #00  pc 0000000000080edd  /system/lib/libandroid_runtime.so (android::AndroidRuntime::javaThreadShell(void*)+88)
  #00  pc 00000000000aa8bb  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000061993  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
Type
"Profile Saver" daemon prio=5 tid=15 Native
  #00  pc 000000000005ba18  /apex/com.android.runtime/lib/bionic/libc.so (syscall+32)
  #00  pc 00000000000e4b5f  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::TimedWait(art::Thread*, long long, int)+102)
  #00  pc 000000000026617f  /apex/com.android.runtime/lib/libart.so (art::ProfileSaver::Run()+614)
  #00  pc 0000000000269093  /apex/com.android.runtime/lib/libart.so (art::ProfileSaver::RunProfileSaverThread(void*)+50)
  #00  pc 00000000000aa8bb  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000061993  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
Type
"pool-1-thread-1" prio=5 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 java.lang.Thread.run (Thread.java:919)
Type
"ScionFrontendApi" prio=5 tid=17 TimedWaiting
  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)
Type
"queued-work-looper" prio=5 tid=18 Native
  #00  pc 000000000009a518  /apex/com.android.runtime/lib/bionic/libc.so (__epoll_pwait+20)
  #00  pc 000000000006a0a1  /apex/com.android.runtime/lib/bionic/libc.so (epoll_wait+16)
  #00  pc 000000000001084b  /system/lib/libutils.so (android::Looper::pollInner(int)+118)
  #00  pc 000000000001075b  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+30)
  #00  pc 00000000000d334f  /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24)
  at android.os.MessageQueue.nativePollOnce (Native method)
  at android.os.MessageQueue.next (MessageQueue.java:336)
  at android.os.Looper.loop (Looper.java:174)
  at android.os.HandlerThread.run (HandlerThread.java:67)
Type
"pool-8-thread-1" prio=5 tid=19 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)
Type
"RxCachedWorkerPoolEvictor-1" daemon prio=5 tid=20 TimedWaiting
  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)
Type
"RxSchedulerPurge-1" daemon prio=5 tid=21 TimedWaiting
  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)
Type
"Measurement Worker" prio=5 tid=22 Native
  #00  pc 000000000005ba14  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
  #00  pc 00000000000e4841  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 00000000002dcbb3  /apex/com.android.runtime/lib/libart.so (art::JNI::ReleaseStringCritical(_JNIEnv*, _jstring*, unsigned short const*)+322)
  #00  pc 00000000000d3f1d  /system/lib/libandroid_runtime.so (android::android_os_Parcel_writeInterfaceToken(_JNIEnv*, _jclass*, long long, _jstring*)+100)
  at android.os.Parcel.nativeWriteInterfaceToken (Native method)
  at android.os.Parcel.writeInterfaceToken (Parcel.java:619)
  at android.content.pm.IPackageManager$Stub$Proxy.getApplicationInfo (IPackageManager.java:5201)
  at android.app.ApplicationPackageManager.getApplicationInfoAsUser (ApplicationPackageManager.java:403)
  at android.app.ApplicationPackageManager.getApplicationInfo (ApplicationPackageManager.java:396)
  at com.google.android.gms.common.wrappers.PackageManagerWrapper.getApplicationInfo
  at com.google.android.gms.measurement.internal.zzy.zzx
  at com.google.android.gms.measurement.internal.zzy.zzf
  at com.google.android.gms.measurement.internal.zzy.zzg
  at com.google.android.gms.measurement.internal.zzek.zza
  at com.google.android.gms.measurement.internal.zzio.zzb
  at com.google.android.gms.measurement.internal.zzio.zza
  at com.google.android.gms.measurement.internal.zzfv.zza
  at com.google.android.gms.measurement.internal.zzfx.run
  at java.util.concurrent.Executors$RunnableAdapter.call (Executors.java:462)
  at java.util.concurrent.FutureTask.run (FutureTask.java:266)
  at com.google.android.gms.measurement.internal.zzfs.run
Type
"firebase-installations-executor-1" prio=5 tid=23 TimedWaiting
  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)
Type
"firebase-installations-executor-2" prio=5 tid=24 TimedWaiting
  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)
Type
"RxCachedThreadScheduler-1" daemon prio=5 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.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)
Type
"firebase-iid-executor" prio=5 tid=26 TimedWaiting
  at sun.misc.Unsafe.park (Native method)
  at java.util.concurrent.locks.LockSupport.parkNanos (LockSupport.java:230)
  at java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.awaitNanos (AbstractQueuedSynchronizer.java:2109)
  at java.util.concurrent.LinkedBlockingQueue.poll (LinkedBlockingQueue.java:467)
  at java.util.concurrent.ThreadPoolExecutor.getTask (ThreadPoolExecutor.java:1091)
  at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1152)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:641)
  at com.google.android.gms.common.util.concurrent.zza.run
  at java.lang.Thread.run (Thread.java:919)
Type
"Picasso-Stats" prio=5 tid=27 Native
  #00  pc 000000000009a518  /apex/com.android.runtime/lib/bionic/libc.so (__epoll_pwait+20)
  #00  pc 000000000006a0a1  /apex/com.android.runtime/lib/bionic/libc.so (epoll_wait+16)
  #00  pc 000000000001084b  /system/lib/libutils.so (android::Looper::pollInner(int)+118)
  #00  pc 000000000001075b  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+30)
  #00  pc 00000000000d334f  /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24)
  at android.os.MessageQueue.nativePollOnce (Native method)
  at android.os.MessageQueue.next (MessageQueue.java:336)
  at android.os.Looper.loop (Looper.java:174)
  at android.os.HandlerThread.run (HandlerThread.java:67)
Type
"Picasso-Dispatcher" prio=5 tid=28 Native
  #00  pc 000000000009a518  /apex/com.android.runtime/lib/bionic/libc.so (__epoll_pwait+20)
  #00  pc 000000000006a0a1  /apex/com.android.runtime/lib/bionic/libc.so (epoll_wait+16)
  #00  pc 000000000001084b  /system/lib/libutils.so (android::Looper::pollInner(int)+118)
  #00  pc 000000000001075b  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+30)
  #00  pc 00000000000d334f  /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24)
  at android.os.MessageQueue.nativePollOnce (Native method)
  at android.os.MessageQueue.next (MessageQueue.java:336)
  at android.os.Looper.loop (Looper.java:174)
  at android.os.HandlerThread.run (HandlerThread.java:67)
Type
"Picasso-refQueue" daemon prio=5 tid=29 TimedWaiting
  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 com.squareup.picasso.Picasso$CleanupThread.run (Picasso.java:631)
Type
"pool-13-thread-1" prio=5 tid=30 TimedWaiting
  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)
Type
"GoogleApiHandler" prio=5 tid=31 Native
  #00  pc 000000000009a518  /apex/com.android.runtime/lib/bionic/libc.so (__epoll_pwait+20)
  #00  pc 000000000006a0a1  /apex/com.android.runtime/lib/bionic/libc.so (epoll_wait+16)
  #00  pc 000000000001084b  /system/lib/libutils.so (android::Looper::pollInner(int)+118)
  #00  pc 000000000001075b  /system/lib/libutils.so (android::Looper::pollOnce(int, int*, int*, void**)+30)
  #00  pc 00000000000d334f  /system/lib/libandroid_runtime.so (android::android_os_MessageQueue_nativePollOnce(_JNIEnv*, _jobject*, long long, int)+24)
  at android.os.MessageQueue.nativePollOnce (Native method)
  at android.os.MessageQueue.next (MessageQueue.java:336)
  at android.os.Looper.loop (Looper.java:174)
  at android.os.HandlerThread.run (HandlerThread.java:67)
Type
"Firebase-Messaging-Topics-Io" prio=5 tid=32 Waiting
  at sun.m
Type
"Signal Catcher" daemon prio=5 tid=7 Runnable
  #00  pc 00000000003035ff  /apex/com.android.runtime/lib/libart.so (art::DumpNativeStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, int, BacktraceMap*, char const*, art::ArtMethod*, void*, bool)+78)
  #00  pc 00000000003ae36f  /apex/com.android.runtime/lib/libart.so (art::Thread::DumpStack(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+362)
  #00  pc 00000000003aab23  /apex/com.android.runtime/lib/libart.so (art::Thread::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool, BacktraceMap*, bool) const+34)
  #00  pc 00000000003c36c9  /apex/com.android.runtime/lib/libart.so (art::DumpCheckpoint::Run(art::Thread*)+588)
  #00  pc 00000000003bde4d  /apex/com.android.runtime/lib/libart.so (art::ThreadList::RunCheckpoint(art::Closure*, art::Closure*)+296)
  #00  pc 00000000003bd579  /apex/com.android.runtime/lib/libart.so (art::ThreadList::Dump(std::__1::basic_ostream<char, std::__1::char_traits<char>>&, bool)+1408)
  #00  pc 00000000003bceb3  /apex/com.android.runtime/lib/libart.so (art::ThreadList::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+642)
  #00  pc 000000000038769b  /apex/com.android.runtime/lib/libart.so (art::Runtime::DumpForSigQuit(std::__1::basic_ostream<char, std::__1::char_traits<char>>&)+134)
  #00  pc 0000000000396283  /apex/com.android.runtime/lib/libart.so (art::SignalCatcher::HandleSigQuit()+1054)
  #00  pc 00000000003956d7  /apex/com.android.runtime/lib/libart.so (art::SignalCatcher::Run(void*)+242)
  #00  pc 00000000000aa8bb  /apex/com.android.runtime/lib/bionic/libc.so (__pthread_start(void*)+20)
  #00  pc 0000000000061993  /apex/com.android.runtime/lib/bionic/libc.so (__start_thread+30)
Type
"HeapTaskDaemon" daemon prio=5 tid=11 WaitingForTaskProcessor
  #00  pc 000000000005ba14  /apex/com.android.runtime/lib/bionic/libc.so (syscall+28)
  #00  pc 00000000000e4841  /apex/com.android.runtime/lib/libart.so (art::ConditionVariable::WaitHoldingLocks(art::Thread*)+80)
  #00  pc 00000000001d4587  /apex/com.android.runtime/lib/libart.so (art::gc::TaskProcessor::GetTask(art::Thread*)+294)
  #00  pc 00000000001d4bc9  /apex/com.android.runtime/lib/libart.so (art::gc::TaskProcessor::RunAllTasks(art::Thread*)+48)
  at dalvik.system.VMRuntime.runHeapTasks (Native method)
  at java.lang.Daemons$HeapTaskDaemon.runInternal (Daemons.java:523)
  at java.lang.Daemons$Daemon.run (Daemons.java:137)
  at java.lang.Thread.run (Thread.java:919)

@google-oss-bot
Copy link
Contributor

Hey @saumilvaghelaGS. 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
Contributor

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

@saumilvaghelaGS 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.

@huangqinpingV1
Copy link

this is my anr .

2021-11-29 17:20:53.007 3522-18923/? I/Authzen: [ProximitySyncManager] Generating new permitaccess {"publicKey":"CAESRgohAPafQ96rHmoGYMtKxb33VhtjcoI0kbileXZwdB1oqhm0EiEA9Q4CYAiq3voJPQmvr8ws_SG06hVF_QWNmbB9RM_PLY4=",
"pixelPhone":false,"beaconSeeds":[{"endTimeMillis":1637798400000,"startTimeMillis":1636588800000,
"data":"c9hUkdHnRaoDkBESDyCDHheFMr-9UskVnTmT1EZl_60="},{"endTimeMillis":1639008000000,
"startTimeMillis":1637798400000,"data":"J_dZ5poXpdaz0JIC5fXm5KBrhvEPtbanRJibmV6NxAA="},
{"endTimeMillis":1640217600000,"startTimeMillis":1639008000000,"data":"PoEjnDqaw_pPnRpb60TCoaRKFMDJo-TPSm8BOvuis_s="},
{"endTimeMillis":1641427200000,"startTimeMillis":1640217600000,"data":"XucfYZqx6gweHuEkA6M1fZJGatCPtxcZYjjFqvd4qH8="}],
"deviceType":"android","supportedSoftwareFeatures":["phoneHubHost","magicTetherHost","wifiSyncHost","smsConnectHost",
"easyUnlockHost","betterTogetherHost"],"unlockable":false,"mobileHotspotSupported":true,"unlockKey":false,"arcPlusPlus":false,
"lastUpdateTimeMillis":1638142022810,"friendlyDeviceName":"Huawei P30","noPiiDeviceName":"Huawei P30"}.
2021-11-29 17:21:36.617 2946-2946/? I/_V_AppStore.PushTestUtil: PushTest canRequest:false currentTime:1638177696634 lastRequestTime:1638169439671
2021-11-29 17:22:20.417 1464-1531/? E/ActivityManager: ANR in com.xxx.xxx
PID: 18294
Reason: Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10 pkg=com.xxx.xxx
cmp=com.xxx.xxx/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }
2021-11-29 17:22:20.447 1464-1531/? W/ContextImpl: Calling a method in the system process without a
qualified user: android.app.ContextImpl.sendBroadcast:765 com.vivo.services.perfservice.VivoPerfService.setANR:271
com.android.server.am.ActivityManagerService.appNotResponding:6509 com.android.server.am.BroadcastQueue$AppNotResponding.run:285
android.os.Handler.handleCallback:739
2021-11-29 17:22:20.447 1464-1531/? D/VivoPerfService: 1030_5: ANR in com.xxx.xxx
PID: 18294
Reason: Broadcast of Intent { act=com.google.android.c2dm.intent.RECEIVE flg=0x10 pkg=com.xxx.xxx cmp=com.xxx.xxx/com.google.firebase.iid.FirebaseInstanceIdReceiver (has extras) }

login google account from othe devies ,the app login by this account with firebase may anr

@argzdev
Copy link
Contributor

argzdev commented Dec 1, 2021

Hi @huangqinpingV1, since this was previously closed, it was discussed that this should be a separate issue instead. With that said, please open a new ticket for your issue, thanks!

@argzdev argzdev closed this as completed Dec 1, 2021
@firebase firebase locked and limited conversation to collaborators Jan 1, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

8 participants