Repository: firebase/firebase-android-sdk

Issue #1528: IllegalStateException in FirebaseInstanceId
Created: 2020-05-05T17:46:33Z
[REQUIRED] Step 2: Describe your environment

Android Studio version: Tried on both 3.6.3 and 4.0.0-beta05
Firebase Component: Firebase IID (via messaging or installations
Component version:
We have direct deps on:

FIREBASE_ANALYTICS = "17.3.0"
FIREBASE_MESSAGING = "20.1.5"
FIREBASE_PERF = "19.0.6"
FIREBASE_CRASHLYTICS = "17.0.0-beta04"

Firebase installations resolves to 16.2.1
[REQUIRED] Step 3: Describe the problem
We have a significant number of crash reports in crashlytics with this obfuscated stack trace:
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:919)

This is currently by far our largest open crash cluster
It is very similar to #1339, but I was advised by @TKBurner to create a new ticket since that was was marked closed in an older sdk version. I'm happy to provide any additional data that might help here.
Steps to reproduce:
We don't have a local repro for this issue, but it's certainly affecting people in the wild.
cc @andirayo who worked on the original issue

Duplicate issue #1494: Probability of occurrence in performace sdk 19.0.5 
Created: 2020-04-23T11:10:12Z
from firebase Crashlytics console,I found some crash issue in performance sdk code,about 500+ everyday, crash rate 0.5% in my app,but i can't reproduce this issue, Probability of occurrence.
below is the log,can anyone who kindly help me? my google service version is 17.0.0
Fatal Exception: java.lang.NullPointerException
Attempt to invoke virtual method 'void com.google.firebase.perf.internal.zzv.zzc(boolean)' on a null object reference
com.google.firebase.perf.internal.zzf.zzd (com.google.firebase:firebase-perf@@19.0.5:170)
com.google.firebase.perf.internal.zzi.run (com.google.firebase:firebase-perf@@19.0.5:2)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1133)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:607)
java.lang.Thread.run (Thread.java:762)
Fatal Exception: java.lang.IllegalStateException
com.google.firebase.iid.FirebaseInstanceId.zzl (com.google.firebase:firebase-iid@@20.1.1:75)
com.google.firebase.iid.FirebaseInstanceId.getId (com.google.firebase:firebase-iid@@20.1.1:49)
com.google.firebase.perf.internal.zzf.zzbu (com.google.firebase:firebase-perf@@19.0.5:181)
com.google.firebase.perf.internal.zzf.zzbt (com.google.firebase:firebase-perf@@19.0.5:44)
com.google.firebase.perf.internal.zzf.zzc (com.google.firebase:firebase-perf@@19.0.5:195)
com.google.firebase.perf.internal.zze.run (com.google.firebase:firebase-perf@@19.0.5:2)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1112)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:587)
java.lang.Thread.run (Thread.java:841)

Closing comment (2020-05-26T20:15:02Z): At a quick look of it, this issue is very similar to #1528 . Marking this as a duplicate as the other issue is tracking the progress.