The app crashes consistently when working on the iOS simulator and on actual units from TestFlight. It was came upon that the crash happens on a line with such content material:
await databaseReference.little one('orders').as soon as();
With the assistance of the debugger, it was came upon that the appliance crashes on this place:
https://github.com/firebase/flutterfire/blob/d7d2d4b93e7c00226027fffde46699f3d5388a41/packages/firebase_database/firebase_database/lib/src/question.dart#L52
My pubspec.yaml:
surroundings:
sdk: ">=3.0.0 <4.0.0"
dependencies:
flutter:
sdk: flutter
sqflite: 2.3.3
bubble_bottom_bar: 2.0.0
fast_contacts: 4.0.0
contacts_service: 0.6.3
firebase_crashlytics: 4.1.2
firebase_analytics: 11.3.2
firebase_remote_config: 5.1.2
firebase_core: 3.5.0
cloud_firestore: 5.4.2
firebase_auth: 5.3.0
firebase_storage: 12.3.1
firebase_database: 11.1.3
permission_handler: 11.3.1
dio: 5.5.0
flutter_bloc: 8.1.6
bubble_tab_indicator: 0.1.6
webview_flutter: 4.9.0
sentry_flutter: 8.6.0
google_fonts: 6.2.1
facebook_app_events: 0.12.0
flutter_switch: 0.3.2
flutter_datetime_picker_plus: 2.2.0
url_launcher: 6.3.0
get: 4.6.6
get_storage: 2.1.1
flutter_svg: 2.0.10
flutter_slidable: 3.1.1
package_info_plus: 8.0.2
supplier: 6.1.2
fl_chart: 0.68.0
table_calendar: 3.1.2
share_plus: 10.0.2
spider: 4.2.2
connectivity_plus: 6.0.5
image_picker: 1.1.2
flutter_image_compress: 2.3.0
google_sign_in: 6.1.6
sign_in_with_apple: 6.1.1
appsflyer_sdk: 6.14.3
intl: 0.19.0
flutter_inapp_purchase: 5.6.1
shared_preferences: 2.3.1
flutter_localizations:
sdk: flutter
path: 1.9.0
path_provider: 2.1.4
bloc: 8.1.4
sentry: 8.6.0
http: 1.2.2
carousel_slider_plus: 7.0.0
retrofit: 4.2.0
json_annotation: 4.9.0
flutter_secure_storage: 4.2.1
uuid: 4.4.2
flutter_easy_dialogs: 4.0.1
internet_connection_checker: 1.0.0+1
fvm flutter physician -v
[✓] Flutter (Channel steady, 3.24.0, on macOS 14.4 23E214 darwin-arm64, locale en-RU)
• Flutter model 3.24.0 on channel steady at /Customers/mochalina/fvm/variations/3.24.0
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision 80c2e84975 (8 weeks in the past), 2024-07-30 23:06:49 +0700
• Engine revision b8800d88be
• Dart model 3.5.0
• DevTools model 2.37.2
[✓] Android toolchain - develop for Android units (Android SDK model 34.0.0)
• Android SDK at /Customers/mochalina/Library/Android/sdk
• Platform android-34, build-tools 34.0.0
• Java binary at: /Functions/Android Studio.app/Contents/jbr/Contents/House/bin/java
• Java model OpenJDK Runtime Surroundings (construct 17.0.9+0-17.0.9b1087.7-11185874)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
• Xcode at /Functions/Xcode.app/Contents/Developer
• Construct 15F31d
• CocoaPods model 1.15.2
[✓] Chrome - develop for the net
• Chrome at /Functions/Google Chrome.app/Contents/MacOS/Google Chrome
[✓] Android Studio (model 2023.2)
• Android Studio at /Functions/Android Studio.app/Contents
• Flutter plugin will be put in from:
🔨 https://plugins.jetbrains.com/plugin/9212-flutter
• Dart plugin will be put in from:
🔨 https://plugins.jetbrains.com/plugin/6351-dart
• Java model OpenJDK Runtime Surroundings (construct 17.0.9+0-17.0.9b1087.7-11185874)
[✓] VS Code (model 1.93.1)
• VS Code at /Functions/Visible Studio Code.app/Contents
• Flutter extension model 3.96.0
[✓] Related gadget (4 accessible)
• iPhone 15 Professional Max (cellular) • 377D141A-A665-4E3C-917A-ACE23E4423D3 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-17-5 (simulator)
• macOS (desktop) • macos • darwin-arm64 • macOS 14.4 23E214
darwin-arm64
• Mac Designed for iPad (desktop) • mac-designed-for-ipad • darwin • macOS 14.4 23E214
darwin-arm64
• Chrome (net) • chrome • web-javascript • Google Chrome 129.0.6668.60
! Error: Looking on the native space community for iPhone. Make sure the gadget is unlocked and hooked up with a cable or
related to the identical native space community as this Mac.
The gadget should be opted into Developer Mode to attach wirelessly. (code -27)
[✓] Community sources
• All anticipated community sources can be found.
• No points discovered!
Flutter doesn’t produce any errors. iOS log:
Translated Report (Full Report Under)
-------------------------------------
Incident Identifier: B483E93C-693D-4311-817B-15C7057900C1
CrashReporter Key: FD258EDC-DA98-2F71-485E-0BB0849A56CB
{Hardware} Mannequin: MacBookAir10,1
Course of: Runner [82957]
Path: /Customers/USER/Library/Developer/CoreSimulator/Gadgets/377D141A-A665-4E3C-917A-ACE23E4423D3/knowledge/Containers/Bundle/Software/19528A01-E70F-434B-A158-3BBE12BDC788/Runner.app/Runner
Identifier: com.eticon.zoomclass
Model: 1.10.15 (185)
Code Sort: X86-64 (Native)
Function: Foreground
Mother or father Course of: launchd_sim [73462]
Coalition: com.apple.CoreSimulator.SimDevice.377D141A-A665-4E3C-917A-ACE23E4423D3 [4073]
Accountable Course of: SimulatorTrampoline [1014]
Date/Time: 2024-09-25 18:40:21.2648 +0300
Launch Time: 2024-09-25 18:40:01.2418 +0300
OS Model: macOS 14.4 (23E214)
Launch Sort: Person
Report Model: 104
Exception Sort: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Motive: SIGNAL 6 Abort lure: 6
Terminating Course of: Runner [82957]
Triggered by Thread: 0
Final Exception Backtrace:
0 CoreFoundation 0x114459521 __exceptionPreprocess + 226
1 libobjc.A.dylib 0x10ef257e8 objc_exception_throw + 48
2 FirebaseDatabase 0x10d54f32b +[FValidation validateFrom:validPathString:] + 235 (FValidation.m:86)
3 FirebaseDatabase 0x10d54f4ea +[FValidation validateFrom:validRootPathString:] + 410 (FValidation.m:109)
4 FirebaseDatabase 0x10d4e5b87 -[FIRDatabase referenceWithPath:] + 103 (FIRDatabase.m:144)
5 Runner 0x1028949ce +[FLTFirebaseDatabaseUtils databaseReferenceFromArguments:] + 158 (FLTFirebaseDatabaseUtils.m:70)
6 Runner 0x1028951da +[FLTFirebaseDatabaseUtils databaseQueryFromArguments:] + 106 (FLTFirebaseDatabaseUtils.m:139)
7 Runner 0x102893ffc -[FLTFirebaseDatabasePlugin queryObserve:withMethodCallResult:] + 108 (FLTFirebaseDatabasePlugin.m:358)
8 Runner 0x1028913a9 -[FLTFirebaseDatabasePlugin handleMethodCall:result:] + 2921 (FLTFirebaseDatabasePlugin.m:121)
9 Flutter 0x123a85a6b __45-[FlutterMethodChannel setMethodCallHandler:]_block_invoke + 168
10 Flutter 0x123450efc invocation operate for block in flutter::PlatformMessageHandlerIos::HandlePlatformMessage(std::_fl::unique_ptr<:platformmessage std::_fl::default_delete="">>) + 94
11 libdispatch.dylib 0x1140c63ec _dispatch_call_block_and_release + 12
12 libdispatch.dylib 0x1140c76d8 _dispatch_client_callout + 8
13 libdispatch.dylib 0x1140d648c _dispatch_main_queue_drain + 1420
14 libdispatch.dylib 0x1140d5ef2 _dispatch_main_queue_callback_4CF + 31
15 CoreFoundation 0x1143b5af4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
16 CoreFoundation 0x1143b042f __CFRunLoopRun + 2463
17 CoreFoundation 0x1143af6ad CFRunLoopRunSpecific + 557
18 GraphicsServices 0x114d1c08f GSEventRunModal + 137
19 UIKitCore 0x13588bad1 -[UIApplication _run] + 972
20 UIKitCore 0x135890551 UIApplicationMain + 123
21 UIKitCore 0x13490a563 0x134865000 + 677219
22 Runner 0x10271987b static UIApplicationDelegate.most important() + 123
23 Runner 0x1027197f7 static AppDelegate.$most important() + 39
24 Runner 0x1027198e8 most important + 24 (AppDelegate.swift:6)
25 dyld_sim 0x10af223e0 start_sim + 10
26 dyld 0x202e63366 begin + 1942
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 ??? 0x102a94a78 ???
1 0x1093846f4 ???
2 libsystem_pthread.dylib 0x114a05ebd pthread_kill + 262
3 libsystem_c.dylib 0x11400ddbc __abort + 145
4 libsystem_c.dylib 0x11400dd2b abort + 148
5 libc++abi.dylib 0x113dfccf2 abort_message + 241
6 libc++abi.dylib 0x113def4fa demangling_terminate_handler() + 266
7 libobjc.A.dylib 0x10ef03fba _objc_terminate() + 96
8 FirebaseCrashlytics 0x10d0fd605 FIRCLSTerminateHandler() + 325 (FIRCLSException.mm:463)
9 libc++abi.dylib 0x113dfc14b std::__terminate(void (*)()) + 6
10 libc++abi.dylib 0x113dfc106 std::terminate() + 54
11 libdispatch.dylib 0x1140c76ec _dispatch_client_callout + 28
12 libdispatch.dylib 0x1140d648c _dispatch_main_queue_drain + 1420
13 libdispatch.dylib 0x1140d5ef2 _dispatch_main_queue_callback_4CF + 31
14 CoreFoundation 0x1143b5af4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
15 CoreFoundation 0x1143b042f __CFRunLoopRun + 2463
16 CoreFoundation 0x1143af6ad CFRunLoopRunSpecific + 557
17 GraphicsServices 0x114d1c08f GSEventRunModal + 137
18 UIKitCore 0x13588bad1 -[UIApplication _run] + 972
19 UIKitCore 0x135890551 UIApplicationMain + 123
20 UIKitCore 0x13490a563 0x134865000 + 677219
21 Runner 0x10271987b static UIApplicationDelegate.most important() + 123
22 Runner 0x1027197f7 static AppDelegate.$most important() + 39
23 Runner 0x1027198e8 most important + 24 (AppDelegate.swift:6)
24 dyld_sim 0x10af223e0 start_sim + 10
25 dyld 0x202e63366 begin + 1942
Thread 1:: com.apple.rosetta.exceptionserver
0 ??? 0x7ff7ffc50494 ???
Thread 2:: Dispatch queue: com.google.firebase.firestore.rpc
0 ??? 0x102a94a78 ???
1 0x10a4a81ec ???
2 grpc 0x119686820 pollset_work(grpc_pollset*, grpc_pollset_worker**, grpc_core::Timestamp) + 1984 (ev_poll_posix.cc:1029)
3 grpc 0x11968b0df pollset_work(grpc_pollset*, grpc_pollset_worker**, grpc_core::Timestamp) + 159 (ev_posix.cc:243)
4 grpc 0x11994dd00 grpc_pollset_work(grpc_pollset*, grpc_pollset_worker**, grpc_core::Timestamp) + 64 (pollset.cc:48)
5 grpc 0x1195e3c70 cq_next(grpc_completion_queue*, gpr_timespec, void*) + 1072 (completion_queue.cc:1037)
6 grpc 0x1195e2f4d grpc_completion_queue_next + 61 (completion_queue.cc:1115)
7 grpcpp 0x1122010e5 grpc::CompletionQueue::AsyncNextInternal(void**, bool*, gpr_timespec) + 69 (completion_queue_cc.cc:146)
8 FirebaseFirestoreInternal 0x10fff53cd grpc::CompletionQueue::Subsequent(void**, bool*) + 93 (completion_queue.h:184)
9 FirebaseFirestoreInternal 0x10fff52c3 firebase::firestore::distant::Datastore::PollGrpcQueue() + 179 (datastore.cc:143)
10 FirebaseFirestoreInternal 0x10fffedc8 firebase::firestore::distant::Datastore::Begin()::$_0::operator()() const + 24 (datastore.cc:116)
11 FirebaseFirestoreInternal 0x10fffeda5 decltype(std::declval<:firestore::remote::datastore::start>()()) std::__1::__invoke[abi:ue170006]<:firestore::remote::datastore::start>(firebase::firestore::distant::Datastore::Begin()::$_0&) + 21 (invoke.h:340)
12 FirebaseFirestoreInternal 0x10fffed65 void std::__1::__invoke_void_return_wrapper::__call[abi:ue170006]<:firestore::remote::datastore::start>(firebase::firestore::distant::Datastore::Begin()::$_0&) + 21 (invoke.h:415)
13 FirebaseFirestoreInternal 0x10fffed3d std::__1::__function::__alloc_func<:firestore::remote::datastore::start std::__1::allocator="">, void ()>::operator()[abi:ue170006]() + 29 (operate.h:193)
14 FirebaseFirestoreInternal 0x10fffdd59 std::__1::__function::__func<:firestore::remote::datastore::start std::__1::allocator="">, void ()>::operator()() + 25 (operate.h:364)
15 FirebaseFirestoreInternal 0x10ff80112 std::__1::__function::__value_func::operator()[abi:ue170006]() const + 50 (operate.h:518)
16 FirebaseFirestoreInternal 0x10ff7dbf5 std::__1::operate::operator()() const + 21 (operate.h:1169)
17 FirebaseFirestoreInternal 0x1103ba93d firebase::firestore::util::Process::ExecuteAndRelease() + 221 (job.cc:102)
18 FirebaseFirestoreInternal 0x11006653d firebase::firestore::util::ExecutorLibdispatch::InvokeAsync(void*) + 29 (executor_libdispatch.mm:237)
19 libdispatch.dylib 0x1140c76d8 _dispatch_client_callout + 8
20 libdispatch.dylib 0x1140cf27d _dispatch_lane_serial_drain + 1228
21 libdispatch.dylib 0x1140cfe17 _dispatch_lane_invoke + 406
22 libdispatch.dylib 0x1140db9a8 _dispatch_root_queue_drain_deferred_wlh + 276
23 libdispatch.dylib 0x1140daf72 _dispatch_workloop_worker_thread + 552
24 libsystem_pthread.dylib 0x114a02b84 _pthread_wqthread + 327
25 libsystem_pthread.dylib 0x114a01acf start_wqthread + 15