Open ConschiB opened 2 weeks ago
Hi @ConschiB, thanks for the report. I'm unable to reproduce this issue. Kindly provide a complete minimal sample code reproducing this issue.
In my case it is the first fetching process after initialization:
Future initFirebase() async {
const firebaseOptions = FirebaseOptions(apiKey: 'apiKey', appId: 'appId', messagingSenderId: 'messagingSenderId',
projectId: 'projectId', storageBucket: 'storageBucket');
await Firebase.initializeApp(options: firebaseOptions);
await FirebaseFirestore.instance.collection('someCollection').doc('someDocumentId').get();
}
i also split the the last line into single variables to find out that the .get()
call crashes the app.
Since this code works fine in web and android and also worked before updating everything, I am sure that the code sample itself should be fine.
Kindly provide a full minimal working example reproducing this since I'm not able to reproduce it on my end.
Hey @ConschiB. 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!
Is there an existing issue for this?
Which plugins are affected?
Core
Which platforms are affected?
macOS
Description
Since updating to the newest Flutter Version (3.24.4) and also to the newest cocoapods version (1.16.1), my app crashes while fetching a document. Running in Web and Android works fine.
Reproducing the issue
await FirebaseFirestore.instance.collection(collectionName).doc(documentID).get();
Firebase Core version
3.6.0
Flutter Version
3.24.4
Relevant Log Output
Flutter dependencies
Expand
Flutter dependencies
snippet```yaml Dart SDK 3.5.4 Flutter SDK 3.24.4 workspace 1.0.3+3 dependencies: - cached_network_image 3.4.1 [cached_network_image_platform_interface cached_network_image_web flutter flutter_cache_manager octo_image] - core 0.0.1 [flutter data_core firebase_core firebase_auth firebase_storage firebase_messaging cloud_firestore cloud_functions firebase_crashlytics firebase_performance web printing uuid wakelock_plus hive hive_flutter path_provider http qr image restart_app intl url_launcher file_picker device_info_plus system_info_fetch fuzzy csv usb_serial xml] - cupertino_icons 1.0.8 - data_core 0.0.1 [uuid pdf excel http barcode image archive] - design 0.0.1 [flutter auto_size_text popover] - dotted_border 2.1.0 [flutter path_drawing] - file_picker 8.1.2 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32 cross_file web] - fl_chart 0.69.0 [equatable flutter] - flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine] - flutter_inappwebview 6.1.5 [flutter flutter_inappwebview_platform_interface flutter_inappwebview_android flutter_inappwebview_ios flutter_inappwebview_macos flutter_inappwebview_web flutter_inappwebview_windows] - flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math] - flutter_markdown 0.7.3 [flutter markdown meta path] - get 5.0.0-release-candidate-9.2.1 [flutter flutter_web_plugins web] - intercom_flutter_web 1.1.3 [flutter flutter_web_plugins intercom_flutter_platform_interface uuid web] - popover 0.3.1 [flutter] - sentry 8.9.0 [http meta stack_trace uuid] - toastification 2.3.0 [flutter equatable uuid pausable_timer collection iconsax_flutter] - web 1.1.0 dev dependencies: - flutter_launcher_icons 0.12.0 [args checked_yaml cli_util image json_annotation path yaml] - flutter_lints 2.0.3 [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] dependency overrides: - core 0.0.1 [flutter data_core firebase_core firebase_auth firebase_storage firebase_messaging cloud_firestore cloud_functions firebase_crashlytics firebase_performance web printing uuid wakelock_plus hive hive_flutter path_provider http qr image restart_app intl url_launcher file_picker device_info_plus system_info_fetch fuzzy csv usb_serial xml] - data_core 0.0.1 [uuid pdf excel http barcode image archive] - design 0.0.1 [flutter auto_size_text popover] transitive dependencies: - _flutterfire_internals 1.3.44 [collection firebase_core firebase_core_platform_interface flutter meta] - archive 3.6.1 [crypto path] - args 2.4.2 - asn1lib 1.5.5 - async 2.11.0 [collection meta] - auto_size_text 3.0.0 [flutter] - barcode 2.2.8 [meta qr] - bidi 2.0.10 - boolean_selector 2.1.1 [source_span string_scanner] - cached_network_image_platform_interface 4.1.1 [flutter flutter_cache_manager] - cached_network_image_web 1.3.1 [cached_network_image_platform_interface flutter flutter_cache_manager web] - characters 1.3.0 - checked_yaml 2.0.3 [json_annotation source_span yaml] - cli_util 0.3.5 [meta path] - clock 1.1.1 - cloud_firestore 5.4.4 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta] - cloud_firestore_platform_interface 6.4.3 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - cloud_firestore_web 4.3.2 [_flutterfire_internals cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins] - cloud_functions 5.1.3 [cloud_functions_platform_interface cloud_functions_web firebase_core firebase_core_platform_interface flutter] - cloud_functions_platform_interface 5.5.37 [firebase_core flutter meta plugin_platform_interface] - cloud_functions_web 4.10.2 [cloud_functions_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins] - collection 1.18.0 - convert 3.1.1 [typed_data] - cross_file 0.3.4+2 [meta web] - crypto 3.0.3 [typed_data] - csv 6.0.0 - dbus 0.7.10 [args ffi meta xml] - device_info_plus 10.1.2 [device_info_plus_platform_interface ffi file flutter flutter_web_plugins meta web win32 win32_registry] - device_info_plus_platform_interface 7.0.1 [flutter meta plugin_platform_interface] - encrypt 5.0.3 [args asn1lib clock collection crypto pointycastle] - equatable 2.0.5 [collection meta] - excel 4.0.6 [archive xml collection equatable] - fake_async 1.3.1 [clock collection] - ffi 2.1.2 - file 7.0.0 [meta path] - firebase_auth 5.3.1 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta] - firebase_auth_platform_interface 7.4.7 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_auth_web 5.13.2 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser meta web] - firebase_core 3.6.0 [firebase_core_platform_interface firebase_core_web flutter meta] - firebase_core_platform_interface 5.3.0 [collection flutter flutter_test meta plugin_platform_interface] - firebase_core_web 2.18.1 [firebase_core_platform_interface flutter flutter_web_plugins meta web] - firebase_crashlytics 4.1.3 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace] - firebase_crashlytics_platform_interface 3.6.44 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_messaging 15.1.3 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta] - firebase_messaging_platform_interface 4.5.46 [_flutterfire_internals firebase_core flutter meta plugin_platform_interface] - firebase_messaging_web 3.9.2 [_flutterfire_internals firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins meta web] - firebase_performance 0.10.0+8 [firebase_core firebase_core_platform_interface firebase_performance_platform_interface firebase_performance_web flutter] - firebase_performance_platform_interface 0.1.4+44 [_flutterfire_internals firebase_core flutter plugin_platform_interface] - firebase_performance_web 0.1.7+2 [_flutterfire_internals firebase_core firebase_core_web firebase_performance_platform_interface flutter flutter_web_plugins] - firebase_storage 12.3.2 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter] - firebase_storage_platform_interface 5.1.31 [_flutterfire_internals collection firebase_core flutter meta plugin_platform_interface] - firebase_storage_web 3.10.3 [_flutterfire_internals async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http meta web] - fixnum 1.1.1 - flutter_cache_manager 3.4.1 [clock collection file flutter http path path_provider rxdart sqflite uuid] - flutter_inappwebview_android 1.1.3 [flutter flutter_inappwebview_platform_interface] - flutter_inappwebview_internal_annotations 1.1.1 - flutter_inappwebview_ios 1.1.2 [flutter flutter_inappwebview_platform_interface] - flutter_inappwebview_macos 1.1.2 [flutter flutter_inappwebview_platform_interface] - flutter_inappwebview_platform_interface 1.3.0+1 [flutter flutter_inappwebview_internal_annotations plugin_platform_interface] - flutter_inappwebview_web 1.1.2 [flutter flutter_web_plugins web flutter_inappwebview_platform_interface] - flutter_inappwebview_windows 0.6.0 [flutter flutter_inappwebview_platform_interface] - flutter_plugin_android_lifecycle 2.0.17 [flutter] - flutter_web_plugins 0.0.0 [flutter characters collection material_color_utilities meta vector_math] - fuzzy 0.5.1 [stringr] - general_lib 0.0.45 [collection http path universal_io encrypt stack_trace mason_logger yaml archive] - hive 2.2.3 [meta crypto] - hive_flutter 1.1.0 [flutter hive path_provider path] - http 1.2.2 [async http_parser meta web] - http_parser 4.0.2 [collection source_span string_scanner typed_data] - iconsax_flutter 1.0.0 [flutter] - image 4.2.0 [archive meta xml] - intercom_flutter_platform_interface 2.0.1 [flutter plugin_platform_interface] - intl 0.19.0 [clock meta path] - io 1.0.4 [meta path string_scanner] - js 0.6.7 [meta] - json_annotation 4.8.1 [meta] - leak_tracker 10.0.5 [clock collection meta path vm_service] - leak_tracker_flutter_testing 3.0.5 [flutter leak_tracker leak_tracker_testing matcher meta] - leak_tracker_testing 3.0.1 [leak_tracker matcher meta] - lints 2.1.1 - markdown 7.2.2 [args meta] - mason_logger 0.2.16 [ffi io win32] - matcher 0.12.16+1 [async meta stack_trace term_glyph test_api] - material_color_utilities 0.11.1 [collection] - meta 1.15.0 - octo_image 2.1.0 [flutter] - package_info_plus 8.1.0 [ffi flutter flutter_web_plugins http meta path package_info_plus_platform_interface web win32 clock] - package_info_plus_platform_interface 3.0.1 [flutter meta plugin_platform_interface] - path 1.9.0 - path_drawing 1.0.1 [vector_math meta path_parsing flutter] - path_parsing 1.0.1 [vector_math meta] - path_provider 2.1.4 [flutter path_provider_android path_provider_foundation path_provider_linux path_provider_platform_interface path_provider_windows] - path_provider_android 2.2.2 [flutter path_provider_platform_interface] - path_provider_foundation 2.3.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.2.1 [ffi flutter path path_provider_platform_interface win32] - pausable_timer 3.1.0+3 [clock] - pdf 3.11.1 [archive barcode bidi crypto image meta path_parsing vector_math xml] - pdf_widget_wrapper 1.0.4 [flutter pdf] - petitparser 6.0.2 [meta] - platform 3.1.4 - plugin_platform_interface 2.1.8 [meta] - pointycastle 3.9.1 [collection convert js] - printing 5.13.3 [ffi flutter flutter_web_plugins http image meta pdf pdf_widget_wrapper plugin_platform_interface web] - qr 3.0.2 [meta] - restart_app 1.3.2 [flutter web plugin_platform_interface flutter_web_plugins] - rxdart 0.27.7 - sky_engine 0.0.99 - source_span 1.10.0 [collection path term_glyph] - sprintf 7.0.0 - sqflite 2.4.0 [flutter sqflite_android sqflite_darwin sqflite_platform_interface sqflite_common path] - sqflite_android 2.4.0 [flutter sqflite_common path sqflite_platform_interface] - sqflite_common 2.5.4+5 [synchronized path meta] - sqflite_darwin 2.4.1-1 [flutter sqflite_platform_interface meta sqflite_common path] - sqflite_platform_interface 2.4.0 [flutter platform sqflite_common plugin_platform_interface meta] - stack_trace 1.11.1 [path] - stream_channel 2.1.2 [async] - string_scanner 1.2.0 [source_span] - stringr 1.0.0 [characters] - synchronized 3.1.0+1 - system_info_fetch 0.0.23 [universal_io general_lib path] - term_glyph 1.2.1 - test_api 0.7.2 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph] - typed_data 1.3.2 [collection] - universal_io 2.2.2 [collection meta typed_data] - 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] - url_launcher_android 6.3.0 [flutter url_launcher_platform_interface] - url_launcher_ios 6.2.5 [flutter url_launcher_platform_interface] - url_launcher_linux 3.1.1 [flutter url_launcher_platform_interface] - url_launcher_macos 3.1.0 [flutter url_launcher_platform_interface] - url_launcher_platform_interface 2.3.2 [flutter plugin_platform_interface] - url_launcher_web 2.3.3 [flutter flutter_web_plugins url_launcher_platform_interface web] - url_launcher_windows 3.1.1 [flutter url_launcher_platform_interface] - usb_serial 0.5.1 [flutter async collection] - uuid 4.5.1 [crypto sprintf meta fixnum] - vector_math 2.1.4 - vm_service 14.2.5 - wakelock_plus 1.2.8 [flutter flutter_web_plugins meta wakelock_plus_platform_interface win32 dbus package_info_plus web] - wakelock_plus_platform_interface 1.2.1 [flutter plugin_platform_interface meta] - win32 5.5.4 [ffi] - win32_registry 1.1.2 [ffi win32] - xdg_directories 1.0.4 [meta path] - xml 6.5.0 [collection meta petitparser] - yaml 3.1.2 [collection source_span string_scanner] ```
Additional context and comments
No response