Closed
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
Identical to #16845, which is closed as non-reproducible, and locked.
Has affected over 200 users of my app over the last few months.
Reproducing the issue
I have not been able to reproduce personally.
Firebase Core version
3.12.1
Flutter Version
3.29.2
Relevant Log Output
EXC_BAD_ACCESS: Exception 1, Code 1, Subcode 16 > KERN_INVALID_ADDRESS at 0x10
Device: iPhone 13
iOS: 17.6.1
App Version: 8.7.1 (1687)
Firebase Auth: 5.5.1
Thread #0:
Runner+0x29bd50 handleSignInWithApple (FLTFirebaseAuthPlugin.m:379)
In App
374 if (error.code == FIRAuthErrorCodeSecondFactorRequired) {
375 [object handleMultiFactorError:object.appleArguments
376 completion:object.appleCompletion
377 withError:error];
378 } else {
379 object.appleCompletion(nil, [FLTFirebaseAuthPlugin convertToFlutterError:error]);
380 }
381 return;
382 }
383 object.appleCompletion([PigeonParser getPigeonUserCredentialFromAuthResult:authResult
384 authorizationCode:authorizationCode],
Breadcrumbs:
Exception - This event
error
04:04:36.000 PM
EXC_BAD_ACCESS: Exception 1, Code 1, Subcode 16 > KERN_INVALID_ADDRESS at 0x10.
HTTP
info
04:04:36.530 PM
POST: https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion [400]
{
http.query: key=AIzaSyAOsIG1B2nlPYMA1SJUZYhDYq-wGv1qRbw,
reason: bad request,
request_body_size: 1114,
request_start: 2025-03-20T20:04:36.234Z,
response_body_size: 0
}
Full stack trace:
Runner+0x29bd48 handleSignInWithApple (FLTFirebaseAuthPlugin.m:379)
Runner+0x29be5c __78-[FLTFirebaseAuthPlugin authorizationController:didCompleteWithAuthorization:]_block_invoke_2 (FLTFirebaseAuthPlugin.m:443)
FirebaseAuth+0x019a64 thunk for closure (<compiler-generated>)
FirebaseAuth+0x029828 thunk for closure (<compiler-generated>)
FirebaseAuth+0x026ae4 <unknown>
FirebaseAuth+0x02988c closure in Auth.wrapMainAsync<T>
FirebaseAuth+0x00db54 <unknown>
libdispatch+0x002138 _dispatch_call_block_and_release
Runner+0x004df0 UIApplicationDelegate.main (AppDelegate.swift)
Runner+0x004df0 AppDelegate.$main (<compiler-generated>:6)
Runner+0x004df0 main (AppDelegate.swift)
Issue first seen: 5 months ago in release 8.4.2 (1326)
Last seen: Recent (still occurring)
### macOS Stack Trace:
Thread #0:
TimeFinder+0x293424 handleSignInWithApple (FLTFirebaseAuthPlugin.m:379)
In App
374 if (error.code == FIRAuthErrorCodeSecondFactorRequired) {
375 [object handleMultiFactorError:object.appleArguments
376 completion:object.appleCompletion
377 withError:error];
378 } else {
379 object.appleCompletion(nil, [FLTFirebaseAuthPlugin convertToFlutterError:error]);
380 }
381 return;
382 }
383 object.appleCompletion([PigeonParser getPigeonUserCredentialFromAuthResult:authResult
384 authorizationCode:authorizationCode],
TimeFinder+0x293530 __78-[FLTFirebaseAuthPlugin authorizationController:didCompleteWithAuthorization:]_block_invoke_2 (FLTFirebaseAuthPlugin.m:443)
In App
438 self.signInWithAppleAuth != nil ? self.signInWithAppleAuth : FIRAuth.auth;
439 [signInAuth signInWithCredential:credential
440 completion:^(FIRAuthDataResult *_Nullable authResult,
441 NSError *_Nullable error) {
442 self.signInWithAppleAuth = nil;
443 handleSignInWithApple(self, authResult, authorizationCode, error);
444 }];
FirebaseAuth+0x010834 thunk for closure (<compiler-generated>)
TimeFinder+0x0066f4 NSApplicationDelegate.main (AppDelegate.swift)
TimeFinder+0x0066f4 AppDelegate.$main (<compiler-generated>:5)
TimeFinder+0x0066f4 main (AppDelegate.swift)
Error details:
EXC_BAD_ACCESS: KERN_INVALID_ADDRESS at 0x10.
Device: Mac15,7 (arm64)
macOS: 14.2.1
App Version: 8.7.1 (1688)
Breadcrumbs:
Exception - This event
error
02:57:48.000 AM
EXC_BAD_ACCESS: KERN_INVALID_ADDRESS at 0x10.
HTTP
info
02:57:48.973 AM
POST: https://www.googleapis.com/identitytoolkit/v3/relyingparty/verifyAssertion [400]
{
http.query: key=AIzaSyAOsIG1B2nlPYMA1SJUZYhDYq-wGv1qRbw,
reason: bad request,
request_body_size: 1082,
request_start: 2025-03-21T06:57:48.421Z,
response_body_size: 0
}
Issue first seen: 2 months ago in release 8.5.11 (1435)
Last seen: Recent (still occurring)
Flutter dependencies
Expand Flutter dependencies
snippet
~/Developer/timefinder_app/app git:[dev]
flutter pub deps -- --style=compact
Dart SDK 3.7.2
Flutter SDK 3.29.2
app 8.7.2+1
dependencies:
- advertising_id 2.7.1 [flutter]
- amplitude_flutter 4.1.0 [flutter flutter_web_plugins]
- app_links 6.4.0 [flutter app_links_linux app_links_platform_interface app_links_web]
- app_tracking_transparency 2.0.6+1 [flutter]
- appsflyer_sdk 6.15.2 [flutter]
- audioplayers 6.3.0 [audioplayers_android audioplayers_darwin audioplayers_linux audioplayers_platform_interface audioplayers_web audioplayers_windows file flutter http meta path_provider synchronized uuid]
- auto_size_text 3.0.0 [flutter]
- badges 3.1.2 [flutter]
- calendar_date_picker2 1.1.9 [flutter intl]
- clock 1.1.2
- cloud_firestore 5.6.5 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
- cloud_functions 5.3.4 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter]
- collection 1.19.1
- color_models 1.3.3 [meta num_utilities powers]
- cupertino_icons 1.0.8
- cupertino_onboarding 1.3.0 [dots_indicator flutter]
- custom_refresh_indicator 4.0.1 [flutter meta]
- dart_code_metrics_annotations 1.0.0
- device_calendar 4.4.0 [flutter timezone rrule]
- device_info_plus 11.3.3 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta web win32 win32_registry]
- device_marketing_names 1.0.2 [flutter device_info_plus universal_platform]
- device_preview 1.2.0 [flutter flutter_localizations provider device_frame freezed_annotation json_annotation shared_preferences collection]
- dots_indicator 2.1.2 [flutter]
- easy_debounce 2.0.3
- email_validator 3.0.0
- equatable 2.0.7 [collection meta]
- file_selector 1.0.3 [file_selector_android file_selector_ios file_selector_linux file_selector_macos file_selector_platform_interface file_selector_web file_selector_windows flutter]
- firebase_analytics 11.4.4 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
- firebase_app_installations 0.3.2+4 [firebase_app_installations_platform_interface firebase_app_installations_web firebase_core firebase_core_platform_interface flutter]
- firebase_auth 5.5.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
- firebase_core 3.12.1 [firebase_core_platform_interface firebase_core_web flutter meta]
- firebase_crashlytics 4.3.4 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
- firebase_in_app_messaging 0.8.1+4 [firebase_core firebase_core_platform_interface firebase_in_app_messaging_platform_interface flutter meta]
- firebase_messaging 15.2.4 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
- firebase_remote_config 5.4.2 [firebase_core firebase_core_platform_interface firebase_remote_config_platform_interface firebase_remote_config_web flutter]
- flex_color_picker 3.7.0 [flex_seed_scheme flutter]
- flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
- flutter_bloc 9.1.0 [bloc flutter provider]
- flutter_color_models 1.4.0 [flutter color_models meta]
- flutter_email_sender 7.0.0 [flutter]
- flutter_local_notifications 19.0.0-dev.7 [clock flutter flutter_local_notifications_linux flutter_local_notifications_windows flutter_local_notifications_platform_interface timezone]
- flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
- flutter_loggy 2.0.3+1 [flutter loggy]
- flutter_native_splash 2.4.5 [args flutter flutter_web_plugins html image meta path universal_io xml yaml ansicolor]
- flutter_onboarding_slider 1.0.11 [flutter provider]
- flutter_ringtone_player 4.0.0+4 [flutter path_provider plugin_platform_interface]
- flutter_slidable 4.0.0 [flutter]
- flutter_svg 2.0.17 [flutter http vector_graphics vector_graphics_codec vector_graphics_compiler]
- flutter_timezone 4.1.0 [flutter flutter_web_plugins]
- gaimon 1.3.2 [flutter]
- go_router 14.8.1 [collection flutter flutter_web_plugins logging meta]
- google_sign_in 6.3.0 [flutter google_sign_in_android google_sign_in_ios google_sign_in_platform_interface google_sign_in_web]
- haptic_feedback 0.5.1+1 [flutter plugin_platform_interface]
- home_widget 0.7.0+1 [flutter path_provider path_provider_foundation]
- http 1.3.0 [async http_parser meta web]
- in_app_review 2.0.10 [flutter in_app_review_platform_interface]
- internet_connection_checker_plus 2.7.1 [connectivity_plus flutter http]
- intl 0.19.0 [clock meta path]
- isar 3.1.8 [ffi js meta]
- isar_flutter_libs 3.1.8 [flutter isar]
- loggy 2.0.3 [stack_trace]
- macos_haptic_feedback 1.0.0 [flutter plugin_platform_interface]
- package_info_plus 8.3.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32 clock]
- 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]
- permission_handler 11.4.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_html permission_handler_windows permission_handler_platform_interface]
- provider 6.1.2 [collection flutter nested]
- pull_down_button 0.10.2 [flutter meta]
- purchases_flutter 8.6.0 [flutter freezed_annotation json_annotation]
- quick_actions 1.1.0 [flutter quick_actions_android quick_actions_ios quick_actions_platform_interface]
- reorderables 0.6.0 [flutter]
- rrule 0.2.17 [collection intl meta time]
- screenshot 3.0.0 [flutter]
- sentry_flutter 8.13.2 [flutter flutter_web_plugins sentry package_info_plus meta ffi file collection]
- share_plus 10.1.4 [cross_file meta mime flutter flutter_web_plugins share_plus_platform_interface file url_launcher_web url_launcher_windows url_launcher_linux url_launcher_platform_interface ffi web win32]
- shared_preferences 2.5.2 [flutter shared_preferences_android shared_preferences_foundation shared_preferences_linux shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
- showcaseview 4.0.1 [flutter]
- sign_in_with_apple 6.1.4 [flutter meta sign_in_with_apple_platform_interface sign_in_with_apple_web]
- sleek_circular_slider 2.0.1 [flutter]
- sliver_tools 0.2.12 [flutter]
- superwallkit_flutter 1.3.11 [flutter plugin_platform_interface uuid yaml]
- synchronized 3.3.1
- timezone 0.10.0 [http path]
- url_launcher 6.3.1 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
- uuid 4.5.1 [crypto sprintf meta fixnum]
- video_player 2.9.3 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web]
- video_player_win 3.1.1 [flutter plugin_platform_interface video_player_platform_interface]
- wakelock_plus 1.2.10 [flutter flutter_web_plugins meta wakelock_plus_platform_interface win32 dbus package_info_plus web]
- webview_flutter 4.10.0 [flutter webview_flutter_android webview_flutter_platform_interface webview_flutter_wkwebview]
dev dependencies:
- bloc_test 10.0.0 [bloc diff_match_patch meta mocktail test]
- build_runner 2.4.15 [analyzer args async build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs http http_multi_server io js logging meta mime package_config path pool pub_semver pubspec_parse shelf shelf_web_socket stack_trace stream_transform timing watcher web web_socket_channel yaml]
- dart_code_metrics_presets 2.21.0
- flutter_launcher_icons 0.14.3 [args checked_yaml cli_util image json_annotation path yaml]
- flutter_lints 5.0.0 [lints]
- 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]
- isar_generator 3.1.8 [analyzer build dart_style dartx glob isar path source_gen xxh3]
- mocktail 1.0.4 [collection matcher test_api]
- msix 3.16.8 [args yaml path package_config get_it image pub_semver console cli_util]
- sentry_dart_plugin 2.4.1 [yaml injector ansicolor system_info2 file http crypto convert process properties]
dependency overrides:
- color_models 1.3.3 [meta num_utilities powers]
- flutter_color_models 1.4.0 [flutter color_models meta]
- msix 3.16.8 [args yaml path package_config get_it image pub_semver console cli_util]
- timezone 0.10.0 [http path]
transitive dependencies:
- _fe_analyzer_shared 76.0.0 [meta]
- _flutterfire_internals 1.3.53 [collection firebase_core firebase_core_platform_interface flutter meta]
- _macros 0.3.3
- analyzer 6.11.0 [_fe_analyzer_shared collection convert crypto glob macros meta package_config path pub_semver source_span watcher yaml]
- ansicolor 2.0.3
- app_links_linux 1.0.3 [flutter app_links_platform_interface gtk]
- app_links_platform_interface 2.0.2 [flutter plugin_platform_interface]
- app_links_web 1.0.4 [flutter flutter_web_plugins app_links_platform_interface web]
- archive 4.0.4 [crypto path posix]
- args 2.6.0
- async 2.12.0 [collection meta]
- audioplayers_android 5.1.0 [audioplayers_platform_interface flutter]
- audioplayers_darwin 6.1.1 [audioplayers_platform_interface flutter]
- audioplayers_linux 4.1.1 [audioplayers_platform_interface flutter]
- audioplayers_platform_interface 7.0.1 [collection flutter meta plugin_platform_interface]
- audioplayers_web 5.0.2 [audioplayers_platform_interface flutter flutter_web_plugins web]
- audioplayers_windows 4.1.1 [audioplayers_platform_interface flutter]
- bloc 9.0.0 [meta]
- boolean_selector 2.1.2 [source_span string_scanner]
- build 2.4.2 [analyzer async convert crypto glob logging meta package_config path]
- build_config 1.1.2 [checked_yaml json_annotation path pubspec_parse yaml]
- build_daemon 4.0.4 [built_collection built_value crypto http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
- build_resolvers 2.4.4 [analyzer async build collection convert crypto graphs logging package_config path pool pub_semver stream_transform yaml]
- build_runner_core 8.0.0 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta package_config path pool timing watcher yaml]
- built_collection 5.1.1
- built_value 8.9.5 [built_collection collection fixnum meta]
- characters 1.4.0
- checked_yaml 2.0.3 [json_annotation source_span yaml]
- cli_util 0.4.2 [meta path]
- cloud_firestore_platform_interface 6.6.5 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- cloud_firestore_web 4.4.5 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins]
- cloud_functions_platform_interface 5.6.4 [firebase_core flutter meta plugin_platform_interface]
- cloud_functions_web 4.10.10 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- code_builder 4.10.1 [built_collection built_value collection matcher meta]
- connectivity_plus 6.1.3 [flutter flutter_web_plugins connectivity_plus_platform_interface web meta nm collection]
- connectivity_plus_platform_interface 2.0.1 [flutter meta plugin_platform_interface]
- console 4.1.0 [vector_math]
- convert 3.1.2 [typed_data]
- coverage 1.11.1 [args glob logging meta package_config path source_maps stack_trace vm_service]
- cross_file 0.3.4+2 [meta web]
- crypto 3.0.6 [typed_data]
- csslib 1.0.2 [source_span]
- dart_style 2.3.8 [analyzer args collection package_config path pub_semver source_span]
- dartx 1.2.0 [characters collection crypto meta path time]
- dbus 0.7.11 [args ffi meta xml]
- device_frame 1.2.0 [freezed_annotation flutter]
- device_info_plus_platform_interface 7.0.2 [flutter meta plugin_platform_interface]
- diff_match_patch 0.4.1
- fake_async 1.3.2 [clock collection]
- ffi 2.1.4
- file 7.0.1 [meta path]
- file_selector_android 0.5.1+13 [file_selector_platform_interface flutter plugin_platform_interface]
- file_selector_ios 0.5.3+1 [file_selector_platform_interface flutter]
- file_selector_linux 0.9.3+2 [cross_file file_selector_platform_interface flutter]
- file_selector_macos 0.9.4+2 [cross_file file_selector_platform_interface flutter]
- file_selector_platform_interface 2.6.2 [cross_file flutter http plugin_platform_interface]
- file_selector_web 0.9.4+2 [file_selector_platform_interface flutter flutter_web_plugins web]
- file_selector_windows 0.9.3+4 [cross_file file_selector_platform_interface flutter]
- firebase_analytics_platform_interface 4.3.4 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_analytics_web 0.5.10+10 [_flutterfire_internals firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- firebase_app_installations_platform_interface 0.1.4+52 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_app_installations_web 0.1.6+10 [_flutterfire_internals firebase_app_installations_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins]
- firebase_auth_platform_interface 7.6.1 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_auth_web 5.14.1 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web]
- firebase_core_platform_interface 5.4.0 [collection flutter flutter_test meta plugin_platform_interface]
- firebase_core_web 2.21.1 [firebase_core_platform_interface flutter flutter_web_plugins meta web]
- firebase_crashlytics_platform_interface 3.8.4 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface]
- firebase_in_app_messaging_platform_interface 0.2.5+4 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_platform_interface 4.6.4 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_messaging_web 3.10.4 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web]
- firebase_remote_config_platform_interface 1.5.2 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface]
- firebase_remote_config_web 1.8.2 [_flutterfire_internals firebase_core firebase_core_web firebase_remote_config_platform_interface flutter flutter_web_plugins]
- fixnum 1.1.1
- flex_seed_scheme 3.5.0 [collection flutter meta]
- flutter_local_notifications_linux 6.0.0-dev.1 [dbus ffi flutter flutter_local_notifications_platform_interface path xdg_directories]
- flutter_local_notifications_platform_interface 9.0.0-dev.1 [plugin_platform_interface]
- flutter_local_notifications_windows 1.0.0-dev.4 [flutter ffi flutter_local_notifications_platform_interface meta timezone xml]
- flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math]
- freezed_annotation 2.4.4 [collection json_annotation meta]
- frontend_server_client 4.0.0 [async path]
- get_it 7.7.0 [async collection meta]
- glob 2.1.3 [async collection file path string_scanner]
- globbing 1.0.0 [path]
- google_identity_services_web 0.3.3 [meta web]
- google_sign_in_android 6.2.0 [flutter google_sign_in_platform_interface]
- google_sign_in_ios 5.8.1 [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]
- graphs 2.3.2 [collection]
- gtk 2.1.0 [ffi flutter meta]
- html 0.15.5 [csslib source_span]
- http_multi_server 3.2.2 [async]
- http_parser 4.1.2 [collection source_span string_scanner typed_data]
- image 4.5.3 [archive meta xml]
- in_app_review_platform_interface 2.0.5 [flutter url_launcher plugin_platform_interface platform]
- injector 3.0.0
- io 1.0.5 [meta path string_scanner]
- js 0.7.2
- json_annotation 4.9.0 [meta]
- leak_tracker 10.0.8 [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]
- lints 5.1.1
- logging 1.3.0
- macros 0.1.3-main.0 [_macros]
- matcher 0.12.17 [async meta stack_trace term_glyph test_api]
- material_color_utilities 0.11.1 [collection]
- meta 1.16.0
- mime 2.0.0
- nested 1.0.0 [flutter]
- nm 0.5.0 [dbus]
- node_preamble 2.0.2
- num_utilities 1.0.5
- package_config 2.1.1 [path]
- package_info_plus_platform_interface 3.2.0 [flutter meta plugin_platform_interface]
- path_parsing 1.1.0 [meta vector_math]
- path_provider_android 2.2.16 [flutter path_provider_platform_interface]
- path_provider_foundation 2.4.1 [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]
- permission_handler_android 12.1.0 [flutter permission_handler_platform_interface]
- permission_handler_apple 9.4.6 [flutter permission_handler_platform_interface]
- permission_handler_html 0.1.3+5 [flutter flutter_web_plugins permission_handler_platform_interface web]
- permission_handler_platform_interface 4.3.0 [flutter meta plugin_platform_interface]
- permission_handler_windows 0.2.1 [flutter permission_handler_platform_interface]
- petitparser 6.1.0 [meta collection]
- platform 3.1.6
- plugin_platform_interface 2.1.8 [meta]
- pool 1.5.1 [async stack_trace]
- posix 6.0.1 [ffi meta path]
- powers 1.0.0+2
- process 5.0.3 [file path platform]
- properties 2.1.1 [meta]
- pub_semver 2.2.0 [collection]
- pubspec_parse 1.5.0 [checked_yaml collection json_annotation pub_semver yaml]
- quick_actions_android 1.0.20 [flutter quick_actions_platform_interface]
- quick_actions_ios 1.2.0 [flutter quick_actions_platform_interface]
- quick_actions_platform_interface 1.1.0 [flutter plugin_platform_interface]
- sentry 8.13.2 [http meta stack_trace uuid collection]
- share_plus_platform_interface 5.0.2 [cross_file flutter meta mime plugin_platform_interface path_provider uuid]
- shared_preferences_android 2.4.8 [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]
- shelf 1.4.2 [async collection http_parser path stack_trace stream_channel]
- shelf_packages_handler 3.0.2 [path shelf shelf_static]
- shelf_static 1.1.3 [convert http_parser mime path shelf]
- shelf_web_socket 3.0.0 [shelf stream_channel web_socket_channel]
- sign_in_with_apple_platform_interface 1.1.0 [flutter plugin_platform_interface meta]
- sign_in_with_apple_web 2.1.1 [flutter flutter_web_plugins sign_in_with_apple_platform_interface]
- sky_engine 0.0.0
- source_gen 1.5.0 [analyzer async build dart_style glob path source_span yaml]
- source_map_stack_trace 2.1.2 [path source_maps stack_trace]
- source_maps 0.10.13 [source_span]
- source_span 1.10.1 [collection path term_glyph]
- sprintf 7.0.0
- stack_trace 1.12.1 [path]
- stream_channel 2.1.4 [async]
- stream_transform 2.1.1
- string_scanner 1.4.1 [source_span]
- system_info2 4.0.0 [globbing path]
- term_glyph 1.2.2
- test 1.25.15 [analyzer async boolean_selector collection coverage http_multi_server io js matcher node_preamble package_config path pool shelf shelf_packages_handler shelf_static shelf_web_socket source_span stack_trace stream_channel test_api test_core typed_data web_socket_channel webkit_inspection_protocol yaml]
- test_api 0.7.4 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph]
- test_core 0.6.8 [analyzer args async boolean_selector collection coverage frontend_server_client glob io meta package_config path pool source_map_stack_trace source_maps source_span stack_trace stream_channel test_api vm_service yaml]
- time 2.1.5 [clock]
- timing 1.0.2 [json_annotation]
- typed_data 1.4.0 [collection]
- universal_io 2.2.2 [collection meta typed_data]
- universal_platform 1.1.0
- url_launcher_android 6.3.15 [flutter url_launcher_platform_interface]
- url_launcher_ios 6.3.2 [flutter url_launcher_platform_interface]
- url_launcher_linux 3.2.1 [flutter url_launcher_platform_interface]
- url_launcher_macos 3.2.2 [flutter url_launcher_platform_interface]
- url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface]
- url_launcher_web 2.4.0 [flutter flutter_web_plugins url_launcher_platform_interface web]
- url_launcher_windows 3.1.4 [flutter url_launcher_platform_interface]
- vector_graphics 1.1.18 [flutter http vector_graphics_codec]
- vector_graphics_codec 1.1.13
- vector_graphics_compiler 1.1.16 [args meta path path_parsing vector_graphics_codec xml]
- vector_math 2.1.4
- video_player_android 2.8.1 [flutter video_player_platform_interface]
- video_player_avfoundation 2.7.0 [flutter video_player_platform_interface]
- video_player_platform_interface 6.3.0 [flutter plugin_platform_interface]
- video_player_web 2.3.4 [flutter flutter_web_plugins video_player_platform_interface web]
- vm_service 14.3.1
- wakelock_plus_platform_interface 1.2.2 [flutter plugin_platform_interface meta]
- watcher 1.1.1 [async path]
- web 1.1.1
- web_socket 0.1.6 [web]
- web_socket_channel 3.0.2 [async crypto stream_channel web web_socket]
- webkit_inspection_protocol 1.2.1 [logging]
- webview_flutter_android 4.3.3 [flutter webview_flutter_platform_interface]
- webview_flutter_platform_interface 2.10.0 [flutter meta plugin_platform_interface]
- webview_flutter_wkwebview 3.18.4 [flutter path webview_flutter_platform_interface]
- win32 5.11.0 [ffi]
- win32_registry 2.1.0 [ffi meta win32]
- xdg_directories 1.1.0 [meta path]
- xml 6.5.0 [collection meta petitparser]
- xxh3 1.2.0
- yaml 3.1.3 [collection source_span string_scanner]
Additional context and comments
No response
Activity
MichaelVerdon commentedon Mar 21, 2025
Hi there, unfortunately without a repro-case there is not much we can do at the moment and have been unable to reproduce. I suspect this issue could be caused by a race condition that rarely occurs when the handleSignInWithApple method trying to call a completion handler (appleCompletion) on an object that has already been deallocated. The fix itself could be simple if we are able to get a reliable enough repro case. I can only suggest trying to add more breadcrumbs or logging in your application so we can narrow down what conditions cause this to occur.
lukemmtt commentedon Mar 21, 2025
Thanks for the reply Michael. I certainly understand that without a repro, it's difficult to resolve something like this. Nevertheless, my interest in opening this issue is twofold:
That said, rather than adding logging to my own application as you've suggested (which would include some sort of platform channel or hack), I'm more inclined to add logging to
firebase_auth
's ownhandleSignInWithApple
implementation. I'm open to adding this in my own fork, but I figured step 1 is opening this issue here.Thank you for you and your team's quick response and triage so far!
MichaelVerdon commentedon Mar 21, 2025
Hey there, I will keep this ticket open in the meantime and await any more information you may be able to provide. I am not objected to that and it sounds like a great idea if you are able to get a trial out with a local fork (if its possible) as I personally do not have the resources to do so on an application in production. I have been able to find multiple instances of this kind of crash on the native-sdks (however unrelated to apple-sign in) and seem to usually be resolved by changing the references to strong references rather than weak to prevent early deallocation and so I am almost certain this is a thread safety issue. But once we can reliably reproduce it enough we can investigate a fix and we would likey need to check the native-sdks to see if it is not something that can be fixed there if it occurs there. (Would automatically solve it on FlutterFire side)
admin-amanesoft commentedon Apr 4, 2025
Hello, throwing in my logs, happend to us recently during release of a new app
We are on: firebase_auth: ^5.4.2
OS version: iosiOS 18.3.2
Model:iPhone XS
admin-amanesoft commentedon Apr 5, 2025
Attaching more detailed log that I pulled from testflight
MichaelVerdon commentedon Apr 9, 2025
Have any of you been able to get a reliably reproducible case locally? Otherwise we will not be able to fix. You could alternatively try what I suggested by changing some weak to strong references in a local repo of firebase and use that (FLTFirebaseAuthPlugin.m:379). If it completely stops the crash then it should be sufficient evidence to open a PR for it here.
lukemmtt commentedon Apr 12, 2025
@MichaelVerdon Nope, I have not been able to reproduce this issue locally. But it continues to happen for 10+ users a day for my app, on both iOS and Mac.
So, in pursuit of a resolution, I've explored this issue with Cursor and came up with what seems like a plausible fix: #17273. Full disclosure, I know little about obj-c, so any and all feedback or critique is welcome—just trying to get to the bottom of this.
The Sign in with Apple implementation seems to continue to work for me without issue when running with this fix, so I'm going to roll this out to production and see if it helps.
lukemmtt commentedon Apr 15, 2025
@MichaelVerdon @admin-amanesoft
Just following up: I rolled out my forked fix to production, and a couple days have passed without any reoccurrences; it seems to have fixed the problem. Below is a sentry screenshot showing events dropping to zero.
Please review and consider merging #17273.
Thanks for the troubleshooting pointers!
Tom3652 commentedon Apr 25, 2025
Hi @lukemmtt and thanks for getting at the bottom of this.
I admit that i have received a new crash in my latest app version regarding this issue. Despite my active users number, i have not as many crashes as you have so i had not re-open an issue since i still don't have a repro-case and the time to dig for one for 1-2 crashes happening randomly... 🙏
But it's worth saying that the issue is still present even in my app despite my previous issue #16845 was closed.