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

Fatal Exception: java.lang.IllegalStateException [Performance Monitoring] #1454

Closed
reactivedroid opened this issue Apr 13, 2020 · 9 comments
Closed

Comments

@reactivedroid
Copy link

Multiple crashes on production:

Fatal Exception: java.lang.IllegalStateException
       at com.google.firebase.iid.FirebaseInstanceId.h(com.google.firebase:firebase-iid@@20.1.0:12)
       at com.google.firebase.iid.FirebaseInstanceId.a(com.google.firebase:firebase-iid@@20.1.0:14)
       at e.j.c.r.b.f.a(com.google.firebase:firebase-perf@@19.0.5:63)
       at e.j.c.r.b.e.run(com.google.firebase:firebase-perf@@19.0.5:22)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)
       at java.lang.Thread.run(Thread.java:764)

I am not able to reproduce the issue on the live setup.
This is occurring on all supported Android OS (5 to 9).

Firebase Component: Performance Monitoring

Version: 19.0.5

I understand that 19.0.6 was released with an NPE fix. I am doubtful that upgrading to the latest will fix the issue.

@ramanpreetSinghKhinda
Copy link
Contributor

Hi @Ashwini009,

Thanks for reaching out~

This looks very similar to #1339. See if the suggestions in #1397 (comment) helps?

Can you also provide more information on what other Firebase SDKs (and there version) are you using in the app?

@reactivedroid
Copy link
Author

reactivedroid commented Apr 14, 2020

Hi @ramanpreetSinghKhinda ,

I saw the issue #1339 , where it suggested to use FiebaseInstanceId version 20.1.5.
Note that, we never explicitly used the above dependency in our app.

Here are the firebase deps being used currently:

firebase_core = '17.2.1'
firebase_messaging = '20.1.1'
firebase_config = '19.1.3'
firebase_perf = '19.0.5'
firebase_analytics = '17.2.3'
firebase_dynamic_links = '19.1.0'
firebase_vision = '24.0.0'

We will remove core in the next release since it is implicitly part of analytics once we will update all other deps. Pls let me know if this helps

@andirayo
Copy link
Contributor

You can upgrade firebase_messaging to v20.1.5 and you will get FirebaseInstanceId version 20.1.5 implicitly. No need to add an explicit dependency.

@zijianjoy zijianjoy added the firebase-installations Firebase Installations service label Apr 14, 2020
@reactivedroid
Copy link
Author

Updating firebase-messaging to 20.1.5 fixed the issue.

@Gnzlt
Copy link

Gnzlt commented May 4, 2020

I still have the same issue with 20.1.5

Fatal Exception: java.lang.IllegalStateException
       at com.google.firebase.iid.FirebaseInstanceId.zzl(FirebaseInstanceId.java:70)
       at com.google.firebase.iid.FirebaseInstanceId.getId(FirebaseInstanceId.java:48)
       at com.google.firebase.perf.internal.zzf.zzbv(zzf.java:181)
       at com.google.firebase.perf.internal.zzf.zzbu(zzf.java:44)
       at com.google.firebase.perf.internal.zzf.zzc(zzf.java:195)
       at com.google.firebase.perf.internal.zze.run(zze.java:2)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
       at java.lang.Thread.run(Thread.java:764)

@ramanpreetSinghKhinda
Copy link
Contributor

ramanpreetSinghKhinda commented May 6, 2020

@Gnzlt Thanks for reaching out. Your stack traces looks very similar to -> #1528

Can you followup there?

@ankitaj224
Copy link
Contributor

@Gnzlt can you please attach the stack trace of all threads as seen in crashlytics reports?

@Gnzlt
Copy link

Gnzlt commented May 12, 2020

@Gnzlt can you please attach the stack trace of all threads as seen in crashlytics reports?

Hope it helps!
FirebaseInstanceId.log

@ankitaj224
Copy link
Contributor

@Gnzlt Thanks for the logs.

@firebase firebase locked and limited conversation to collaborators May 18, 2020
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

7 participants