Skip to content

[cloud_firestore] FirebaseAuth.instance.signOut() causes crash #15837

@nyvelius

Description

@nyvelius

Steps to Reproduce

  1. Switch to a new screen of type StatefulWidget using pushReplacementNamed.
  2. In the new screen, Call FirebaseAuth.instance.signOut() from initState()
  3. Result in logs below.

Logs

*** First throw call stack:
(
	0   CoreFoundation                      0x000000010e75412b __exceptionPreprocess + 171
	1   libobjc.A.dylib                     0x000000010dde8f41 objc_exception_throw + 48
	2   CoreFoundation                      0x000000010e7940cc _CFThrowFormattedException + 194
	3   CoreFoundation                      0x000000010e668951 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 321
	4   CoreFoundation                      0x000000010e6687db +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
	5   Runner                              0x000000010a0ef0db __51-[FLTCloudFirestorePlugin handleMethodCall:result:]_block_invoke.454 + 635
	6   Runner                              0x000000010a35cee5 __72-[FIRDocumentReference addSnapshotListenerInternalWithOptions:listener:]_bl<…>
Lost connection to device.

Flutter Doctor

flutter doctor -v
[✓] Flutter (Channel beta, v0.1.5, on Mac OS X 10.13.3 17D102, locale en-SE)
    • Flutter version 0.1.5 at /Users/mikael/Library/flutter
    • Framework revision 3ea4d06340 (4 weeks ago), 2018-02-22 11:12:39 -0800
    • Engine revision ead227f118
    • Dart version 2.0.0-dev.28.0.flutter-0b4f01f759

[✓] Android toolchain - develop for Android devices (Android SDK 27.0.3)
    • Android SDK at /Users/mikael/Library/Android/sdk
    • Android NDK location not configured (optional; useful for native profiling support)
    • Platform android-27, build-tools 27.0.3
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] iOS toolchain - develop for iOS devices (Xcode 9.2)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 9.2, Build version 9C40b
    • ios-deploy 1.9.2
    • CocoaPods version 1.4.0

[✓] Android Studio (version 3.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Java version OpenJDK Runtime Environment (build 1.8.0_152-release-915-b08)

[✓] IntelliJ IDEA Ultimate Edition (version 2017.3.5)
    • Flutter plugin version 22.2.2
    • Dart plugin version 173.4700

[✓] Connected devices (3 available)
    • iPhone 7 • F215FCBC-D6DE-4C2B-B1D9-E81C3CD4DC14     • ios           • iOS 11.2 (simulator)

• No issues found!

Metadata

Metadata

Assignees

Labels

c: crashStack traces logged to the consolep: firebaseFirebase pluginsp: firebase_authThe Firebase Auth pluginpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions