flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

🐛 [cloud_firestore] Fatal Exception: NSInvalidArgumentException -[NSNull getDocumentsWithSource:completion:]: unrecognized selector sent to instance

Open scatboy777 opened this issue 1 year ago • 0 comments

Bug report

Describe the bug My application is rejected by Apple due to the following reason "App randomly crashes". I am unable to reproduce the issue. The application never crashed on real device. I have already spent days to try to find something interesting on the crash reports ...but without any success. They have provided crash reports (see below) and I have uploaded dSYMs on Firebase Craslytics but I can't find any useful information to resolve the issue. I really hope that someone will understand the crash report and will give me an idea of the potential issue !

Extract of crashlytics reports Fatal Exception: NSInvalidArgumentException -[NSNull getDocumentsWithSource:completion:]: unrecognized selector sent to instance 0x1fb7f3a88 0 CoreFoundation 0x92d1c __exceptionPreprocess 1 libobjc.A.dylib 0x14ee4 objc_exception_throw 2 CoreFoundation 0x16375c +[NSObject(NSObject) _copyDescription] 3 CoreFoundation 0x2c61c forwarding 4 CoreFoundation 0x2b82c _CF_forwarding_prep_0 5 Runner 0x4cce4c -[FLTFirebaseFirestorePlugin queryGet:withMethodCallResult:] + 472 (FLTFirebaseFirestorePlugin.m:472) 6 Runner 0x4cb2dc -[FLTFirebaseFirestorePlugin handleMethodCall:result:] + 227 (FLTFirebaseFirestorePlugin.m:227) 7 Flutter 0x55ae50 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 8 Flutter 0x42cd0 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 9 libdispatch.dylib 0x63094 _dispatch_call_block_and_release 10 libdispatch.dylib 0x64094 _dispatch_client_callout 11 libdispatch.dylib 0x10d44 _dispatch_main_queue_drain 12 libdispatch.dylib 0x10994 _dispatch_main_queue_callback_4CF$VARIANT$mp 13 CoreFoundation 0x4e0d4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE 14 CoreFoundation 0xb5f8 __CFRunLoopRun 15 CoreFoundation 0x1e250 CFRunLoopRunSpecific 16 GraphicsServices 0x1988 GSEventRunModal 17 UIKitCore 0x4e5a94 -[UIApplication _run] 18 UIKitCore 0x27efd4 UIApplicationMain 19 Runner 0x68a0 main + 6 (AppDelegate.swift:6) 20 ??? 0x103aa84d0 (Manquant)

Steps to reproduce

Steps to reproduce the behavior:

I cannot reproduce the issue. Only Apple is facing the issue and I can see the error on CrashLytics report. Apple has just mentioned this: Steps leading to crash: -Launch the app -Navigate through the different tab -App randomly crashes

Expected behavior

No crash.


Additional context

Complete report from Crashlytics Fatal Exception: NSInvalidArgumentException -[NSNull getDocumentsWithSource:completion:]: unrecognized selector sent to instance 0x1fb7f3a88 0 CoreFoundation 0x92d1c __exceptionPreprocess 1 libobjc.A.dylib 0x14ee4 objc_exception_throw 2 CoreFoundation 0x16375c +[NSObject(NSObject) _copyDescription] 3 CoreFoundation 0x2c61c ___forwarding___ 4 CoreFoundation 0x2b82c _CF_forwarding_prep_0 5 Runner 0x4cce4c -[FLTFirebaseFirestorePlugin queryGet:withMethodCallResult:] + 472 (FLTFirebaseFirestorePlugin.m:472) 6 Runner 0x4cb2dc -[FLTFirebaseFirestorePlugin handleMethodCall:result:] + 227 (FLTFirebaseFirestorePlugin.m:227) 7 Flutter 0x55ae50 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 8 Flutter 0x42cd0 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 9 libdispatch.dylib 0x63094 _dispatch_call_block_and_release 10 libdispatch.dylib 0x64094 _dispatch_client_callout 11 libdispatch.dylib 0x10d44 _dispatch_main_queue_drain 12 libdispatch.dylib 0x10994 _dispatch_main_queue_callback_4CF$VARIANT$mp 13 CoreFoundation 0x4e0d4 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ 14 CoreFoundation 0xb5f8 __CFRunLoopRun 15 CoreFoundation 0x1e250 CFRunLoopRunSpecific 16 GraphicsServices 0x1988 GSEventRunModal 17 UIKitCore 0x4e5a94 -[UIApplication _run] 18 UIKitCore 0x27efd4 UIApplicationMain 19 Runner 0x68a0 main + 6 (AppDelegate.swift:6) 20 ??? 0x103aa84d0 (Manquant)

Crashed: com.google.firebase.crashlytics.ios.exception 0 FirebaseCrashlytics 0x222ec FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393) 1 FirebaseCrashlytics 0x226cc FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424) 2 FirebaseCrashlytics 0x1869c FIRCLSHandler + 34 (FIRCLSHandler.m:34) 3 FirebaseCrashlytics 0x128c4 __FIRCLSExceptionRecord_block_invoke + 232 (FIRCLSException.mm:232) 4 libdispatch.dylib 0x64094 _dispatch_client_callout + 16 5 libdispatch.dylib 0x11964 _dispatch_lane_barrier_sync_invoke_and_complete + 52 6 FirebaseCrashlytics 0x116a4 FIRCLSExceptionRecord + 234 (FIRCLSException.mm:234) 7 FirebaseCrashlytics 0x1236c FIRCLSExceptionRecordNSException + 126 (FIRCLSException.mm:126) 8 FirebaseCrashlytics 0x112a4 FIRCLSTerminateHandler() + 398 (FIRCLSException.mm:398) 9 libc++abi.dylib 0x10274 std::__terminate(void ()()) + 16 10 libc++abi.dylib 0x1021c std::terminate() + 60 11 libobjc.A.dylib 0x2846c objc::DenseMapBase<objc::DenseMap<objc_class, PendingInitialize*, objc::DenseMapValueInfo<PendingInitialize*>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, PendingInitialize*> >, objc_class*, PendingInitialize*, objc::DenseMapValueInfo<PendingInitialize*>, objc::DenseMapInfo<objc_class*>, objc::detail::DenseMapPair<objc_class*, PendingInitialize*> >::FatalCorruptHashTables(objc::detail::DenseMapPair<objc_class*, PendingInitialize*> const*, unsigned int) const + 10 12 libdispatch.dylib 0x640a8 _dispatch_client_callout + 36 13 libdispatch.dylib 0x10d44 _dispatch_main_queue_drain + 928 14 libdispatch.dylib 0x10994 _dispatch_main_queue_callback_4CF$VARIANT$mp + 36 15 CoreFoundation 0x4e0d4 CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE + 12 16 CoreFoundation 0xb5f8 __CFRunLoopRun + 2544 17 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572 18 GraphicsServices 0x1988 GSEventRunModal + 160 19 UIKitCore 0x4e5a94 -[UIApplication _run] + 1080 20 UIKitCore 0x27efd4 UIApplicationMain + 336 21 Runner 0x68a0 main + 6 (AppDelegate.swift:6) 22 ??? 0x103aa84d0 (Manquant)

com.google.firebase.firestore.rpc 0 libsystem_kernel.dylib 0x3e30 poll + 8 1 grpc 0x87a68 pollset_work(grpc_pollset*, grpc_pollset_worker**, long long) + 1026 (ev_poll_posix.cc:1026) 2 grpc 0x898e0 pollset_work(grpc_pollset*, grpc_pollset_worker**, long long) + 323 (ev_posix.cc:323) 3 grpc 0x6cc70 cq_next(grpc_completion_queue*, gpr_timespec, void*) + 1047 (completion_queue.cc:1047) 4 grpcpp 0x1a10c grpc::CompletionQueue::AsyncNextInternal(void**, bool*, gpr_timespec) + 147 (completion_queue_cc.cc:147) 5 FirebaseFirestore 0x2c718 firebase::firestore::remote::Datastore::PollGrpcQueue() + 142 (datastore.cc:142) 6 FirebaseFirestore 0x1456a0 firebase::firestore::util::Task::ExecuteAndRelease() + 491 (function.h:491) 7 libdispatch.dylib 0x64094 _dispatch_client_callout + 16 8 libdispatch.dylib 0xa73c _dispatch_lane_serial_drain$VARIANT$mp + 644 9 libdispatch.dylib 0xb1f4 _dispatch_lane_invoke$VARIANT$mp + 408 10 libdispatch.dylib 0x14ec8 _dispatch_workloop_worker_thread + 632 11 libsystem_pthread.dylib 0x1e10 _pthread_wqthread + 284 12 libsystem_pthread.dylib 0x193c start_wqthread + 8

com.apple.uikit.eventfetch-thread 0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x107c mach_msg + 72 2 CoreFoundation 0x6d88 __CFRunLoopServiceMachPort + 368 3 CoreFoundation 0xb090 __CFRunLoopRun + 1160 4 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572 5 Foundation 0x17eec -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 232 6 Foundation 0x57000 -[NSRunLoop(NSRunLoop) runUntilDate:] + 88 7 UIKitCore 0x464f00 -[UIEventFetcher threadMain] + 512 8 Foundation 0x64bfc NSThread__start + 792 9 libsystem_pthread.dylib 0x3348 _pthread_start + 116 10 libsystem_pthread.dylib 0x1948 thread_start + 8

io.flutter.1.ui 0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x107c mach_msg + 72 2 CoreFoundation 0x6d88 __CFRunLoopServiceMachPort + 368 3 CoreFoundation 0xb090 __CFRunLoopRun + 1160 4 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572 5 Flutter 0x308a18 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 6 Flutter 0x3083fc (Manquant UUID b5f419596300357c85f161f5e6e0920d) 7 libsystem_pthread.dylib 0x3348 _pthread_start + 116 8 libsystem_pthread.dylib 0x1948 thread_start + 8

io.flutter.1.raster 0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x107c mach_msg + 72 2 CoreFoundation 0x6d88 __CFRunLoopServiceMachPort + 368 3 CoreFoundation 0xb090 __CFRunLoopRun + 1160 4 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572 5 Flutter 0x308a18 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 6 Flutter 0x3083fc (Manquant UUID b5f419596300357c85f161f5e6e0920d) 7 libsystem_pthread.dylib 0x3348 _pthread_start + 116 8 libsystem_pthread.dylib 0x1948 thread_start + 8

io.flutter.1.io 0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x107c mach_msg + 72 2 CoreFoundation 0x6d88 __CFRunLoopServiceMachPort + 368 3 CoreFoundation 0xb090 __CFRunLoopRun + 1160 4 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572 5 Flutter 0x308a18 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 6 Flutter 0x3083fc (Manquant UUID b5f419596300357c85f161f5e6e0920d) 7 libsystem_pthread.dylib 0x3348 _pthread_start + 116 8 libsystem_pthread.dylib 0x1948 thread_start + 8

io.worker.1 0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x9bd4 _pthread_cond_wait$VARIANT$mp + 1240 2 libc++.1.dylib 0xc8e0 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 24 3 Flutter 0x3031e4 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 4 libsystem_pthread.dylib 0x3348 _pthread_start + 116 5 libsystem_pthread.dylib 0x1948 thread_start + 8

io.worker.2 0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x9bd4 _pthread_cond_wait$VARIANT$mp + 1240 2 libc++.1.dylib 0xc8e0 std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 24 3 Flutter 0x3031e4 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 4 libsystem_pthread.dylib 0x3348 _pthread_start + 116 5 libsystem_pthread.dylib 0x1948 thread_start + 8

dart:io EventHandler 0 libsystem_kernel.dylib 0x2294 kevent + 8 1 Flutter 0x4ecbc4 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 2 Flutter 0x51b4e0 (Manquant UUID b5f419596300357c85f161f5e6e0920d) 3 libsystem_pthread.dylib 0x3348 _pthread_start + 116 4 libsystem_pthread.dylib 0x1948 thread_start + 8

com.google.firebase.crashlytics.MachExceptionServer 0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x107c mach_msg + 72 2 FirebaseCrashlytics 0x1b004 FIRCLSMachExceptionServer + 192 (FIRCLSMachException.c:192) 3 libsystem_pthread.dylib 0x3348 _pthread_start + 116 4 libsystem_pthread.dylib 0x1948 thread_start + 8

Thread 0 libsystem_kernel.dylib 0x1484 __psynch_cvwait + 8 1 libsystem_pthread.dylib 0x9bd4 _pthread_cond_wait$VARIANT$mp + 1240 2 grpc 0x174d68 gpr_cv_wait + 143 (sync_posix.cc:143) 3 grpc 0x8bca8 grpc_core::Executor::ThreadMain(void*) + 238 (executor.cc:238) 4 grpc 0x17fcdc grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*) + 141 (thd_posix.cc:141) 5 libsystem_pthread.dylib 0x3348 _pthread_start + 116 6 libsystem_pthread.dylib 0x1948 thread_start + 8

com.apple.NSURLConnectionLoader 0 libsystem_kernel.dylib 0xaac mach_msg_trap + 8 1 libsystem_kernel.dylib 0x107c mach_msg + 72 2 CoreFoundation 0x6d88 __CFRunLoopServiceMachPort + 368 3 CoreFoundation 0xb090 __CFRunLoopRun + 1160 4 CoreFoundation 0x1e250 CFRunLoopRunSpecific + 572 5 CFNetwork 0x247aa8 _CFURLStorageSessionDisableCache + 50420 6 Foundation 0x64bfc NSThread__start + 792 7 libsystem_pthread.dylib 0x3348 _pthread_start + 116 8 libsystem_pthread.dylib 0x1948 thread_start + 8

Crash report provided by Apple {"app_name":"Runner","timestamp":"2022-08-04 00:53:43.00 -0700","app_version":"1.4.1","slice_uuid":"479c1be4-4428-385e-9fb3-c79bda90d01e","adam_id":"1571552594","build_version":"1.4.1","platform":2,"bundleID":"masked_data","share_with_app_devs":0,"is_first_party":0,"bug_type":"309","os_version":"iPhone OS 15.6 (19G71)","incident_id":"31872825-3112-4F79-AF25-4460D6472ACA","name":"Runner"} { "uptime" : 34000, "procLaunch" : "2022-08-04 00:52:56.5804 -0700", "procRole" : "Foreground", "version" : 2, "userID" : 501, "deployVersion" : 210, "modelCode" : "iPad7,5", "procStartAbsTime" : 832229116960, "coalitionID" : 1063, "osVersion" : { "isEmbedded" : true, "train" : "iPhone OS 15.6", "releaseType" : "User", "build" : "19G71" }, "captureTime" : "2022-08-04 00:53:42.4946 -0700", "incident" : "31872825-3112-4F79-AF25-4460D6472ACA", "bug_type" : "309", "pid" : 3608, "procExitAbsTime" : 833306927373, "cpuType" : "ARM-64", "procName" : "Runner", "procPath" : "\/private\/var\/containers\/Bundle\/Application\/29884126-F7D2-46CE-83EF-A6693BDA2189\/Runner.app\/Runner", "bundleInfo" : {"CFBundleShortVersionString":"1.4.1","CFBundleVersion":"1.4.1","CFBundleIdentifier":"masked_data","DTAppStoreToolsBuild":"13F100"}, "storeInfo" : {"itemID":"1571552594","deviceIdentifierForVendor":"81CB964F-F151-45E0-ABC3-9B7EF4FB59CB","thirdParty":true,"softwareVersionExternalIdentifier":"851305270"}, "parentProc" : "launchd", "parentPid" : 1, "coalitionName" : "masked_data", "crashReporterKey" : "ee1c487eb88073e3b39b44b5ab74e7956e9cc313", "isCorpse" : 1, "exception" : {"codes":"0x0000000000000000, 0x0000000000000000","rawCodes":[0,0],"type":"EXC_CRASH","signal":"SIGABRT"}, "ktriageinfo" : "VM - Fault hit memory shortage\n", "asi" : {"libsystem_c.dylib":["abort() called"]}, "lastExceptionBacktrace" : [{"imageOffset":601372,"symbol":"__exceptionPreprocess","symbolLocation":216,"imageIndex":7},{"imageOffset":85732,"symbol":"objc_exception_throw","symbolLocation":56,"imageIndex":4},{"imageOffset":1455964,"symbol":"+[NSObject(NSObject) _copyDescription]","symbolLocation":0,"imageIndex":7},{"imageOffset":181788,"symbol":"___forwarding___","symbolLocation":1472,"imageIndex":7},{"imageOffset":178220,"symbol":"_CF_forwarding_prep_0","symbolLocation":92,"imageIndex":7},{"imageOffset":5033548,"imageIndex":10},{"imageOffset":5026524,"imageIndex":10},{"imageOffset":5615184,"imageIndex":16},{"imageOffset":273616,"imageIndex":16},{"imageOffset":405652,"symbol":"_dispatch_call_block_and_release","symbolLocation":24,"imageIndex":6},{"imageOffset":409748,"symbol":"_dispatch_client_callout","symbolLocation":16,"imageIndex":6},{"imageOffset":68932,"symbol":"_dispatch_main_queue_drain","symbolLocation":928,"imageIndex":6},{"imageOffset":67988,"symbol":"_dispatch_main_queue_callback_4CF$VARIANT$mp","symbolLocation":36,"imageIndex":6},{"imageOffset":319700,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":12,"imageIndex":7},{"imageOffset":46584,"symbol":"__CFRunLoopRun","symbolLocation":2544,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":6536,"symbol":"GSEventRunModal","symbolLocation":160,"imageIndex":8},{"imageOffset":5134996,"symbol":"-[UIApplication _run]","symbolLocation":1080,"imageIndex":9},{"imageOffset":2617300,"symbol":"UIApplicationMain","symbolLocation":336,"imageIndex":9},{"imageOffset":26784,"imageIndex":10},{"imageOffset":99536,"symbol":"start","symbolLocation":444,"imageIndex":11}], "faultingThread" : 0, "threads" : [{"triggered":true,"id":198204,"threadState":{"x":[{"value":0},{"value":0},{"value":0},{"value":0},{"value":0},{"value":10000000},{"value":110},{"value":18446744073709532636},{"value":4390552960,"symbolLocation":0,"symbol":"_main_thread"},{"value":4411838189906324098},{"value":1000},{"value":11},{"value":0},{"value":0},{"value":16},{"value":0},{"value":328},{"value":1},{"value":0},{"value":6},{"value":259},{"value":4390553184,"symbolLocation":224,"symbol":"_main_thread"},{"value":7},{"value":4396919561,"symbolLocation":10622,"symbol":"FIRCLSHexMap"},{"value":0},{"value":4390553184,"symbolLocation":224,"symbol":"_main_thread"},{"value":15},{"value":10776520192},{"value":0}],"flavor":"ARM_THREAD_STATE64","lr":{"value":8016005204},"cpsr":{"value":1073741824},"fp":{"value":6089827024},"sp":{"value":6089826992},"esr":{"value":1442840704,"description":" Address size fault"},"pc":{"value":7471229884,"matchesCrashFrame":1},"far":{"value":0}},"queue":"com.apple.main-thread","frames":[{"imageOffset":27580,"symbol":"__pthread_kill","symbolLocation":8,"imageIndex":0},{"imageOffset":55380,"symbol":"pthread_kill","symbolLocation":208,"imageIndex":1},{"imageOffset":475312,"symbol":"__abort","symbolLocation":124,"imageIndex":2},{"imageOffset":128696,"symbol":"abort","symbolLocation":136,"imageIndex":2},{"imageOffset":69080,"symbol":"abort_message","symbolLocation":128,"imageIndex":3},{"imageOffset":5468,"symbol":"demangling_terminate_handler()","symbolLocation":300,"imageIndex":3},{"imageOffset":108792,"symbol":"_objc_terminate()","symbolLocation":124,"imageIndex":4},{"imageOffset":70244,"symbol":"FIRCLSTerminateHandler()","symbolLocation":340,"imageIndex":5},{"imageOffset":66164,"symbol":"std::__terminate(void (*)())","symbolLocation":16,"imageIndex":3},{"imageOffset":66076,"symbol":"std::terminate()","symbolLocation":60,"imageIndex":3},{"imageOffset":409768,"symbol":"_dispatch_client_callout","symbolLocation":36,"imageIndex":6},{"imageOffset":68932,"symbol":"_dispatch_main_queue_drain","symbolLocation":928,"imageIndex":6},{"imageOffset":67988,"symbol":"_dispatch_main_queue_callback_4CF$VARIANT$mp","symbolLocation":36,"imageIndex":6},{"imageOffset":319700,"symbol":"__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__","symbolLocation":12,"imageIndex":7},{"imageOffset":46584,"symbol":"__CFRunLoopRun","symbolLocation":2544,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":6536,"symbol":"GSEventRunModal","symbolLocation":160,"imageIndex":8},{"imageOffset":5134996,"symbol":"-[UIApplication _run]","symbolLocation":1080,"imageIndex":9},{"imageOffset":2617300,"symbol":"UIApplicationMain","symbolLocation":336,"imageIndex":9},{"imageOffset":26784,"imageIndex":10},{"imageOffset":99536,"symbol":"start","symbolLocation":444,"imageIndex":11}]},{"id":198272,"queue":"com.google.firebase.firestore.rpc","frames":[{"imageOffset":15920,"symbol":"poll","symbolLocation":8,"imageIndex":0},{"imageOffset":555624,"symbol":"pollset_work(grpc_pollset*, grpc_pollset_worker**, long long)","symbolLocation":1184,"imageIndex":12},{"imageOffset":563424,"symbol":"pollset_work(grpc_pollset*, grpc_pollset_worker**, long long)","symbolLocation":72,"imageIndex":12},{"imageOffset":445552,"symbol":"cq_next(grpc_completion_queue*, gpr_timespec, void*)","symbolLocation":320,"imageIndex":12},{"imageOffset":106764,"symbol":"grpc::CompletionQueue::AsyncNextInternal(void**, bool*, gpr_timespec)","symbolLocation":60,"imageIndex":13},{"imageOffset":182040,"symbol":"firebase::firestore::remote::Datastore::PollGrpcQueue()","symbolLocation":104,"imageIndex":14},{"imageOffset":1332896,"symbol":"firebase::firestore::util::Task::ExecuteAndRelease()","symbolLocation":184,"imageIndex":14},{"imageOffset":409748,"symbol":"_dispatch_client_callout","symbolLocation":16,"imageIndex":6},{"imageOffset":42812,"symbol":"_dispatch_lane_serial_drain$VARIANT$mp","symbolLocation":644,"imageIndex":6},{"imageOffset":45556,"symbol":"_dispatch_lane_invoke$VARIANT$mp","symbolLocation":408,"imageIndex":6},{"imageOffset":85704,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":632,"imageIndex":6},{"imageOffset":7696,"symbol":"_pthread_wqthread","symbolLocation":284,"imageIndex":1},{"imageOffset":6460,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":1}]},{"id":198274,"name":"com.apple.uikit.eventfetch-thread","frames":[{"imageOffset":2732,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":4220,"symbol":"mach_msg","symbolLocation":72,"imageIndex":0},{"imageOffset":28040,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":7},{"imageOffset":45200,"symbol":"__CFRunLoopRun","symbolLocation":1160,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":98028,"symbol":"-[NSRunLoop(NSRunLoop) runMode:beforeDate:]","symbolLocation":232,"imageIndex":15},{"imageOffset":356352,"symbol":"-[NSRunLoop(NSRunLoop) runUntilDate:]","symbolLocation":88,"imageIndex":15},{"imageOffset":4607744,"symbol":"-[UIEventFetcher threadMain]","symbolLocation":512,"imageIndex":9},{"imageOffset":412668,"symbol":"__NSThread__start__","symbolLocation":792,"imageIndex":15},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198276,"frames":[{"imageOffset":6452,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":198294,"name":"io.flutter.1.ui","frames":[{"imageOffset":2732,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":4220,"symbol":"mach_msg","symbolLocation":72,"imageIndex":0},{"imageOffset":28040,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":7},{"imageOffset":45200,"symbol":"__CFRunLoopRun","symbolLocation":1160,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":3181080,"imageIndex":16},{"imageOffset":3179516,"imageIndex":16},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198301,"name":"io.flutter.1.raster","frames":[{"imageOffset":2732,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":4220,"symbol":"mach_msg","symbolLocation":72,"imageIndex":0},{"imageOffset":28040,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":7},{"imageOffset":45200,"symbol":"__CFRunLoopRun","symbolLocation":1160,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":3181080,"imageIndex":16},{"imageOffset":3179516,"imageIndex":16},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198302,"name":"io.flutter.1.io","frames":[{"imageOffset":2732,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":4220,"symbol":"mach_msg","symbolLocation":72,"imageIndex":0},{"imageOffset":28040,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":7},{"imageOffset":45200,"symbol":"__CFRunLoopRun","symbolLocation":1160,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":3181080,"imageIndex":16},{"imageOffset":3179516,"imageIndex":16},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198317,"name":"io.worker.1","frames":[{"imageOffset":5252,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":39892,"symbol":"_pthread_cond_wait$VARIANT$mp","symbolLocation":1240,"imageIndex":1},{"imageOffset":51424,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<:__1::mutex>&)","symbolLocation":24,"imageIndex":17},{"imageOffset":3158500,"imageIndex":16},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198318,"name":"io.worker.2","frames":[{"imageOffset":5252,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":39892,"symbol":"_pthread_cond_wait$VARIANT$mp","symbolLocation":1240,"imageIndex":1},{"imageOffset":51424,"symbol":"std::__1::condition_variable::wait(std::__1::unique_lock<:__1::mutex>&)","symbolLocation":24,"imageIndex":17},{"imageOffset":3158500,"imageIndex":16},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198319,"name":"dart:io EventHandler","frames":[{"imageOffset":8852,"symbol":"kevent","symbolLocation":8,"imageIndex":0},{"imageOffset":5163972,"imageIndex":16},{"imageOffset":5354720,"imageIndex":16},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198346,"name":"com.google.firebase.crashlytics.MachExceptionServer","frames":[{"imageOffset":2732,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":4220,"symbol":"mach_msg","symbolLocation":72,"imageIndex":0},{"imageOffset":110596,"symbol":"FIRCLSMachExceptionServer","symbolLocation":108,"imageIndex":5},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198381,"frames":[{"imageOffset":5252,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":39892,"symbol":"_pthread_cond_wait$VARIANT$mp","symbolLocation":1240,"imageIndex":1},{"imageOffset":1527144,"symbol":"gpr_cv_wait","symbolLocation":124,"imageIndex":12},{"imageOffset":572584,"symbol":"grpc_core::Executor::ThreadMain(void*)","symbolLocation":180,"imageIndex":12},{"imageOffset":1572060,"symbol":"grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*)","symbolLocation":140,"imageIndex":12},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198382,"frames":[{"imageOffset":5252,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":39892,"symbol":"_pthread_cond_wait$VARIANT$mp","symbolLocation":1240,"imageIndex":1},{"imageOffset":1527144,"symbol":"gpr_cv_wait","symbolLocation":124,"imageIndex":12},{"imageOffset":572584,"symbol":"grpc_core::Executor::ThreadMain(void*)","symbolLocation":180,"imageIndex":12},{"imageOffset":1572060,"symbol":"grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*)","symbolLocation":140,"imageIndex":12},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198383,"frames":[{"imageOffset":5252,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":39892,"symbol":"_pthread_cond_wait$VARIANT$mp","symbolLocation":1240,"imageIndex":1},{"imageOffset":1527128,"symbol":"gpr_cv_wait","symbolLocation":108,"imageIndex":12},{"imageOffset":1588224,"symbol":"timer_thread(void*)","symbolLocation":552,"imageIndex":12},{"imageOffset":1572060,"symbol":"grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*)","symbolLocation":140,"imageIndex":12},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198391,"name":"com.apple.NSURLConnectionLoader","frames":[{"imageOffset":2732,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":4220,"symbol":"mach_msg","symbolLocation":72,"imageIndex":0},{"imageOffset":28040,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":7},{"imageOffset":45200,"symbol":"__CFRunLoopRun","symbolLocation":1160,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":2390696,"imageIndex":18},{"imageOffset":412668,"symbol":"__NSThread__start__","symbolLocation":792,"imageIndex":15},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198409,"frames":[{"imageOffset":6452,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":198419,"frames":[{"imageOffset":5252,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":39892,"symbol":"_pthread_cond_wait$VARIANT$mp","symbolLocation":1240,"imageIndex":1},{"imageOffset":1527144,"symbol":"gpr_cv_wait","symbolLocation":124,"imageIndex":12},{"imageOffset":1588224,"symbol":"timer_thread(void*)","symbolLocation":552,"imageIndex":12},{"imageOffset":1572060,"symbol":"grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void (*)(void*), void*, bool*, grpc_core::Thread::Options const&)::'lambda'(void*)::__invoke(void*)","symbolLocation":140,"imageIndex":12},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]},{"id":198688,"frames":[{"imageOffset":6452,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":198696,"frames":[{"imageOffset":6452,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":198778,"frames":[{"imageOffset":6452,"symbol":"start_wqthread","symbolLocation":0,"imageIndex":1}]},{"id":198779,"queue":"com.apple.camera.capture-engine.session-queue","frames":[{"imageOffset":2732,"symbol":"mach_msg_trap","symbolLocation":8,"imageIndex":0},{"imageOffset":4220,"symbol":"mach_msg","symbolLocation":72,"imageIndex":0},{"imageOffset":28040,"symbol":"__CFRunLoopServiceMachPort","symbolLocation":368,"imageIndex":7},{"imageOffset":45200,"symbol":"__CFRunLoopRun","symbolLocation":1160,"imageIndex":7},{"imageOffset":123472,"symbol":"CFRunLoopRunSpecific","symbolLocation":572,"imageIndex":7},{"imageOffset":173776,"symbol":"-[AVRunLoopCondition _waitInMode:untilDate:]","symbolLocation":392,"imageIndex":19},{"imageOffset":314460,"symbol":"-[AVCaptureSession _stopFigCaptureSession]","symbolLocation":344,"imageIndex":20},{"imageOffset":200304,"symbol":"-[AVCaptureSession _setRunning:]","symbolLocation":176,"imageIndex":20},{"imageOffset":1714520,"symbol":"__39-[CAMCaptureEngine stopWithCompletion:]_block_invoke.141","symbolLocation":212,"imageIndex":21},{"imageOffset":36244,"symbol":"__pl_dispatch_async_block_invoke","symbolLocation":36,"imageIndex":22},{"imageOffset":405652,"symbol":"_dispatch_call_block_and_release","symbolLocation":24,"imageIndex":6},{"imageOffset":409748,"symbol":"_dispatch_client_callout","symbolLocation":16,"imageIndex":6},{"imageOffset":42812,"symbol":"_dispatch_lane_serial_drain$VARIANT$mp","symbolLocation":644,"imageIndex":6},{"imageOffset":45556,"symbol":"_dispatch_lane_invoke$VARIANT$mp","symbolLocation":408,"imageIndex":6},{"imageOffset":85704,"symbol":"_dispatch_workloop_worker_thread","symbolLocation":632,"imageIndex":6},{"imageOffset":7696,"symbol":"_pthread_wqthread","symbolLocation":284,"imageIndex":1},{"imageOffset":6460,"symbol":"start_wqthread","symbolLocation":8,"imageIndex":1}]},{"id":198829,"name":"DartWorker","frames":[{"imageOffset":5252,"symbol":"__psynch_cvwait","symbolLocation":8,"imageIndex":0},{"imageOffset":39936,"symbol":"_pthread_cond_wait$VARIANT$mp","symbolLocation":1284,"imageIndex":1},{"imageOffset":6364120,"imageIndex":16},{"imageOffset":6627164,"imageIndex":16},{"imageOffset":6362368,"imageIndex":16},{"imageOffset":13128,"symbol":"_pthread_start","symbolLocation":116,"imageIndex":1},{"imageOffset":6472,"symbol":"thread_start","symbolLocation":8,"imageIndex":1}]}], "usedImages" : [ { "source" : "P", "arch" : "arm64", "base" : 7471202304, "size" : 212992, "uuid" : "7d639422-feb9-35a9-ab63-a4bc6e8c7d13", "path" : "\/usr\/lib\/system\/libsystem_kernel.dylib", "name" : "libsystem_kernel.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 8015949824, "size" : 69632, "uuid" : "363cc4a2-ee89-3116-b5e7-df36982aae18", "path" : "\/usr\/lib\/system\/libsystem_pthread.dylib", "name" : "libsystem_pthread.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6677544960, "size" : 507904, "uuid" : "888f81ba-fb99-3ea7-9e30-0cf73bab720f", "path" : "\/usr\/lib\/system\/libsystem_c.dylib", "name" : "libsystem_c.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6897995776, "size" : 94208, "uuid" : "315a3f29-0b9c-3e29-b855-f6c0958859fd", "path" : "\/usr\/lib\/libc++abi.dylib", "name" : "libc++abi.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6896963584, "size" : 229376, "uuid" : "f1aa3628-4dea-3929-b55e-57832fb65cab", "path" : "\/usr\/lib\/libobjc.A.dylib", "name" : "libobjc.A.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 4396695552, "size" : 278528, "uuid" : "3c3ff0fb-0ffb-3ab6-aa51-4344c67dac28", "path" : "\/private\/var\/containers\/Bundle\/Application\/29884126-F7D2-46CE-83EF-A6693BDA2189\/Runner.app\/Frameworks\/FirebaseCrashlytics.framework\/FirebaseCrashlytics", "name" : "FirebaseCrashlytics" }, { "source" : "P", "arch" : "arm64", "base" : 6498836480, "size" : 536576, "uuid" : "4fc02901-034e-35cf-8cf2-5b7f81d579e4", "path" : "\/usr\/lib\/system\/libdispatch.dylib", "name" : "libdispatch.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6502051840, "size" : 4448256, "uuid" : "55a96cfe-3141-3f56-8ab1-569c607b9370", "path" : "\/System\/Library\/Frameworks\/CoreFoundation.framework\/CoreFoundation", "name" : "CoreFoundation" }, { "source" : "P", "arch" : "arm64", "base" : 7048785920, "size" : 36864, "uuid" : "99e76e47-eaad-3c2a-b6cd-c3bd3824fe8c", "path" : "\/System\/Library\/PrivateFrameworks\/GraphicsServices.framework\/GraphicsServices", "name" : "GraphicsServices" }, { "source" : "P", "arch" : "arm64", "base" : 6538985472, "size" : 24756224, "uuid" : "c53f6102-4f39-3af2-bc70-71923fd99a67", "path" : "\/System\/Library\/PrivateFrameworks\/UIKitCore.framework\/UIKitCore", "name" : "UIKitCore" }, { "source" : "P", "arch" : "arm64", "base" : 4377051136, "size" : 7471104, "uuid" : "479c1be4-4428-385e-9fb3-c79bda90d01e", "path" : "\/private\/var\/containers\/Bundle\/Application\/29884126-F7D2-46CE-83EF-A6693BDA2189\/Runner.app\/Runner", "name" : "Runner" }, { "source" : "P", "arch" : "arm64", "base" : 4390125568, "size" : 344064, "uuid" : "c7b2bef3-7f6b-36eb-80ed-cc49f96b9bee", "path" : "\/usr\/lib\/dyld", "name" : "dyld" }, { "source" : "P", "arch" : "arm64", "base" : 4420796416, "size" : 2883584, "uuid" : "f0f6e7ee-bd41-3492-9b05-001ae943283f", "path" : "\/private\/var\/containers\/Bundle\/Application\/29884126-F7D2-46CE-83EF-A6693BDA2189\/Runner.app\/Frameworks\/grpc.framework\/grpc", "name" : "grpc" }, { "source" : "P", "arch" : "arm64", "base" : 4414226432, "size" : 393216, "uuid" : "99f20c03-9429-3fb7-a7c8-b9f4d1bbcde9", "path" : "\/private\/var\/containers\/Bundle\/Application\/29884126-F7D2-46CE-83EF-A6693BDA2189\/Runner.app\/Frameworks\/grpcpp.framework\/grpcpp", "name" : "grpcpp" }, { "source" : "P", "arch" : "arm64", "base" : 4403675136, "size" : 2179072, "uuid" : "e77fe144-449e-33ae-ad8f-40cfdb329606", "path" : "\/private\/var\/containers\/Bundle\/Application\/29884126-F7D2-46CE-83EF-A6693BDA2189\/Runner.app\/Frameworks\/FirebaseFirestore.framework\/FirebaseFirestore", "name" : "FirebaseFirestore" }, { "source" : "P", "arch" : "arm64", "base" : 6526251008, "size" : 3035136, "uuid" : "3fe3654a-bb33-3073-a53a-563ff81c1dd0", "path" : "\/System\/Library\/Frameworks\/Foundation.framework\/Foundation", "name" : "Foundation" }, { "source" : "P", "arch" : "arm64", "base" : 4440473600, "size" : 8110080, "uuid" : "b5f41959-6300-357c-85f1-61f5e6e0920d", "path" : "\/private\/var\/containers\/Bundle\/Application\/29884126-F7D2-46CE-83EF-A6693BDA2189\/Runner.app\/Frameworks\/Flutter.framework\/Flutter", "name" : "Flutter" }, { "source" : "P", "arch" : "arm64", "base" : 6897618944, "size" : 376832, "uuid" : "823b6d0e-dfab-37b9-8524-617ec7910f6b", "path" : "\/usr\/lib\/libc++.1.dylib", "name" : "libc++.1.dylib" }, { "source" : "P", "arch" : "arm64", "base" : 6510292992, "size" : 4788224, "uuid" : "c330718b-f955-3dc2-b274-6828ca7b468b", "path" : "\/System\/Library\/Frameworks\/CFNetwork.framework\/CFNetwork", "name" : "CFNetwork" }, { "source" : "P", "arch" : "arm64", "base" : 6650855424, "size" : 1990656, "uuid" : "aeedfe8e-a59f-3b09-b95d-9ad473ca6ba7", "path" : "\/System\/Library\/PrivateFrameworks\/AVFCore.framework\/AVFCore", "name" : "AVFCore" }, { "source" : "P", "arch" : "arm64", "base" : 7093882880, "size" : 999424, "uuid" : "e27aeb82-a14d-378a-b771-a3a65cceb10d", "path" : "\/System\/Library\/PrivateFrameworks\/AVFCapture.framework\/AVFCapture", "name" : "AVFCapture" }, { "source" : "P", "arch" : "arm64", "base" : 7405383680, "size" : 2932736, "uuid" : "e5219654-02ca-3376-afa8-428c4069f0b1", "path" : "\/System\/Library\/PrivateFrameworks\/CameraUI.framework\/CameraUI", "name" : "CameraUI" }, { "source" : "P", "arch" : "arm64", "base" : 8156196864, "size" : 929792, "uuid" : "60daf445-346d-3965-833b-ff32135280ba", "path" : "\/System\/Library\/PrivateFrameworks\/PhotoLibraryServicesCore.framework\/PhotoLibraryServicesCore", "name" : "PhotoLibraryServicesCore" } ], "sharedCache" : { "base" : 6498516992, "size" : 2286223360, "uuid" : "e2296e13-6fbd-30f4-8ffe-6e37e470dd20" }, "vmSummary" : "ReadOnly portion of Libraries: Total=869.0M resident=0K(0%) swapped_out_or_unallocated=869.0M(100%)\nWritable regions: Total=775.7M written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=775.7M(100%)\n\n VIRTUAL REGION \nREGION TYPE SIZE COUNT (non-coalesced) \n=========== ======= ======= \nActivity Tracing 256K 1 \nColorSync 64K 4 \nCoreAnimation 144K 8 \nCoreUI image data 144K 1 \nFoundation 16K 1 \nKernel Alloc Once 32K 1 \nMALLOC 551.3M 107 \nMALLOC guard page 192K 12 \nMach message 32K 2 \nSQLite page cache 704K 11 \nSTACK GUARD 336K 21 \nStack 12.7M 23 \nVM_ALLOCATE 16.4M 40 \nWebKit Malloc 192.0M 5 \n__CTF 756 1 \n__DATA 26.0M 740 \n__DATA_CONST 60.6M 701 \n__DATA_DIRTY 2816K 570 \n__FONT_DATA 4K 1 \n__LINKEDIT 207.9M 71 \n__OBJC_RO 91.3M 1 \n__OBJC_RW 3472K 1 \n__TEXT 661.1M 756 \n__UNICODE 592K 1 \ndyld private memory 2928K 112 \nlibnetwork 640K 16 \nmapped file 162.7M 26 \nshared memory 48K 3 \n=========== ======= ======= \nTOTAL 1.9G 3237 \n", "legacyInfo" : { "threadTriggered" : { "queue" : "com.apple.main-thread" } }, "trialInfo" : { "rollouts" : [ { "rolloutId" : "61030413bfe6dc472e1c980c", "factorPackIds" : {
  },
  "deploymentId" : 240000393
},
{
  "rolloutId" : "61af99aeda72d16a4beb7756",
  "factorPackIds" : {

  },
  "deploymentId" : 240000290
}

], "experiments" : [

] } }


Flutter doctor

Run flutter doctor and paste the output below:

Click To Expand

Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 3.0.5, on macOS 12.5 21G72 darwin-arm, locale fr-FR) [✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0) [✓] Xcode - develop for iOS and macOS (Xcode 13.4.1) [✓] Chrome - develop for the web [✓] Android Studio (version 2021.2) [✓] VS Code (version 1.70.0) [✓] Connected device (3 available) [✓] HTTP Host Availability


Flutter dependencies

Run flutter pub deps -- --style=compact and paste the output below:

Click To Expand

Dart SDK 2.17.6 Flutter SDK 3.0.5 masked_data 1.4.3

dependencies:

  • add_2_calendar 2.1.3 [flutter]
  • advance_pdf_viewer 2.0.1 [flutter flutter_cache_manager numberpicker path_provider]
  • animated_list_plus 0.4.3 [async flutter meta]
  • badges 2.0.3 [flutter]
  • basic_utils 4.5.2 [http logging json_annotation pointycastle]
  • cached_network_image 3.2.1 [flutter flutter_cache_manager octo_image cached_network_image_platform_interface cached_network_image_web]
  • carousel_slider 4.1.1 [flutter]
  • cloud_firestore 3.4.3 [cloud_firestore_platform_interface cloud_firestore_web collection firebase_core firebase_core_platform_interface flutter meta]
  • collection 1.16.0
  • connectivity_plus 2.3.6 [flutter connectivity_plus_platform_interface connectivity_plus_linux connectivity_plus_macos connectivity_plus_web connectivity_plus_windows]
  • contacts_service 0.6.3 [flutter collection quiver]
  • device_info_plus 4.0.0 [flutter device_info_plus_platform_interface device_info_plus_macos device_info_plus_linux device_info_plus_web device_info_plus_windows]
  • devicelocale 0.5.4 [flutter flutter_web_plugins]
  • dio 4.0.6 [http_parser path]
  • dropdown_formfield 0.1.4 [flutter]
  • email_validator 2.1.2
  • file_picker 4.6.1 [flutter flutter_web_plugins flutter_plugin_android_lifecycle plugin_platform_interface ffi path win32]
  • firebase_analytics 9.3.0 [firebase_analytics_platform_interface firebase_analytics_web firebase_core firebase_core_platform_interface flutter]
  • firebase_auth 3.6.2 [firebase_auth_platform_interface firebase_auth_web firebase_core firebase_core_platform_interface flutter meta]
  • firebase_core 1.20.0 [firebase_core_platform_interface firebase_core_web flutter meta]
  • firebase_crashlytics 2.8.6 [firebase_core firebase_core_platform_interface firebase_crashlytics_platform_interface flutter stack_trace]
  • firebase_dynamic_links 4.3.3 [firebase_core firebase_core_platform_interface firebase_dynamic_links_platform_interface flutter meta plugin_platform_interface]
  • firebase_messaging 12.0.1 [firebase_core firebase_core_platform_interface firebase_messaging_platform_interface firebase_messaging_web flutter meta]
  • firebase_storage 10.3.4 [firebase_core firebase_core_platform_interface firebase_storage_platform_interface firebase_storage_web flutter]
  • flutter 0.0.0 [characters collection material_color_utilities meta vector_math sky_engine]
  • flutter_app_badger 1.4.0 [flutter]
  • flutter_chat_bubble 2.0.0 [flutter]
  • flutter_datetime_picker 1.5.1 [flutter]
  • flutter_email_sender 5.1.0 [flutter]
  • flutter_emoji 2.4.0 [characters http]
  • flutter_image_compress 1.1.1 [flutter]
  • flutter_launcher_icons 0.10.0 [args checked_yaml cli_util image json_annotation path yaml]
  • flutter_linkify 5.0.2 [flutter linkify]
  • flutter_localizations 0.0.0 [flutter intl characters clock collection material_color_utilities meta path vector_math]
  • flutter_slidable 0.6.0 [flutter]
  • flutter_sms 2.3.3 [flutter flutter_web_plugins plugin_platform_interface url_launcher]
  • flutter_spinkit 5.1.0 [flutter]
  • flutter_svg 1.1.3 [flutter meta path_drawing vector_math xml]
  • font_awesome_flutter 10.1.0 [flutter]
  • gallery_saver 2.3.2 [flutter path_provider http path]
  • google_maps_flutter 2.1.10 [flutter flutter_plugin_android_lifecycle google_maps_flutter_platform_interface]
  • http 0.13.5 [async http_parser meta path]
  • image_cropper 2.0.3 [flutter image_cropper_platform_interface image_cropper_for_web]
  • image_picker 0.8.5+3 [flutter image_picker_android image_picker_for_web image_picker_ios image_picker_platform_interface]
  • intl 0.17.0 [clock path]
  • intl_phone_number_input 0.7.0+2 [flutter meta libphonenumber_plugin equatable collection]
  • json_annotation 4.6.0 [meta]
  • map_launcher 2.2.3 [flutter]
  • mime 1.0.2
  • modal_bottom_sheet 2.1.0 [flutter]
  • open_file 3.2.1 [flutter ffi]
  • package_info_plus 1.4.2 [flutter package_info_plus_platform_interface package_info_plus_linux package_info_plus_macos package_info_plus_windows package_info_plus_web]
  • path_provider 2.0.11 [flutter path_provider_android path_provider_ios path_provider_linux path_provider_macos path_provider_platform_interface path_provider_windows]
  • percent_indicator 4.2.2 [flutter]
  • permission_handler 10.0.0 [flutter meta permission_handler_android permission_handler_apple permission_handler_windows permission_handler_platform_interface]
  • phone_number 0.12.0+2 [flutter meta]
  • provider 6.0.3 [collection flutter nested]
  • share_plus 4.0.10 [meta mime flutter share_plus_platform_interface share_plus_linux share_plus_macos share_plus_windows share_plus_web]
  • shared_preferences 2.0.15 [flutter shared_preferences_android shared_preferences_ios shared_preferences_linux shared_preferences_macos shared_preferences_platform_interface shared_preferences_web shared_preferences_windows]
  • smooth_page_indicator 1.0.0+2 [flutter]
  • sticky_headers 0.3.0+2 [flutter]
  • url_launcher 6.1.5 [flutter url_launcher_android url_launcher_ios url_launcher_linux url_launcher_macos url_launcher_platform_interface url_launcher_web url_launcher_windows]
  • uuid 3.0.6 [crypto]
  • video_player 2.4.5 [flutter html video_player_android video_player_avfoundation video_player_platform_interface video_player_web]
  • video_thumbnail 0.5.2 [flutter]
  • whatsapp_unilink 2.0.2

dev dependencies:

  • build_runner 2.2.0 [args async analyzer build build_config build_daemon build_resolvers build_runner_core code_builder collection crypto dart_style frontend_server_client glob graphs 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_socket_channel yaml]
  • flutter_test 0.0.0 [flutter test_api path fake_async clock stack_trace vector_math async boolean_selector characters charcode collection matcher material_color_utilities meta source_span stream_channel string_scanner term_glyph]
  • json_serializable 6.3.1 [analyzer async build build_config collection json_annotation meta path pub_semver pubspec_parse source_gen source_helper]

transitive dependencies:

  • _fe_analyzer_shared 36.0.0 [meta]
  • analyzer 3.3.1 [_fe_analyzer_shared collection convert crypto glob meta package_config path pub_semver source_span watcher yaml]
  • archive 3.2.1 [crypto path]
  • args 2.3.0
  • async 2.8.2 [collection meta]
  • boolean_selector 2.1.0 [source_span string_scanner]
  • build 2.2.1 [analyzer async convert crypto glob logging meta path]
  • build_config 1.1.0 [checked_yaml json_annotation path pubspec_parse yaml]
  • build_daemon 3.1.0 [built_collection built_value http_multi_server logging path pool shelf shelf_web_socket stream_transform watcher web_socket_channel]
  • build_resolvers 2.0.6 [analyzer async build crypto graphs logging path package_config pool pub_semver stream_transform yaml]
  • build_runner_core 7.2.3 [async build build_config build_resolvers collection convert crypto glob graphs json_annotation logging meta path package_config pool timing watcher yaml]
  • built_collection 5.1.1
  • built_value 8.1.4 [built_collection collection fixnum meta]
  • cached_network_image_platform_interface 1.0.0 [flutter flutter_cache_manager]
  • cached_network_image_web 1.0.1 [flutter flutter_cache_manager cached_network_image_platform_interface]
  • characters 1.2.0
  • charcode 1.3.1
  • checked_yaml 2.0.1 [json_annotation source_span yaml]
  • cli_util 0.3.5 [meta path]
  • clock 1.1.0
  • cloud_firestore_platform_interface 5.7.0 [collection firebase_core flutter meta plugin_platform_interface]
  • cloud_firestore_web 2.8.3 [cloud_firestore_platform_interface collection firebase_core firebase_core_web flutter flutter_web_plugins js]
  • code_builder 4.1.0 [built_collection built_value collection matcher meta]
  • connectivity_plus_linux 1.3.0 [flutter connectivity_plus_platform_interface meta nm]
  • connectivity_plus_macos 1.2.4 [connectivity_plus_platform_interface flutter]
  • connectivity_plus_platform_interface 1.2.0 [flutter meta plugin_platform_interface]
  • connectivity_plus_web 1.2.3 [connectivity_plus_platform_interface flutter_web_plugins flutter]
  • connectivity_plus_windows 1.2.2 [connectivity_plus_platform_interface flutter]
  • convert 3.0.1 [typed_data]
  • cross_file 0.3.3+1 [js meta]
  • crypto 3.0.1 [collection typed_data]
  • csslib 0.17.1 [source_span]
  • dart_style 2.2.1 [analyzer args path pub_semver source_span]
  • dbus 0.7.4 [args ffi meta xml]
  • device_info_plus_linux 2.1.1 [device_info_plus_platform_interface file flutter meta]
  • device_info_plus_macos 2.2.3 [device_info_plus_platform_interface flutter]
  • device_info_plus_platform_interface 2.3.0+1 [flutter meta plugin_platform_interface]
  • device_info_plus_web 2.1.0 [device_info_plus_platform_interface flutter_web_plugins flutter]
  • device_info_plus_windows 2.1.1 [device_info_plus_platform_interface ffi flutter win32]
  • equatable 2.0.3 [collection meta]
  • fake_async 1.3.0 [clock collection]
  • ffi 1.1.2
  • file 6.1.2 [meta path]
  • firebase_analytics_platform_interface 3.3.0 [firebase_core flutter meta plugin_platform_interface]
  • firebase_analytics_web 0.4.2 [firebase_analytics_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins js]
  • firebase_auth_platform_interface 6.5.2 [collection firebase_core flutter meta plugin_platform_interface]
  • firebase_auth_web 4.2.2 [firebase_auth_platform_interface firebase_core firebase_core_web flutter flutter_web_plugins http_parser intl js meta]
  • firebase_core_platform_interface 4.5.0 [collection flutter flutter_test meta plugin_platform_interface]
  • firebase_core_web 1.7.1 [firebase_core_platform_interface flutter flutter_web_plugins js meta]
  • firebase_crashlytics_platform_interface 3.2.12 [collection firebase_core flutter meta plugin_platform_interface]
  • firebase_dynamic_links_platform_interface 0.2.3+8 [firebase_core flutter meta plugin_platform_interface]
  • firebase_messaging_platform_interface 4.1.0 [firebase_core flutter meta plugin_platform_interface]
  • firebase_messaging_web 3.1.0 [firebase_core firebase_core_web firebase_messaging_platform_interface flutter flutter_web_plugins js meta]
  • firebase_storage_platform_interface 4.1.12 [collection firebase_core flutter meta plugin_platform_interface]
  • firebase_storage_web 3.3.2 [async firebase_core firebase_core_web firebase_storage_platform_interface flutter flutter_web_plugins http js meta]
  • fixnum 1.0.0
  • flutter_blurhash 0.6.4 [flutter]
  • flutter_cache_manager 3.3.0 [clock collection file flutter http path path_provider pedantic rxdart sqflite uuid]
  • flutter_plugin_android_lifecycle 2.0.5 [flutter]
  • flutter_web_plugins 0.0.0 [flutter js characters collection material_color_utilities meta vector_math]
  • frontend_server_client 2.1.2 [async path]
  • glob 2.0.2 [async collection file path string_scanner]
  • google_maps_flutter_platform_interface 2.2.1 [collection flutter plugin_platform_interface stream_transform]
  • graphs 2.1.0 [collection]
  • html 0.15.0 [csslib source_span]
  • http_multi_server 3.2.0 [async]
  • http_parser 4.0.0 [charcode collection source_span string_scanner typed_data]
  • image 3.2.0 [archive meta xml]
  • image_cropper_for_web 0.0.4 [flutter flutter_web_plugins image_cropper_platform_interface js]
  • image_cropper_platform_interface 2.0.0 [flutter plugin_platform_interface http]
  • image_picker_android 0.8.5+1 [flutter flutter_plugin_android_lifecycle image_picker_platform_interface]
  • image_picker_for_web 2.1.8 [flutter flutter_web_plugins image_picker_platform_interface]
  • image_picker_ios 0.8.5+5 [flutter image_picker_platform_interface]
  • image_picker_platform_interface 2.5.0 [cross_file flutter http plugin_platform_interface]
  • infinite_listview 1.1.0 [flutter]
  • io 1.0.3 [meta path string_scanner]
  • js 0.6.4
  • libphonenumber 2.0.2 [flutter meta]
  • libphonenumber_platform_interface 0.3.1 [flutter plugin_platform_interface]
  • libphonenumber_plugin 0.2.3 [flutter flutter_web_plugins libphonenumber_platform_interface libphonenumber_web libphonenumber]
  • libphonenumber_web 0.2.0+1 [flutter flutter_web_plugins js libphonenumber_platform_interface]
  • linkify 4.1.0
  • logging 1.0.2
  • matcher 0.12.11 [stack_trace]
  • material_color_utilities 0.1.4
  • meta 1.7.0
  • nested 1.0.0 [flutter]
  • nm 0.5.0 [dbus]
  • numberpicker 2.1.1 [flutter infinite_listview]
  • octo_image 1.0.1 [flutter flutter_blurhash]
  • package_config 2.0.2 [path]
  • package_info_plus_linux 1.0.5 [package_info_plus_platform_interface flutter path]
  • package_info_plus_macos 1.3.0 [flutter]
  • package_info_plus_platform_interface 1.0.2 [flutter meta plugin_platform_interface]
  • package_info_plus_web 1.0.5 [flutter flutter_web_plugins http meta package_info_plus_platform_interface]
  • package_info_plus_windows 1.0.5 [package_info_plus_platform_interface ffi flutter win32]
  • path 1.8.1
  • path_drawing 1.0.1 [vector_math meta path_parsing flutter]
  • path_parsing 1.0.1 [vector_math meta]
  • path_provider_android 2.0.12 [flutter path_provider_platform_interface]
  • path_provider_ios 2.0.8 [flutter path_provider_platform_interface]
  • path_provider_linux 2.1.5 [ffi flutter path path_provider_platform_interface xdg_directories]
  • path_provider_macos 2.0.5 [flutter path_provider_platform_interface]
  • path_provider_platform_interface 2.0.3 [flutter platform plugin_platform_interface]
  • path_provider_windows 2.0.5 [ffi flutter path path_provider_platform_interface win32]
  • pedantic 1.11.1
  • permission_handler_android 10.0.0 [flutter permission_handler_platform_interface]
  • permission_handler_apple 9.0.4 [flutter permission_handler_platform_interface]
  • permission_handler_platform_interface 3.7.0 [flutter meta plugin_platform_interface]
  • permission_handler_windows 0.1.0 [flutter permission_handler_platform_interface]
  • petitparser 5.0.0 [meta]
  • platform 3.1.0
  • plugin_platform_interface 2.1.2 [meta]
  • pointycastle 3.6.1 [collection convert js]
  • pool 1.5.0 [async stack_trace]
  • process 4.2.4 [file path platform]
  • pub_semver 2.1.0 [collection meta]
  • pubspec_parse 1.2.0 [checked_yaml collection json_annotation pub_semver yaml]
  • quiver 3.0.1+1 [matcher]
  • rxdart 0.26.0
  • share_plus_linux 3.0.0 [share_plus_platform_interface file flutter meta url_launcher]
  • share_plus_macos 3.0.0 [share_plus_platform_interface flutter]
  • share_plus_platform_interface 3.0.2 [flutter meta mime plugin_platform_interface]
  • share_plus_web 3.0.0 [share_plus_platform_interface url_launcher flutter flutter_web_plugins meta]
  • share_plus_windows 3.0.0 [share_plus_platform_interface flutter meta url_launcher]
  • shared_preferences_android 2.0.11 [flutter shared_preferences_platform_interface]
  • shared_preferences_ios 2.1.0 [flutter shared_preferences_platform_interface]
  • shared_preferences_linux 2.1.0 [file flutter path path_provider_linux path_provider_platform_interface shared_preferences_platform_interface]
  • shared_preferences_macos 2.0.3 [flutter shared_preferences_platform_interface]
  • shared_preferences_platform_interface 2.0.0 [flutter]
  • shared_preferences_web 2.0.3 [flutter flutter_web_plugins shared_preferences_platform_interface]
  • shared_preferences_windows 2.1.0 [file flutter path path_provider_platform_interface path_provider_windows shared_preferences_platform_interface]
  • shelf 1.2.0 [async collection http_parser path stack_trace stream_channel]
  • shelf_web_socket 1.0.1 [shelf stream_channel web_socket_channel]
  • sky_engine 0.0.99
  • source_gen 1.2.1 [analyzer async build dart_style glob meta path source_span yaml]
  • source_helper 1.3.1 [analyzer collection source_gen]
  • source_span 1.8.2 [collection path term_glyph]
  • sqflite 2.0.2 [flutter sqflite_common path]
  • sqflite_common 2.2.0 [synchronized path meta]
  • stack_trace 1.10.0 [path]
  • stream_channel 2.1.0 [async]
  • stream_transform 2.0.0
  • string_scanner 1.1.0 [charcode source_span]
  • synchronized 3.0.0
  • term_glyph 1.2.0
  • test_api 0.4.9 [async boolean_selector collection meta source_span stack_trace stream_channel string_scanner term_glyph matcher]
  • timing 1.0.0 [json_annotation]
  • typed_data 1.3.0 [collection]
  • url_launcher_android 6.0.15 [flutter url_launcher_platform_interface]
  • url_launcher_ios 6.0.15 [flutter url_launcher_platform_interface]
  • url_launcher_linux 3.0.0 [flutter url_launcher_platform_interface]
  • url_launcher_macos 3.0.0 [flutter url_launcher_platform_interface]
  • url_launcher_platform_interface 2.1.0 [flutter plugin_platform_interface]
  • url_launcher_web 2.0.9 [flutter flutter_web_plugins url_launcher_platform_interface]
  • url_launcher_windows 3.0.0 [flutter url_launcher_platform_interface]
  • vector_math 2.1.2
  • video_player_android 2.3.6 [flutter video_player_platform_interface]
  • video_player_avfoundation 2.3.0 [flutter video_player_platform_interface]
  • video_player_platform_interface 5.1.3 [flutter plugin_platform_interface]
  • video_player_web 2.0.7 [flutter flutter_web_plugins video_player_platform_interface]
  • watcher 1.0.1 [async path]
  • web_socket_channel 2.1.0 [async crypto stream_channel]
  • win32 2.4.1 [ffi]
  • xdg_directories 0.2.0+1 [meta path process]
  • xml 6.1.0 [collection meta petitparser]
  • yaml 3.1.0 [collection source_span string_scanner]

scatboy777 avatar Aug 09 '22 17:08 scatboy777

@scatboy777 Looking at the error:

5  Runner                         0x4cce4c -[FLTFirebaseFirestorePlugin queryGet:withMethodCallResult:] + 472 (FLTFirebaseFirestorePlugin.m:472)
6  Runner                         0x4cb2dc -[FLTFirebaseFirestorePlugin handleMethodCall:result:] + 227 (FLTFirebaseFirestorePlugin.m:227)

It indicates, there's something missing / wrong while queryGet:withMethodCallResult. You'll need to check how are you querying the backend. Possibly causing an error by using FieldValue.arrayUnion() at not growable FieldValue List. So I suggest you to revisit your query snapshot and entire query and see if you are properly implementing growable list.

darshankawar avatar Aug 10 '22 09:08 darshankawar

@darshankawar Thank you very much for taking the time to help me. Much appreciated!

However, I am still struggling because I have no clue which query is causing the issue because the crashlytics reports / stack trace does not show any class from my project.

Do you think that the error is thrown when the method get() is called on a CollectionReference ? I don't understand because there is no mention of list (growable or fixed sized) during the call to the method get(). For example: QuerySnapshot snapshot = await _invitationCollection.where('event_id', isEqualTo: eventId).get();

And I transform QuerySnapshot using the following example:

List<Invitation> _snapshotToInvitationList(QuerySnapshot snapshot) {
    return snapshot.docs.map((doc) {
      Invitation invitation = Invitation.fromJson(doc.data() as Map<String, dynamic>);
      invitation.id = doc.id;
      return invitation;
    }).toList();
  }

...and this is how lists are transformed.

Invitation Invitation.fromJson(Map<String, dynamic> json) => Invitation(
....
newMedia =
          (json['new_media'] as List<dynamic>).map((e) => e as String).toList()

In the example above, the field "new_media" can be updated with FieldValue.arrayUnion()

_invitationCollection.doc(eventId).update({
          'new_media': FieldValue.arrayUnion([mediaId])
        });

Thank you in advance for your valuable help. Kind regards

scatboy777 avatar Aug 10 '22 17:08 scatboy777

Check if something like this would help. Also, a minimal code sample would be helpful to debug further.

darshankawar avatar Aug 11 '22 07:08 darshankawar

I only use arrayUnion in 2 places (see below code sample). I am not sure to understand where is the list that must be growable here ? Is it something special on the field type on the firebase collection ?

String mediaId = 'xxx';
await doc.reference.update({
            'nb_media': nbMedia,
            'new_media': offset == -1 ? FieldValue.arrayRemove([mediaId]) : FieldValue.arrayUnion([mediaId])
          });
User? user = FirebaseAuth.instance.currentUser;
    if (user == null) return;
_userDataCollection.doc(user.uid).update({
      'blocked_users': FieldValue.arrayUnion([uid])
    });

scatboy777 avatar Aug 12 '22 05:08 scatboy777

Can you please provide entire query that you are using ?

User? user = FirebaseAuth.instance.currentUser; if (user == null) return;

Here you are checking if user is null. Can you try by checking what happens if user is not null and see if you still get same error or not ?

darshankawar avatar Aug 12 '22 09:08 darshankawar

Hey @scatboy777. 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!

google-oss-bot avatar Aug 23 '22 01:08 google-oss-bot

Can you please provide entire query that you are using ?

If you are talking about the update query then the entire code entire is what I already provided:

final CollectionReference _userDataCollection = FirebaseFirestore.instance.collection('userdata');
User? user = FirebaseAuth.instance.currentUser;
if (user == null) return;
_userDataCollection.doc(user.uid).update({
      'blocked_users': FieldValue.arrayUnion([uid])
    });

User? user = FirebaseAuth.instance.currentUser; if (user == null) return;

Here you are checking if user is null. Can you try by checking what happens if user is not null and see if you still get same error or not ?

I am not sure to understand the question. If the user is not null the update query is executed without error.

Are we sure that the error message (see first post) is related to arrayUnion ? As a reminder I am not able to reproduce the problem. Only Apple is getting this error while they check the application. May be they are using robots and super fast everywhere....

scatboy777 avatar Aug 23 '22 04:08 scatboy777

Thanks for the feedback. I am keeping this issue open and labeling for team's insights on it, as there's no replicable code sample and steps.

/cc @russellwheatley

darshankawar avatar Aug 23 '22 11:08 darshankawar

In a nutshell; query is an NSNull type and isn't being picked up by this check: https://github.com/firebase/flutterfire/blob/master/packages/cloud_firestore/cloud_firestore/ios/Classes/FLTFirebaseFirestorePlugin.m#L455

This is why you're getting this error:

-[NSNull getDocumentsWithSource:completion:]: unrecognized selector sent to instance 0x1fb7f3a88

It is saying NSNull does not have the selector getDocumentsWithSource:completion:. I've created a PR to fix this bug although I believe is an issue for the firebase-ios-sdk as we shouldn't receive this type of object.

russellwheatley avatar Aug 23 '22 13:08 russellwheatley

Hello @russellwheatley,

Thank you for your feedback. If I understand correctly, once your PR is merged and delivered I will still get an error but the message will be: An error occurred while parsing query arguments, see native logs for more information. Please report this issue.

May be it will give me more details so I can report the issue for firebase-ios-sdk....or fix something on my side.

Thanks again !

scatboy777 avatar Aug 24 '22 06:08 scatboy777

@scatboy777, correct. On second inspection, it probably isn't an error with the firebase-ios-sdk. However, this error shouldn't appear in your Crashlytic's console now, and it should be clearer why the query is null.

russellwheatley avatar Aug 24 '22 07:08 russellwheatley