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

🐛 [firebase_auth] NPE: io.flutter.plugins.firebase.auth.FlutterFirebaseAuthPlugin.removeEventListeners #10164

Closed
rohansohonee1 opened this issue Dec 22, 2022 · 5 comments · Fixed by #10210
Labels
Needs Attention This issue needs maintainer attention. platform: android Issues / PRs which are specifically for Android. plugin: auth resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working type: crash A compile error or crash

Comments

@rohansohonee1
Copy link

Bug report

Describe the bug
NPE reported from firebase crashlytics.

Steps to reproduce

Unable to reproduce.

Expected behavior

Should not crash.


Additional context

Stacktrace:

Caused by java.lang.NullPointerException: Attempt to invoke interface method 'void fe.d$d.h(java.lang.Object)' on a null object reference
       at io.flutter.plugins.firebase.auth.FlutterFirebaseAuthPlugin.removeEventListeners(FlutterFirebaseAuthPlugin.java)
       at io.flutter.plugins.firebase.auth.FlutterFirebaseAuthPlugin.onDetachedFromEngine(FlutterFirebaseAuthPlugin.java)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.remove(FlutterEngineConnectionRegistry.java)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.remove(FlutterEngineConnectionRegistry.java)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.removeAll(FlutterEngineConnectionRegistry.java)
       at io.flutter.embedding.engine.FlutterEngineConnectionRegistry.destroy(FlutterEngineConnectionRegistry.java)
       at io.flutter.embedding.engine.FlutterEngine.destroy(FlutterEngine.java)
       at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach(FlutterActivityAndFragmentDelegate.java)
       at io.flutter.embedding.android.FlutterActivity.onDestroy(FlutterActivity.java)
       at android.app.Activity.performDestroy(Activity.java:6442)
       at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1143)
       at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:3877)
       at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:3908)
       at android.app.ActivityThread.access$1500(ActivityThread.java:157)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1410)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:148)
       at android.app.ActivityThread.main(ActivityThread.java:5551)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:731)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:621)

Device details:

Brand:LGE
Model:LG K8
Orientation: Portrait
RAM free: 240.06 MB
Disk free: 393.45 MB
Operating System
Version:Android 6.0
Orientation: Portrait
Rooted:No
Crash
Date:Dec 22, 2022, 6:52:46 AM

Flutter doctor

Click To Expand
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.3.8, on macOS 12.6.2 21G320 darwin-x64, locale en-US)                                                                                                                                                   Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.3)
[✓] VS Code (version 1.74.2)
[✓] Connected device (3 available)
[✓] HTTP Host Availability

• No issues found!


Pubspec.yaml

firebase_core: 2.3.0
firebase_auth: 4.1.3
@rohansohonee1 rohansohonee1 added Needs Attention This issue needs maintainer attention. type: bug Something isn't working labels Dec 22, 2022
@darshankawar darshankawar added the triage Issue is currently being triaged. label Dec 23, 2022
@darshankawar
Copy link

Since this seems to be coming from production and no concrete steps to replicate and code sample, I'll label this for team's attention and insights.
May be similar to: #9210

@darshankawar
Copy link

/cc @Lyokone

@darshankawar darshankawar added plugin: auth type: crash A compile error or crash platform: android Issues / PRs which are specifically for Android. and removed Needs Attention This issue needs maintainer attention. triage Issue is currently being triaged. labels Dec 23, 2022
@Lyokone
Copy link
Contributor

Lyokone commented Dec 23, 2022

Hello I'm going to take a look at this.
You can get readable bug report by following those steps: https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=flutter / https://firebase.google.com/docs/crashlytics/get-deobfuscated-reports?platform=android

@Lyokone Lyokone added the blocked: customer-response Waiting for customer response, e.g. more information was requested. label Dec 23, 2022
@google-oss-bot google-oss-bot added the Stale Issue with no recent activity label Jan 3, 2023
@google-oss-bot
Copy link

Hey @rohansohonee1. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 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!

@rohansohonee1
Copy link
Author

Caused by java.lang.NullPointerException: Attempt to invoke interface method 'void onCancel(java.lang.Object)' on a null object reference

@google-oss-bot google-oss-bot added Needs Attention This issue needs maintainer attention. and removed Stale Issue with no recent activity blocked: customer-response Waiting for customer response, e.g. more information was requested. labels Jan 3, 2023
@darshankawar darshankawar added the resolution: fixed A fix has been merged or is pending merge from a PR. label Jan 5, 2023
@firebase firebase locked and limited conversation to collaborators Feb 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Needs Attention This issue needs maintainer attention. platform: android Issues / PRs which are specifically for Android. plugin: auth resolution: fixed A fix has been merged or is pending merge from a PR. type: bug Something isn't working type: crash A compile error or crash
Projects
None yet
4 participants