Closed nesterenko1pavel closed 1 month ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi @nesterenko1pavel, thank you for reporting the issue. I tried reproducing the issue by using the code snippet you shared, however, I did not encounter any ANRs.
I noticed that you’re using an old Firebase SDK version (BOM v29.3.0). Could you try updating to the latest version (BOM v33.5.0) to ensure that you have the latest bug fixes that might be causing these issues?
Aside from that, did you notice if there’s a common API version where this issue occurs? You mentioned that the ANR happened after changing to manual initialization, could you share the Firebase SDK version you’re using prior to these changes? If possible, can you share your Gradle files?
@lehcar09 Unfortunately my team can see Crashes only at Firebase Crashlytics. When I run application locally - it it unable to reproduce no matter how much I tested. You'r right - now use old version of Firebase SDK. We noticed that too. We have plan to update version, but it'll be at the beginning of the next year due to lots of other features that are currently introducing. Maybe we will decide to do it earlier in case of sharp increasing of crashes.
Project files unfortunately are under NDA. I can share particular info from Gradle files but not all. Can you elaborate on what are you interested in?
Could you share the versions that you're using for:
Android Gradle Plugin 8.2.2 Google Play Services "4.4.1" Crashlytics Gradle Plugin "2.9.9"
firebase-bom "29.3.0" firebase-analytics = { module = "com.google.firebase:firebase-analytics" } firebase-config-ktx = { module = "com.google.firebase:firebase-config-ktx" } firebase-crashlytics = { module = "com.google.firebase:firebase-crashlytics" } firebase-messaging = { module = "com.google.firebase:firebase-messaging" } firebase-pref-ktx = { module = "com.google.firebase:firebase-perf-ktx" }
firebase-ml-vision "24.1.0" firebase-perf-plugin "1.4.2"
Thank you for sharing those details @nesterenko1pavel. Unfortunately, I still wasn’t able to reproduce the issue. I’m thinking if the issue is caused by some race condition. However, I can’t say anything for sure. Without continuously reproducing the issue it will be hard to investigate the issue.
For now, I highly suggest updating to the latest Firebase SDK version (BOM V33.5.1) just to make sure that you have the latest bug fixes and improvements.
That said, I’ll close this issue now. If the issue persists after updating to the latest version, please file a new issue with the details that can help us investigate the issue.
[READ] Step 1: Are you in the right place?
Yes
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
After changes in application (according to Take Control of Your Firebase Init on Android) i.e. after custom ContentProvider was created I started getting crashes in crashlytics. There are 10k crashes so far. But problem dose not occur locally - I tried a lot different devices but without success to reproduce.
Relevant Code: DynamicContentProvider
I am getting Triggered ANR Root blocking
at my.application.provider.DynamicContentProvider.onCreate(DynamicContentProvider.kt:45)
, i.e atFirebaseApp.initializeApp(nonNullableContext, requireNotNull(options))
Messages from crashlytics: