You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Other relevant libraries: androidx.lifecycle 2.8.7
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
After upgrading firebase-bom from 33.1.0 to 33.12.0, I started receiving crash reports from users. The crash occurs during the initialization of FirebaseInitProvider, specifically in the Firebase Performance SDK, and appears to be related to DexCache and reflection.
Important: I have not been able to reproduce this crash on my own test devices or emulators. The issue has only been observed via crash reports from users in production.
How to reproduce:
Update firebase-bom to 33.12.0 in your build.gradle.
Build and run the app.
Some users experience a crash during startup (before any activity is shown), but it does not reproduce consistently or on all devices.
Stack trace (from user crash reports):
Fatal Exception: java.lang.RuntimeException: Unable to get provider com.google.firebase.provider.FirebaseInitProvider: java.lang.ArrayIndexOutOfBoundsException: length=34652; index=-32275
at android.app.ActivityThread.installProvider(ActivityThread.java:6765)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6357)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6297)
at android.app.ActivityThread.access$1800(ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1860)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
Caused by java.lang.ArrayIndexOutOfBoundsException: length=34652; index=-32275
at java.lang.DexCache.getResolvedType(DexCache.java)
at java.lang.Class.getDexCacheType(Class.java:472)
at java.lang.Class.getInterfaces(Class.java:1029)
at java.lang.reflect.Proxy.getMethodsRecursive(Proxy.java:298)
at java.lang.reflect.Proxy.getMethods(Proxy.java:288)
at java.lang.reflect.Proxy.getProxyClass(Proxy.java:165)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:228)
at libcore.reflect.AnnotationFactory.createAnnotation(AnnotationFactory.java:95)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:666)
at libcore.reflect.AnnotationAccess.toAnnotationInstance(AnnotationAccess.java:641)
at libcore.reflect.AnnotationAccess.getDeclaredAnnotation(AnnotationAccess.java:170)
at java.lang.reflect.Method.getAnnotation(Method.java:300)
at androidx.lifecycle.ClassesInfoCache.hasLifecycleMethods(ClassesInfoCache.java:56)
at androidx.lifecycle.Lifecycling.resolveObserverCallbackType(Lifecycling.jvm.kt:132)
at androidx.lifecycle.Lifecycling.getObserverConstructorType(Lifecycling.jvm.kt:116)
at androidx.lifecycle.Lifecycling.lifecycleEventObserver(Lifecycling.java:51)
at androidx.lifecycle.LifecycleRegistry$ObserverWithState.<init>(LifecycleRegistry.java:313)
at androidx.lifecycle.LifecycleRegistry.addObserver(LifecycleRegistry.jvm.kt:182)
at com.google.firebase.perf.metrics.AppStartTrace.registerActivityLifecycleCallbacks(AppStartTrace.java:215)
at com.google.firebase.perf.FirebasePerfEarly.<init>(FirebasePerfEarly.java:50)
at com.google.firebase.perf.FirebasePerfRegistrar.lambda$getComponents$0(FirebasePerfRegistrar.java:75)
at com.google.firebase.tracing.ComponentMonitor.lambda$processRegistrar$0(ComponentMonitor.java:38)
at com.google.firebase.components.ComponentRuntime.lambda$discoverComponents$0(ComponentRuntime.java:160)
at com.google.firebase.components.Lazy.get(Lazy.java:53)
at com.google.firebase.components.ComponentRuntime.doInitializeEagerComponents(ComponentRuntime.java:322)
at com.google.firebase.components.ComponentRuntime.initializeEagerComponents(ComponentRuntime.java:312)
at com.google.firebase.FirebaseApp.initializeAllApis(FirebaseApp.java:607)
at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:300)
at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:264)
at com.google.firebase.FirebaseApp.initializeApp(FirebaseApp.java:249)
at com.google.firebase.provider.FirebaseInitProvider.onCreate(FirebaseInitProvider.java:69)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1789)
at android.content.ContentProvider.attachInfo(ContentProvider.java:1764)
at com.google.firebase.provider.FirebaseInitProvider.attachInfo(FirebaseInitProvider.java:61)
at android.app.ActivityThread.installProvider(ActivityThread.java:6762)
at android.app.ActivityThread.installContentProviders(ActivityThread.java:6357)
at android.app.ActivityThread.handleBindApplication(ActivityThread.java:6297)
at android.app.ActivityThread.access$1800(ActivityThread.java:221)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1860)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:158)
at android.app.ActivityThread.main(ActivityThread.java:7224)
at java.lang.reflect.Method.invoke(Method.java)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1230)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1120)
The text was updated successfully, but these errors were encountered:
Hi @isamotiuc, thank you for reaching out. I'm wondering if the issue is due to a race condition or specific device. Does this issue only occur on specific devices or versions?
Can you share your gradle dependencies, and are you using custom R8 rules? Thanks in advance!
Hey @isamotiuc. 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!
[READ] Step 1: Are you in the right place?
Yes, this issue is a crash.
[REQUIRED] Step 2: Describe your environment
[REQUIRED] Step 3: Describe the problem
Steps to reproduce:
After upgrading
firebase-bom
from33.1.0
to33.12.0
, I started receiving crash reports from users. The crash occurs during the initialization ofFirebaseInitProvider
, specifically in the Firebase Performance SDK, and appears to be related to DexCache and reflection.Important: I have not been able to reproduce this crash on my own test devices or emulators. The issue has only been observed via crash reports from users in production.
How to reproduce:
firebase-bom
to33.12.0
in yourbuild.gradle
.Stack trace (from user crash reports):
The text was updated successfully, but these errors were encountered: