-
Notifications
You must be signed in to change notification settings - Fork 4.1k
[firebase_auth]: Apple sign in crash on double call (EXC_BAD_ACCESS KERN_INVALID_ADDRESS) #18170
Copy link
Copy link
Open
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.type: bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Auth
Which platforms are affected?
iOS
Description
There were a couple of similar issues: #17216, #16845.
The former one was closed because the author and the flutterfire team members couldn't reproduce the issue, therefore couldn't fix it.
2026-04-03.13.12.37.mov
Reproducing the issue
- Launch the example app
- Double tap the "Sign in with Apple" button. If you're launching on simulator then call the method
_handleMultiFactorException(_signInWithApple)twice on button tap, because you won't be able probably to click the button twice that fast as it needs to reproduce the issue. On physical device i am able constantly to tap twice fast enough to get the error on the video and crash the app.
Firebase Core version
4.0.0
Flutter Version
3.32.8
Relevant Log Output
Crashed: com.apple.main-thread
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000010
Crashed: com.apple.main-thread
0 Runner 0x131d68 -[FLTFirebaseAuthPlugin authorizationController:didCompleteWithError:] + 472 (FLTFirebaseAuthPlugin.m:472)
1 AuthenticationServices 0x2b144 __44-[ASAuthorizationController _failWithError:]_block_invoke_2 + 352
2 libsystem_trace.dylib 0xdbcc os_activity_apply_f + 88
3 AuthenticationServices 0x2afc8 __44-[ASAuthorizationController _failWithError:]_block_invoke + 128
4 libdispatch.dylib 0x1adc _dispatch_call_block_and_release + 32
5 libdispatch.dylib 0x1b7fc _dispatch_client_callout + 16
6 libdispatch.dylib 0x38b10 _dispatch_main_queue_drain.cold.5 + 812
7 libdispatch.dylib 0x10ec8 _dispatch_main_queue_drain + 180
8 libdispatch.dylib 0x10e04 _dispatch_main_queue_callback_4CF + 44
9 CoreFoundation 0x6a2b4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 16
10 CoreFoundation 0x1db3c __CFRunLoopRun + 1944
11 CoreFoundation 0x1ca6c _CFRunLoopRunSpecificWithOptions + 532
12 GraphicsServices 0x1498 GSEventRunModal + 120
13 UIKitCore 0x9ddf8 -[UIApplication _run] + 792
14 UIKitCore 0x46e54 UIApplicationMain + 336
15 UIKitCore 0x172820 -[UIScrollView contentInset] + 588
16 Runner 0x4a38 main + 4335159864 (AppDelegate.swift:4335159864)
17 ??? 0x183e5ee28 (Missing)Flutter dependencies
Expand Flutter dependencies snippet
Dart SDK 3.8.1
Flutter SDK 3.32.8
firebase_auth_example 0.0.0
dependencies:
- barcode_widget 2.0.4 [barcode flutter]
- firebase_auth 6.3.0 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 4.6.0 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_messaging 16.1.3 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_facebook_auth 7.1.6 [flutter flutter_facebook_auth_platform_interface flutter_facebook_auth_web facebook_auth_desktop]
- flutter_signin_button 2.1.1 [flutter font_awesome_flutter]
- google_sign_in 6.3.0 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- google_sign_in_dartio 0.3.0 [flutter google_sign_in google_sign_in_platform_interface shared_preferences shared_preferences_foundation shared_preferences_linux url_launcher url_launcher_macos crypto http html_unescape]
dev dependencies:
- http 1.6.0 [async http_parser meta web]
transitive dependencies:
- _flutterfire_internals 1.3.68 [collection firebase_core firebase_core_platform_interface flutter meta]
- async 2.13.0 [collection meta]
- barcode 2.2.9 [meta qr]
- boolean_selector 2.1.2 [source_span string_scanner]
- characters 1.4.0
- clock 1.1.2
- collection 1.19.1
- crypto 3.0.7 [typed_data]
- facebook_auth_desktop 2.1.2 [flutter http flutter_secure_storage flutter_facebook_auth_platform_interface]
- fake_async 1.3.3 [clock collection]
- ffi 2.2.0
- file 7.0.1 [meta path]
- firebase_auth_platform_interface 8.1.8 [_flutterfire_internals collection firebase_core flutter http meta plugin_platform_interface]
- firebase_auth_web 6.1.4 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web]
- firebase_core_platform_interface 6.0.3 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 3.5.1 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- firebase_messaging_platform_interface 4.7.8 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 4.1.4 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web]
- flutter_facebook_auth_platform_interface 6.1.2 [flutter plugin_platform_interface]
- flutter_facebook_auth_web 6.1.2 [flutter flutter_web_plugins flutter_facebook_auth_platform_interface web]
- flutter_secure_storage 10.0.0 [flutter flutter_secure_storage_darwin flutter_secure_storage_linux flutter_secure_storage_platform_interface flutter_secure_storage_web flutter_secure_storage_windows meta]
- flutter_secure_storage_darwin 0.2.0 [flutter plugin_platform_interface]
- flutter_secure_storage_linux 3.0.0 [flutter flutter_secure_storage_platform_interface]
- flutter_secure_storage_platform_interface 2.0.1 [flutter plugin_platform_interface]
- flutter_secure_storage_web 2.1.0 [flutter flutter_secure_storage_platform_interface flutter_web_plugins web]
- flutter_secure_storage_windows 4.1.0 [ffi flutter flutter_secure_storage_platform_interface path path_provider win32]
- flutter_test 0.0.0 [flutter test_api matcher path fake_async clock stack_trace vector_math leak_tracker_flutter_testing async boolean_selector characters collection leak_tracker leak_tracker_testing material_color_utilities meta source_span stream_channel string_scanner term_glyph vm_service]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- font_awesome_flutter 10.9.1 [flutter]
- google_identity_services_web 0.3.3+1 [meta web]
- google_sign_in_android 6.2.1 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.9.0 [flutter google_sign_in_platform_interface]
- google_sign_in_platform_interface 2.5.0 [flutter plugin_platform_interface]
- google_sign_in_web 0.12.4+4 [flutter flutter_web_plugins google_identity_services_web google_sign_in_platform_interface http web]
- html_unescape 2.0.0
- http_parser 4.1.2 [collection source_span string_scanner typed_data]
- leak_tracker 10.0.9 [clock collection meta path vm_service]
- leak_tracker_flutter_testing 3.0.9 [flutter leak_tracker leak_tracker_testing matcher meta]
- leak_tracker_testing 3.0.1 [leak_tracker matcher meta]
- matcher 0.12.17 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.11.1 [collection]
- meta 1.16.0
- path 1.9.1
- path_provider 2.1.5 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows]
- path_provider_android 2.2.19 [flutter path_provider_platform_interface]
- path_provider_foundation 2.4.2 [flutter path_provider_platform_interface]
- path_provider_linux 2.2.1 [ffi flutter path path_provider_platform_interface xdg_directories]
- path_provider_platform_interface 2.1.2 [flutter platform plugin_platform_interface]
- path_provider_windows 2.3.0 [ffi flutter path path_provider_platform_interface]
- platform 3.1.6
- plugin_platform_interface 2.1.8 [meta]
- qr 3.0.2 [meta]
- shared_preferences 2.5.3 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- shared_preferences_android 2.4.13 [flutter shared_preferences_platform_interface]
- shared_preferences_foundation 2.5.4 [flutter shared_preferences_platform_interface]
- shared_preferences_linux 2.4.1 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
- shared_preferences_platform_interface 2.4.1 [flutter plugin_platform_interface]
- shared_preferences_web 2.4.3 [flutter flutter_web_plugins shared_preferences_platform_interface web]
- shared_preferences_windows 2.4.1 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
- sky_engine 0.0.0
- source_span 1.10.1 [collection path term_glyph]
- stack_trace 1.12.1 [path]
- stream_channel 2.1.4 [async]
- string_scanner 1.4.1 [source_span]
- term_glyph 1.2.2
- test_api 0.7.4 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- typed_data 1.4.0 [collection]
- url_launcher 6.3.2 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- url_launcher_android 6.3.20 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.3.4 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.2.2 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.2.3 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface]
- url_launcher_web 2.4.1 [flutter flutter_web_plugins url_launcher_platform_interface web]
- url_launcher_windows 3.1.5 [flutter url_launcher_platform_interface]
- vector_math 2.1.4
- vm_service 15.0.0
- web 1.1.1
- win32 5.15.0 [ffi]
- xdg_directories 1.1.0 [meta path]
Additional context and comments
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.type: bugSomething isn't workingSomething isn't working