firebase / firebase-android-sdk

Firebase Android SDK
https://firebase.google.com
Apache License 2.0
2.27k stars 575 forks source link

firebase-auth:22.1.1 - com.google.android.gms.internal.firebase-auth-api.zzwk: java.lang.NullPointerException #5311

Closed shyvum closed 1 year ago

shyvum commented 1 year ago

[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:

[REQUIRED] Step 2: Describe your environment

[REQUIRED] Step 3: Describe the problem

Since upgrading our Firebase BOM to 32.2.2, we've received several obfuscated crash reports in Firebase Crashlytics that we cannot reproduce or diagnose.

Steps to reproduce:

Have not been able to reproduce. Crashes generally occur within a second of the session's start.

Relevant Code:

Fatal Exception: com.google.android.gms.internal.firebase-auth-api.zzwk: java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.internal.zzt.f()' on a null object reference
       at com.google.firebase.auth.internal.zzbt.zzd(com.google.firebase:firebase-auth@@22.1.1:38)
       at com.google.firebase.auth.FirebaseAuth.zzT(com.google.firebase:firebase-auth@@22.1.1:14)
       at com.google.firebase.auth.zzx.zza(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzzc.zzb(com.google.firebase:firebase-auth@@22.1.1:3)
       at com.google.android.gms.internal.firebase-auth-api.zzabs.zzj(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzabp.zzq(com.google.firebase:firebase-auth@@22.1.1:2)
       at com.google.android.gms.internal.firebase-auth-api.zzaaq.zzq(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzxj.zzb(com.google.firebase:firebase-auth@@22.1.1:2)
       at com.google.android.gms.internal.firebase-auth-api.zzaca.zzc(com.google.firebase:firebase-auth@@22.1.1:12)
       at com.google.android.gms.internal.firebase-auth-api.zzaca.zzb(com.google.firebase:firebase-auth@@22.1.1:14)
       at com.google.android.gms.internal.firebase-auth-api.zzabf.zzf(com.google.firebase:firebase-auth@@22.1.1:4)
       at com.google.android.gms.internal.firebase-auth-api.zzys.zzp(com.google.firebase:firebase-auth@@22.1.1:4)
       at com.google.android.gms.internal.firebase-auth-api.zzaar.zzj(com.google.firebase:firebase-auth@@22.1.1:3)
       at com.google.android.gms.internal.firebase-auth-api.zzzc.zzc(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzabt.run(com.google.firebase:firebase-auth@@22.1.1:1)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
       at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java:47)
       at java.lang.Thread.run(Thread.java:1012)

Caused by java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.String com.google.firebase.auth.internal.zzt.f()' on a null object reference
       at com.google.firebase.auth.internal.zzbt.zzd(com.google.firebase:firebase-auth@@22.1.1:16)
       at com.google.firebase.auth.FirebaseAuth.zzT(com.google.firebase:firebase-auth@@22.1.1:14)
       at com.google.firebase.auth.zzx.zza(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzzc.zzb(com.google.firebase:firebase-auth@@22.1.1:3)
       at com.google.android.gms.internal.firebase-auth-api.zzabs.zzj(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzabp.zzq(com.google.firebase:firebase-auth@@22.1.1:2)
       at com.google.android.gms.internal.firebase-auth-api.zzaaq.zzq(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzxj.zzb(com.google.firebase:firebase-auth@@22.1.1:2)
       at com.google.android.gms.internal.firebase-auth-api.zzaca.zzc(com.google.firebase:firebase-auth@@22.1.1:12)
       at com.google.android.gms.internal.firebase-auth-api.zzaca.zzb(com.google.firebase:firebase-auth@@22.1.1:14)
       at com.google.android.gms.internal.firebase-auth-api.zzabf.zzf(com.google.firebase:firebase-auth@@22.1.1:4)
       at com.google.android.gms.internal.firebase-auth-api.zzys.zzp(com.google.firebase:firebase-auth@@22.1.1:4)
       at com.google.android.gms.internal.firebase-auth-api.zzaar.zzj(com.google.firebase:firebase-auth@@22.1.1:3)
       at com.google.android.gms.internal.firebase-auth-api.zzzc.zzc(com.google.firebase:firebase-auth@@22.1.1:1)
       at com.google.android.gms.internal.firebase-auth-api.zzabt.run(com.google.firebase:firebase-auth@@22.1.1:1)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
       at com.google.firebase.concurrent.CustomThreadFactory.lambda$newThread$0(CustomThreadFactory.java:47)
       at java.lang.Thread.run(Thread.java:1012)
google-oss-bot commented 1 year ago

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

UKMIITB commented 1 year ago

Please prioritise & fix this issue. It is impacting many users

argzdev commented 1 year ago

Thanks for reaching out, @ShivamGoyal1899. I've notified our engineers regarding the issue. We'll keep you posted once we get updates.

shyvum commented 1 year ago

@9468lgy This is a different issue and is tracked in #5266

9468lgy commented 1 year ago

@9468lgy This is a different issue and is tracked in #5266

Ok,thanks

argzdev commented 1 year ago

Hi folks, a new version of Firebase Auth has been released. That said could you try the latest version 22.1.2 and see if the issue still persists? Thanks!

UKMIITB commented 1 year ago

@argzdev When would this version come as part of firebase BOM ? Currently we are using BOM, will there be any compatibility issue if BOM 32.3.1 is used but for auth we use 22.1.2 ?

argzdev commented 1 year ago

@UKMIITB, the Firebase BoM version 32.3.1 already have the latest version of Firebase Auth 22.1.2. There shouldn't be any issues using either option (BoM or auth)

UKMIITB commented 1 year ago

@argzdev Noted. Have updated the version. Will update here once after rollout is increased to a significant number

google-oss-bot commented 1 year ago

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

shyvum commented 1 year ago

Public Build with the fix went live yesterday. We are still monitoring the fix if it's working.

Will update here once after rollout is increased to a significant number.

argzdev commented 1 year ago

Got it, let's keep this open for now for monitoring. Thanks folks!

argzdev commented 1 year ago

Hi all, I'm assuming that the issue has been fixed, since it's been 2 weeks or so. Let me know if the issue is still present in the latest version. Thanks!

takashi8 commented 11 months ago

Hi,

FirebaseUI issue with SafetyNet API (https://github.com/firebase/FirebaseUI-Android/issues/2133) has keeped https://github.com/firebase/firebase-android-sdk/issues/5148 open as mentioned at https://github.com/firebase/firebase-android-sdk/issues/5148#issuecomment-1658154057, but it has been migrated here and seems lost update.

Just an update, our engineers are already working to updating the https://github.com/firebase/FirebaseUI-Android/issues/2133. We can wait for the latest version release, and see if that fixes the issue. I'll leave this open for now.

@argzdev Do you know any update? Thanks in advance.

argzdev commented 11 months ago

Hi @takashi8, it looks like the issue with FirebaseUI with SafetyNet API that requires BoM update already has a committed PR in another branch (version-8.1.0-dev). Let me ask our engineer to see if when we'll get this merged to the main branch.