-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Closed
flutter/plugins
#1921Labels
c: crashStack traces logged to the consoleStack traces logged to the consolep: firebase_authThe Firebase Auth pluginThe Firebase Auth pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.
Description
[✓] Flutter (Channel beta, v1.7.8+hotfix.4, on Mac OS X 10.14.6 18G84, locale en-US)
• Flutter version 1.7.8+hotfix.4 at
• Framework revision 20e59316b8 (9 days ago), 2019-07-18 20:04:33 -0700
• Engine revision fee001c93f
• Dart version 2.4.0
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.0)
• Android SDK at
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-29, build-tools 29.0.0
• ANDROID_HOME =
• 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-1343-b01)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 10.3)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 10.3, Build version 10G8
• CocoaPods version 1.7.4
[✓] iOS tools - develop for iOS devices
• ios-deploy 1.9.4
[✓] Android Studio (version 3.4)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 37.0.1
• Dart plugin version 183.6270
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1343-b01)
[✓] VS Code (version 1.34.0)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.2.0
[✓] Connected device (1 available)
• iPhone Xʀ • • ios • com.apple.CoreSimulator.SimRuntime.iOS-12-4 (simulator)
• No issues found!
Current latest dependencies as of this issue:
dependencies:
flutter:
sdk: flutter
# The following adds the Cupertino Icons font to your application.
# Use with the CupertinoIcons class for iOS style icons.
cupertino_icons: any
provider: any
barcode_scan: any
shared_preferences: any
dio: any
firebase_core: any
firebase_database: any
firebase_auth: any
My code is pretty simple. The crash happens as it is executed. I confirmed that the username/password is being sent into the method correctly. I am sending an email address that I have configured in the Firebase console. I've setup email/password login.
class AuthenticationService {
final Session _session;
final FirebaseAuth _auth = FirebaseAuth.instance;
AuthenticationService({@required Session session})
: _session = session;
Future<bool> login(String username, String password) async {
final FirebaseUser firebaseUser =
(await _auth.signInWithEmailAndPassword(email: username, password: password)).user;
if (firebaseUser != null) {
_session.loggedIn = User(username: username, password: password);
return true;
}
return false;
}
}
Crash output:
Launching lib/main.dart on iPhone Xʀ in debug mode...
Running Xcode build...
Xcode build done. 13.6s
Configuring the default Firebase app...
Configured the default Firebase app __FIRAPP_DEFAULT.
6.4.0 - [Firebase/Core][I-COR000004] App with name __FIRAPP_DEFAULT does not exist.
6.4.0 - [Firebase/Analytics][I-ACS023007] Analytics v.60003000 started
6.4.0 - [Firebase/Analytics][I-ACS023008] To enable debug logging set the following application argument: -FIRAnalyticsDebugEnabled (see http://goo.gl/RfcP7r)
Syncing files to device iPhone Xʀ...
[C1.1
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.254s, DNS @0.001s took 0.017s, TCP @0.020s took 0.045s, TLS took 0.116s
bytes in/out: 4817/1058, packets in/out: 10/9, rtt: 0.040s, retransmitted packets: 0, out-of-order packets: 0
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.475s, DNS @0.000s took 0.003s, TCP @0.005s took 0.044s, TLS took 0.110s
bytes in/out: 5691/971, packets in/out: 10/9, rtt: 0.041s, retransmitted packets: 0, out-of-order packets: 0
Connected Path: satisfied (Path is satisfied), interface: en0
Duration: 0.480s, DNS @0.000s took 0.002s, TCP @0.004s took 0.046s, TLS took 0.115s
bytes in/out: 4853/1807, packets in/out: 9/9, rtt: 0.043s, retransmitted packets: 0, out-of-order packets: 0
Lost connection to device.
*** First throw call stack:
(
0 CoreFoundation 0x0000000110a4c8db __exceptionPreprocess + 331
1 libobjc.A.dylib 0x000000010ffefac5 objc_exception_throw + 48
2 CoreFoundation 0x000000011099afac _CFThrowFormattedException + 194
3 CoreFoundation 0x0000000110ab8e11 -[__NSPlaceholderDictionary initWithObjects:forKeys:count:] + 321
4 CoreFoundation 0x0000000110a485bb +[NSDictionary dictionaryWithObjects:forKeys:count:] + 59
5 Runner 0x000000010bc656b0 -[FLTFirebaseAuthPlugin sendResult:forAuthDataResult:error:] + 736
6 Runner 0x000000010bc63ca9 __49-[FLTFirebaseAuthPlugin handleMethodCall:result:]_block_invoke.284 + 137
7 Runner <…>
lookfirst, EslamRabia, AdamJonsson and Daniel-BD
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consolep: firebase_authThe Firebase Auth pluginThe Firebase Auth pluginpackageflutter/packages repository. See also p: labels.flutter/packages repository. See also p: labels.