Closed ACFancy closed 2 years ago
I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
Hi @ACFancy, I tried reproducing the issue on Analytics Quickstart but I'm unable to get the same error. Could you provide the detailed steps or sample app to reproduce the issue?
Also, for crash 1, can you share the crashing thread's stack trace? And for crash 2, please share the optional that was unexpectedly nil if you can.
@morganchen12
Incident Identifier: 50519DA6-776B-4EF2-8247-FAC607F579F9
Hardware Model: iPad11,1
Process: XXApp [2111]
Path: /private/var/containers/Bundle/Application/E6C552AA-2ABD-4104-BB10-954FBA87CED2/XXApp.app/XXApp
Identifier: com.XXApp.app
Version: 2.0.1 (391521)
AppStoreTools: 14A305
AppVariant: 1:iPad11,1:15
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd [1]
Coalition: com.XXApp.app [791]
Date/Time: 2022-09-24 15:04:57.0914 +1000 Launch Time: 2022-09-24 15:04:55.7758 +1000 OS Version: iPhone OS 15.6.1 (19G82) Release Type: User Report Version: 104
Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
VM Region Info: 0 is not in any region. Bytes before following region: 4367892480
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
--->
__TEXT 10458c000-104590000 [ 16K] r-x/r-x SM=COW ....app/XXApp
Exception Note: EXC_CORPSE_NOTIFY
Termination Reason: SIGNAL 11 Segmentation fault: 11
Terminating Process: exc handler [2111]
Triggered by Thread: 5
Thread 0 name: Thread 0: 0 libsystem_kernel.dylib 0x00000001b82e24a0 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001b82e2ae4 mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x00000001813e7d30 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x00000001813ec1bc CFRunLoopRun + 1180 (CFRunLoop.c:3000) 4 CoreFoundation 0x00000001813ffbc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 GraphicsServices 0x000000019d56b374 GSEventRunModal + 164 (GSEvent.c:2200) 6 UIKitCore 0x0000000183d73b58 -[UIApplication _run] + 1100 (UIApplication.m:3511) 7 UIKitCore 0x0000000183af5090 UIApplicationMain + 364 (UIApplication.m:5064) 8 XXApp 0x0000000104590f18 main + 68 (MapModels.swift:61) 9 dyld 0x00000001056e5da4 start + 520 (dyldMain.cpp:879)
Thread 1: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 2: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 3 name: Thread 3: 0 libsystem_kernel.dylib 0x00000001b82e24a0 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001b82e2ae4 mach_msg + 76 (mach_msg.c:119) 2 libdispatch.dylib 0x00000001810fc678 _dispatch_mach_send_and_wait_for_reply + 540 (mach.c:815) 3 libdispatch.dylib 0x00000001810fca00 dispatch_mach_send_with_result_and_wait_for_reply + 60 (mach.c:1973) 4 libxpc.dylib 0x00000001f148cf0c xpc_connection_send_message_with_reply_sync + 240 (connection.c:974) 5 Foundation 0x0000000182c18c4c NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY + 16 (NSXPCConnection.m:223) 6 Foundation 0x0000000182c1ed1c -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2540 (NSXPCConnection.m:1649) 7 Foundation 0x0000000182c9afe4 -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:arg4:] + 160 (NSXPCConnection.m:1301) 8 Foundation 0x0000000182c625ac _NSXPCDistantObjectSimpleMessageSend4 + 92 (NSXPCDistantObject.m:292) 9 CoreServices 0x000000018184d3d0 LaunchServices::URLPropertyProvider::prepareValues(CFURL const*, FileCache, __CFString const const*, void const, long, void const*, CFError**) + 1048 (LSURLPropertyProvider.mm:404) 10 CoreServicesInternal 0x000000019c32ef1c prepareValuesForBitmap(CFURL const, __FileCache, _FilePropertyBitmap*, __CFError) + 452 (FileURL.cp:7270) 11 CoreServicesInternal 0x000000019c3291bc _FSURLCopyResourcePropertyForKeyInternal(CFURL const*, CFString const, void, void*, CFError**, unsigned char) + 244 (FileURL.cp:7465) 12 CoreFoundation 0x000000018142afd8 CFURLCopyResourcePropertyForKey + 144 (CFURL.c:6705) 13 CoreFoundation 0x00000001813f7634 -[NSURL getResourceValue:forKey:error:] + 120 (NSURL.m:107) 14 Foundation 0x0000000182c72294 pathComponentFromURL + 236 (NSError_Private.m:267) 15 Foundation 0x0000000182cc6554 -[NSError(NSErrorPrivate) _formatCocoaErrorString:parameters:applicableFormatters:count:] + 244 (NSError_Private.m:415) 16 Foundation 0x0000000182ca6f04 -[NSError(NSErrorPrivate) _cocoaErrorString:fromBundle:tableName:] + 632 (NSError_Private.m:487) 17 Foundation 0x0000000182c99c18 -[NSError(NSErrorPrivate) _cocoaErrorString:] + 88 (NSError_Private.m:504) 18 Foundation 0x0000000182cbe16c -[NSError _cocoaErrorStringWithKind:variant:] + 184 (NSError.m:154) 19 Foundation 0x0000000182be6e60 -[NSError _cocoaErrorStringWithKind:] + 404 (NSError.m:202) 20 Foundation 0x0000000182c75cdc -[NSError _retainedUserInfoCallBackForKey:] + 92 (NSError.m:212) 21 CoreFoundation 0x00000001814d5424 __CFErrorSetCallBackForDomainNoLock_block_invoke + 32 (CFError.c:737) 22 CoreFoundation 0x00000001814adddc _CFErrorCopyUserInfoKeyFromCallBack + 64 (CFError.c:231) 23 CoreFoundation 0x000000018146d634 _CFErrorFormatDebugDescriptionAux + 112 (CFError.c:395) 24 CoreFoundation 0x00000001814a1ed4 _CFErrorCreateDebugDescription + 84 (CFError.c:448) 25 Foundation 0x0000000182c64a74 -[NSError description] + 16 (NSError.m:331) 26 Foundation 0x0000000182bf5b04 _NSDescriptionWithLocaleFunc + 100 (NSString.m:2256) 27 CoreFoundation 0x00000001813eab8c __CFStringAppendFormatCore + 11120 (CFString.c:8810) 28 CoreFoundation 0x000000018140998c _CFStringCreateWithFormatAndArgumentsReturningMetadata + 176 (CFString.c:1958) 29 GoogleUtilities 0x0000000105f06c00 0x105efc000 + 44032 (GULLogger.m:169) 30 GoogleUtilities 0x0000000105f06d88 GULLogWarning + 48 (GULLogger.m:196) 31 XXApp 0x0000000104ec64fc -[APMUserDefaults synchronize] + 428 32 XXApp 0x0000000104ea1604 __47-[APMPersistedConfig scheduleSynchronizeToDisk]_block_invoke + 36 33 libdispatch.dylib 0x00000001810f0830 _dispatch_block_async_invoke2 + 148 (queue.c:560) 34 libdispatch.dylib 0x00000001810e1a30 _dispatch_client_callout + 20 (object.m:560) 35 libdispatch.dylib 0x00000001810e4eec _dispatch_continuation_pop + 500 (inline_internal.h:2622) 36 libdispatch.dylib 0x00000001810f813c _dispatch_source_invoke + 1596 (source.c:596) 37 libdispatch.dylib 0x00000001810e9000 _dispatch_lane_serial_drain + 376 (inline_internal.h:0) 38 libdispatch.dylib 0x00000001810e9c80 _dispatch_lane_invoke + 392 (queue.c:3944) 39 libdispatch.dylib 0x00000001810f4500 _dispatch_workloop_worker_thread + 648 (queue.c:6732) 40 libsystem_pthread.dylib 0x00000001f14650bc _pthread_wqthread + 288 (pthread.c:2599) 41 libsystem_pthread.dylib 0x00000001f1464e5c start_wqthread + 8
Thread 4 name: Thread 4: 0 libsystem_kernel.dylib 0x00000001b82e24a0 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001b82e2ae4 mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x00000001813e7d30 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x00000001813ec1bc CFRunLoopRun + 1180 (CFRunLoop.c:3000) 4 CoreFoundation 0x00000001813ffbc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 Foundation 0x0000000182bf2444 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373) 6 Foundation 0x0000000182c33e0c -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420) 7 UIKitCore 0x0000000183cedcc4 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167) 8 Foundation 0x0000000182c4241c NSThreadstart__ + 808 (NSThread.m:972) 9 libsystem_pthread.dylib 0x00000001f14659ac _pthread_start + 148 (pthread.c:891) 10 libsystem_pthread.dylib 0x00000001f1464e68 thread_start + 8
Thread 5 name: Thread 5 Crashed: 0 libsqlite3.dylib 0x00000001a035ef28 unixShmLock + 52 (sqlite3.c:43197) 1 libsqlite3.dylib 0x00000001a035a78c sqlite3BtreeBeginTrans + 492 (sqlite3.c:24883) 2 libsqlite3.dylib 0x00000001a037adc4 sqlite3VdbeExec + 3000 (sqlite3.c:97710) 3 libsqlite3.dylib 0x00000001a0379248 sqlite3_step + 312 (sqlite3.c:92283) 4 libsqlite3.dylib 0x00000001a033ed04 sqlite3_exec + 356 (sqlite3.c:134587) 5 CFNetwork 0x0000000181c4d4f0 -[NSURLStorageURLCacheDB execSQLStatement:onConnection:toCompletionWithRetry:writeLockHeld:] + 104 (NSURLStorageURLCacheDB.mm:2011) 6 CFNetwork 0x0000000181ce1404 _ZN12CFURLCache23CreateAndStoreCacheNodeEP16CFURLCacheNodePK20_CFCachedURLResponsePK10CFStringPK13_CFURLRequestPKvbRb_block_invoke + 260 (NSURLStorageURLCacheDB.mm:2084) 7 libdispatch.dylib 0x00000001810f0830 _dispatch_block_async_invoke2 + 148 (queue.c:560) 8 libdispatch.dylib 0x00000001810e1a30 _dispatch_client_callout + 20 (object.m:560) 9 libdispatch.dylib 0x00000001810e9124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622) 10 libdispatch.dylib 0x00000001810e9cb4 _dispatch_lane_invoke + 444 (queue.c:3944) 11 libdispatch.dylib 0x00000001810f4500 _dispatch_workloop_worker_thread + 648 (queue.c:6732) 12 libsystem_pthread.dylib 0x00000001f14650bc _pthread_wqthread + 288 (pthread.c:2599) 13 libsystem_pthread.dylib 0x00000001f1464e5c start_wqthread + 8
Thread 6: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 7: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 8: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 9: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 10: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 11: 0 libsystem_pthread.dylib 0x00000001f1464e54 start_wqthread + 0
Thread 12 name: Thread 12: 0 libsystem_kernel.dylib 0x00000001b82e24a0 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001b82e2ae4 mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x00000001813e7d30 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x00000001813ec1bc CFRunLoopRun + 1180 (CFRunLoop.c:3000) 4 CoreFoundation 0x00000001813ffbc8 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 CFNetwork 0x0000000181e7c1dc +[CFN_CoreSchedulingSetRunnable _run:] + 472 (CoreSchedulingSet.mm:1372) 6 Foundation 0x0000000182c4241c NSThreadstart + 808 (NSThread.m:972) 7 libsystem_pthread.dylib 0x00000001f14659ac _pthread_start + 148 (pthread.c:891) 8 libsystem_pthread.dylib 0x00000001f1464e68 thread_start + 8
Thread 5 crashed with ARM Thread State (64-bit): x0: 0x000000015b814ba8 x1: 0x0000000000000000 x2: 0x0000000000000001 x3: 0x000000000000000a x4: 0x000000016bb2a2d0 x5: 0x000000000000004e x6: 0x000000000000003b x7: 0x0000000000000000 x8: 0x00000001a035eef4 x9: 0xe687bf30eeaa00f1 x10: 0x0000000000000000 x11: 0x000000016bb2a134 x12: 0x0000000000000000 x13: 0x0000000159e0fb48 x14: 0x0000000000000000 x15: 0x0000000000000000 x16: 0x00000001a03b9bcc x17: 0x00000001a03b9890 x18: 0x0000000000000000 x19: 0x0000000000000001 x20: 0x0000000000000000 x21: 0x000000015b814ba8 x22: 0x000000000000000a x23: 0x0000000283c3d860 x24: 0x0000000000000000 x25: 0x000000015c1f8358 x26: 0x0000000000000000 x27: 0x0000000000000000 x28: 0xffffffffffffffff fp: 0x000000016bb29f00 lr: 0xc732a181a035a78c sp: 0x000000016bb29eb0 pc: 0x00000001a035ef28 cpsr: 0x60000000 esr: 0x92000006 (Data Abort) byte read Translation fault
Binary Images:
0x10458c000 - 0x105087fff XXApp arm64 <8b2a494c522d3b95b6b8bb10f0ca8a75> /private/var/containers/Bundle/Application/E6C552AA-2ABD-4104-BB10-954FBA87CED2/XXApp.app/XXApp
0x1056cc000 - 0x105723fff dyld arm64e <66e1fb2668f8379ba052eb8b8291b5e1> /usr/lib/dyld
0x105efc000 - 0x105f17fff GoogleUtilities arm64
EOF
- crash 2, stack trace
Incident Identifier: 6597A776-A7DE-40F1-B7F6-7DA3C9861394 Hardware Model: iPad13,1 Process: XXApp [2872] Path: /private/var/containers/Bundle/Application/BD1646AE-02BE-45BD-8ABD-B0CAEFEFC9AF/XXApp.app/XXApp Identifier: com.XXApp.app Version: 1.7.8 (365739) AppStoreTools: 13F15 AppVariant: 1:iPad13,1:15 Code Type: ARM-64 (Native) Role: Non UI Parent Process: launchd [1] Coalition: com.XXApp.app [1384]
Date/Time: 2022-06-18 01:59:26.4454 +0300 Launch Time: 2022-06-17 22:41:57.0906 +0300 OS Version: iPhone OS 15.2 (19C56) Release Type: User Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP) Exception Codes: 0x0000000000000001, 0x0000000104488078 Exception Note: EXC_CORPSE_NOTIFY Termination Reason: SIGNAL 5 Trace/BPT trap: 5 Terminating Process: exc handler [2872]
Triggered by Thread: 0
Thread 0 name:
Thread 0 Crashed:
0 XXApp 0x0000000104488078 Swift runtime failure: Unexpectedly found nil while implicitly unwrapping an Optional value + 0 (AppDelegate.swift:0)
1 XXApp 0x0000000104488078 specialized AppDelegate.applicationWillTerminate(:) + 436 (AppDelegate.swift:147)
2 XXApp 0x0000000104486a28 applicationWillTerminate + 4 (
Thread 1: 0 libsystem_pthread.dylib 0x00000001f31c2e8c start_wqthread + 0
Thread 2: 0 libsystem_pthread.dylib 0x00000001f31c2e8c start_wqthread + 0
Thread 3: 0 libsystem_pthread.dylib 0x00000001f31c2e8c start_wqthread + 0
Thread 4 name: Thread 4: 0 libsystem_kernel.dylib 0x00000001ba294504 mach_msg_trap + 8 1 libsystem_kernel.dylib 0x00000001ba294b9c mach_msg + 76 (mach_msg.c:119) 2 CoreFoundation 0x00000001838d4738 CFRunLoopServiceMachPort + 372 (CFRunLoop.c:2646) 3 CoreFoundation 0x00000001838d8a2c CFRunLoopRun + 1212 (CFRunLoop.c:3000) 4 CoreFoundation 0x00000001838ec468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268) 5 Foundation 0x0000000185108c94 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 236 (NSRunLoop.m:373) 6 Foundation 0x0000000185149dc8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 92 (NSRunLoop.m:420) 7 UIKitCore 0x0000000186207230 -[UIEventFetcher threadMain] + 524 (UIEventFetcher.m:1167) 8 Foundation 0x000000018515840c NSThreadstart__ + 808 (NSThread.m:972) 9 libsystem_pthread.dylib 0x00000001f31c39a4 _pthread_start + 148 (pthread.c:891) 10 libsystem_pthread.dylib 0x00000001f31c2ea0 thread_start + 8
Thread 5 name: Thread 5: 0 XXApp 0x000000010497bb90 __copy_helper_block_e8_32r + 0 (FIRCLSMachO.m:0) 1 libsystem_blocks.dylib 0x00000001f313f6bc _Block_copy + 240 (runtime.cpp:170) 2 XXApp 0x0000000104acbcd4 -[GDTCCTUploader uploadTarget:withConditions:] + 136 (GDTCCTUploader.m:214) 3 XXApp 0x0000000104ad9618 __52-[GDTCORUploadCoordinator uploadTargets:conditions:]_block_invoke + 292 (GDTCORUploadCoordinator.m:110) 4 libdispatch.dylib 0x00000001835d6924 _dispatch_call_block_and_release + 32 (init.c:1517) 5 libdispatch.dylib 0x00000001835d8670 _dispatch_client_callout + 20 (object.m:560) 6 libdispatch.dylib 0x00000001835dfdf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601) 7 libdispatch.dylib 0x00000001835e0968 _dispatch_lane_invoke + 392 (queue.c:3937) 8 libdispatch.dylib 0x00000001835eb1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727) 9 libsystem_pthread.dylib 0x00000001f31c30f4 _pthread_wqthread + 288 (pthread.c:2599) 10 libsystem_pthread.dylib 0x00000001f31c2e94 start_wqthread + 8
Thread 6: 0 libsystem_pthread.dylib 0x00000001f31c2e8c start_wqthread + 0
Thread 7: 0 libsystem_pthread.dylib 0x00000001f31c2e8c start_wqthread + 0
Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000105e05420 x1: 0x00000001ce7a261d x2: 0x0000000105e05420 x3: 0x0000000000000001 x4: 0x00000000044869f8 x5: 0x0000000000000000 x6: 0x000000028296b700 x7: 0x0000000000000b40 x8: 0x0000000104e98000 x9: 0x0100000000000000 x10: 0x06000001dd108637 x11: 0x07000001dd108637 x12: 0x0000000000000011 x13: 0x0000000105d07c80 x14: 0x0000000100000000 x15: 0x0000000104e6b880 x16: 0x000000019c18f3e0 x17: 0x0c11fa01044869f8 x18: 0x0000000000000000 x19: 0x0000000280476cd0 x20: 0x0000000000000000 x21: 0x0000000280476cd0 x22: 0x0000000000000018 x23: 0x0000000105e054c8 x24: 0x000000002b87008c x25: 0x0000000000000001 x26: 0x00000001dd111000 x27: 0x0000000000000010 x28: 0x0000000000000000 fp: 0x000000016bd0a490 lr: 0x0000000104486a28 sp: 0x000000016bd0a440 pc: 0x0000000104488078 cpsr: 0x60001000 esr: 0xf2000001 (Breakpoint) brk 1
Binary Images:
0x1040f4000 - 0x104cd7fff XXApp arm64 <1283aaf41c7733fd9faf0682414631a6> /private/var/containers/Bundle/Application/BD1646AE-02BE-45BD-8ABD-B0CAEFEFC9AF/XXApp.app/XXApp
0x105380000 - 0x1053d7fff dyld arm64e
EOF
Thanks. The crashing threads are these:
Crash 1:
Thread 5 name:
Thread 5 Crashed:
0 libsqlite3.dylib 0x00000001a035ef28 unixShmLock + 52 (sqlite3.c:43197)
1 libsqlite3.dylib 0x00000001a035a78c sqlite3BtreeBeginTrans + 492 (sqlite3.c:24883)
2 libsqlite3.dylib 0x00000001a037adc4 sqlite3VdbeExec + 3000 (sqlite3.c:97710)
3 libsqlite3.dylib 0x00000001a0379248 sqlite3_step + 312 (sqlite3.c:92283)
4 libsqlite3.dylib 0x00000001a033ed04 sqlite3_exec + 356 (sqlite3.c:134587)
5 CFNetwork 0x0000000181c4d4f0 -[NSURLStorageURLCacheDB execSQLStatement:onConnection:toCompletionWithRetry:writeLockHeld:] + 104 (NSURLStorageURLCacheDB.mm:2011)
6 CFNetwork 0x0000000181ce1404 ___ZN12__CFURLCache23CreateAndStoreCacheNodeEP16__CFURLCacheNodePK20_CFCachedURLResponsePK10__CFStringPK13_CFURLRequestPKvbRb_block_invoke + 260 (NSURLStorageURLCacheDB.mm:2084)
7 libdispatch.dylib 0x00000001810f0830 _dispatch_block_async_invoke2 + 148 (queue.c:560)
8 libdispatch.dylib 0x00000001810e1a30 _dispatch_client_callout + 20 (object.m:560)
9 libdispatch.dylib 0x00000001810e9124 _dispatch_lane_serial_drain + 668 (inline_internal.h:2622)
10 libdispatch.dylib 0x00000001810e9cb4 _dispatch_lane_invoke + 444 (queue.c:3944)
11 libdispatch.dylib 0x00000001810f4500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
12 libsystem_pthread.dylib 0x00000001f14650bc _pthread_wqthread + 288 (pthread.c:2599)
13 libsystem_pthread.dylib 0x00000001f1464e5c start_wqthread + 8
Crash 2:
Thread 0 name:
Thread 0 Crashed:
0 XXApp 0x0000000104488078 Swift runtime failure: Unexpectedly found nil while implicitly unwrapping an Optional value + 0 (AppDelegate.swift:0)
1 XXApp 0x0000000104488078 specialized AppDelegate.applicationWillTerminate(_:) + 436 (AppDelegate.swift:147)
2 XXApp 0x0000000104486a28 applicationWillTerminate + 4 (<compiler-generated>:0)
3 XXApp 0x0000000104486a28 @objc AppDelegate.applicationWillTerminate(_:) + 48
4 UIKitCore 0x0000000186cc861c -[UIApplication _terminateWithStatus:] + 244 (UIApplication.m:6917)
5 UIKitCore 0x00000001863b0b38 -[_UISceneLifecycleMultiplexer _evalTransitionToSettings:fromSettings:forceExit:withTransitionStore:] + 128 (_UISceneLifecycleMultiplexer.m:808)
6 UIKitCore 0x00000001865a5a80 -[_UISceneLifecycleMultiplexer forceExitWithTransitionContext:scene:] + 224 (_UISceneLifecycleMultiplexer.m:482)
7 UIKitCore 0x0000000186cc529c -[UIApplication workspaceShouldExit:withTransitionContext:] + 212 (UIApplication.m:3828)
8 FrontBoardServices 0x00000001955e4780 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke_2 + 80 (FBSWorkspaceScenesClient.m:331)
9 FrontBoardServices 0x000000019559f06c -[FBSWorkspace _calloutQueue_executeCalloutFromSource:withBlock:] + 240 (FBSWorkspace.m:352)
10 FrontBoardServices 0x00000001955e4718 __63-[FBSWorkspaceScenesClient willTerminateWithTransitionContext:]_block_invoke + 132 (FBSWorkspaceScenesClient.m:328)
11 libdispatch.dylib 0x00000001835d8670 _dispatch_client_callout + 20 (object.m:560)
12 libdispatch.dylib 0x00000001835dc128 _dispatch_block_invoke_direct + 264 (queue.c:489)
13 FrontBoardServices 0x00000001955a09c4 __FBSSERIALQUEUE_IS_CALLING_OUT_TO_A_BLOCK__ + 48 (FBSSerialQueue.m:157)
14 FrontBoardServices 0x000000019559fd8c -[FBSSerialQueue _targetQueue_performNextIfPossible] + 220 (FBSSerialQueue.m:181)
15 FrontBoardServices 0x00000001955a4414 -[FBSSerialQueue _performNextFromRunLoopSource] + 28 (FBSSerialQueue.m:194)
16 CoreFoundation 0x00000001839880d0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 (CFRunLoop.c:1972)
17 CoreFoundation 0x0000000183998d90 __CFRunLoopDoSource0 + 208 (CFRunLoop.c:2016)
18 CoreFoundation 0x00000001838d3104 __CFRunLoopDoSources0 + 376 (CFRunLoop.c:2061)
19 CoreFoundation 0x00000001838d88a4 __CFRunLoopRun + 820 (CFRunLoop.c:2951)
20 CoreFoundation 0x00000001838ec468 CFRunLoopRunSpecific + 600 (CFRunLoop.c:3268)
21 GraphicsServices 0x000000019f47838c GSEventRunModal + 164 (GSEvent.c:2200)
22 UIKitCore 0x000000018628e088 -[UIApplication _run] + 1100 (UIApplication.m:3493)
23 UIKitCore 0x000000018600c958 UIApplicationMain + 2092 (UIApplication.m:5046)
24 XXApp 0x00000001040f8ef4 main + 68 (MapModels.swift:61)
25 dyld 0x0000000105399aa4 start + 520 (dyldMain.cpp:879)
Neither of these have any Firebase symbols in them, so they're most likely not caused by Firebase. The first is a very obscure sql crash; unfortunately I don't have any insight into this crash. The second is a force-unwrap failure in your applicationWillTerminate(_:)
implementation.
Closing since these aren't Firebase errors.
@morganchen12 have some ideas for thread 3 in crash 1 and thread 5 in crash 2?
Thread 3 name:
Thread 3:
0 libsystem_kernel.dylib 0x00000001b82e24a0 mach_msg_trap + 8
1 libsystem_kernel.dylib 0x00000001b82e2ae4 mach_msg + 76 (mach_msg.c:119)
2 libdispatch.dylib 0x00000001810fc678 _dispatch_mach_send_and_wait_for_reply + 540 (mach.c:815)
3 libdispatch.dylib 0x00000001810fca00 dispatch_mach_send_with_result_and_wait_for_reply + 60 (mach.c:1973)
4 libxpc.dylib 0x00000001f148cf0c xpc_connection_send_message_with_reply_sync + 240 (connection.c:974)
5 Foundation 0x0000000182c18c4c __NSXPCCONNECTION_IS_WAITING_FOR_A_SYNCHRONOUS_REPLY__ + 16 (NSXPCConnection.m:223)
6 Foundation 0x0000000182c1ed1c -[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:] + 2540 (NSXPCConnection.m:1649)
7 Foundation 0x0000000182c9afe4 -[NSXPCConnection _sendSelector:withProxy:arg1:arg2:arg3:arg4:] + 160 (NSXPCConnection.m:1301)
8 Foundation 0x0000000182c625ac _NSXPCDistantObjectSimpleMessageSend4 + 92 (NSXPCDistantObject.m:292)
9 CoreServices 0x000000018184d3d0 LaunchServices::URLPropertyProvider::prepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 1048 (LSURLPropertyProvider.mm:404)
10 CoreServicesInternal 0x000000019c32ef1c prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 452 (FileURL.cp:7270)
11 CoreServicesInternal 0x000000019c3291bc _FSURLCopyResourcePropertyForKeyInternal(__CFURL const*, __CFString const*, void*, void*, __CFError**, unsigned char) + 244 (FileURL.cp:7465)
12 CoreFoundation 0x000000018142afd8 CFURLCopyResourcePropertyForKey + 144 (CFURL.c:6705)
13 CoreFoundation 0x00000001813f7634 -[NSURL getResourceValue:forKey:error:] + 120 (NSURL.m:107)
14 Foundation 0x0000000182c72294 pathComponentFromURL + 236 (NSError_Private.m:267)
15 Foundation 0x0000000182cc6554 -[NSError(NSErrorPrivate) _formatCocoaErrorString:parameters:applicableFormatters:count:] + 244 (NSError_Private.m:415)
16 Foundation 0x0000000182ca6f04 -[NSError(NSErrorPrivate) _cocoaErrorString:fromBundle:tableName:] + 632 (NSError_Private.m:487)
17 Foundation 0x0000000182c99c18 -[NSError(NSErrorPrivate) _cocoaErrorString:] + 88 (NSError_Private.m:504)
18 Foundation 0x0000000182cbe16c -[NSError _cocoaErrorStringWithKind:variant:] + 184 (NSError.m:154)
19 Foundation 0x0000000182be6e60 -[NSError _cocoaErrorStringWithKind:] + 404 (NSError.m:202)
20 Foundation 0x0000000182c75cdc -[NSError _retainedUserInfoCallBackForKey:] + 92 (NSError.m:212)
21 CoreFoundation 0x00000001814d5424 ____CFErrorSetCallBackForDomainNoLock_block_invoke + 32 (CFError.c:737)
22 CoreFoundation 0x00000001814adddc _CFErrorCopyUserInfoKeyFromCallBack + 64 (CFError.c:231)
23 CoreFoundation 0x000000018146d634 _CFErrorFormatDebugDescriptionAux + 112 (CFError.c:395)
24 CoreFoundation 0x00000001814a1ed4 _CFErrorCreateDebugDescription + 84 (CFError.c:448)
25 Foundation 0x0000000182c64a74 -[NSError description] + 16 (NSError.m:331)
26 Foundation 0x0000000182bf5b04 _NSDescriptionWithLocaleFunc + 100 (NSString.m:2256)
27 CoreFoundation 0x00000001813eab8c __CFStringAppendFormatCore + 11120 (CFString.c:8810)
28 CoreFoundation 0x000000018140998c _CFStringCreateWithFormatAndArgumentsReturningMetadata + 176 (CFString.c:1958)
29 GoogleUtilities 0x0000000105f06c00 0x105efc000 + 44032 (GULLogger.m:169)
30 GoogleUtilities 0x0000000105f06d88 GULLogWarning + 48 (GULLogger.m:196)
31 XXApp 0x0000000104ec64fc -[APMUserDefaults synchronize] + 428
32 XXApp 0x0000000104ea1604 __47-[APMPersistedConfig scheduleSynchronizeToDisk]_block_invoke + 36
33 libdispatch.dylib 0x00000001810f0830 _dispatch_block_async_invoke2 + 148 (queue.c:560)
34 libdispatch.dylib 0x00000001810e1a30 _dispatch_client_callout + 20 (object.m:560)
35 libdispatch.dylib 0x00000001810e4eec _dispatch_continuation_pop + 500 (inline_internal.h:2622)
36 libdispatch.dylib 0x00000001810f813c _dispatch_source_invoke + 1596 (source.c:596)
37 libdispatch.dylib 0x00000001810e9000 _dispatch_lane_serial_drain + 376 (inline_internal.h:0)
38 libdispatch.dylib 0x00000001810e9c80 _dispatch_lane_invoke + 392 (queue.c:3944)
39 libdispatch.dylib 0x00000001810f4500 _dispatch_workloop_worker_thread + 648 (queue.c:6732)
40 libsystem_pthread.dylib 0x00000001f14650bc _pthread_wqthread + 288 (pthread.c:2599)
41 libsystem_pthread.dylib 0x00000001f1464e5c start_wqthread + 8
Thread 5 name:
Thread 5:
0 XXApp 0x000000010497bb90 __copy_helper_block_e8_32r + 0 (FIRCLSMachO.m:0)
1 libsystem_blocks.dylib 0x00000001f313f6bc _Block_copy + 240 (runtime.cpp:170)
2 XXApp 0x0000000104acbcd4 -[GDTCCTUploader uploadTarget:withConditions:] + 136 (GDTCCTUploader.m:214)
3 XXApp 0x0000000104ad9618 __52-[GDTCORUploadCoordinator uploadTargets:conditions:]_block_invoke + 292 (GDTCORUploadCoordinator.m:110)
4 libdispatch.dylib 0x00000001835d6924 _dispatch_call_block_and_release + 32 (init.c:1517)
5 libdispatch.dylib 0x00000001835d8670 _dispatch_client_callout + 20 (object.m:560)
6 libdispatch.dylib 0x00000001835dfdf4 _dispatch_lane_serial_drain + 672 (inline_internal.h:2601)
7 libdispatch.dylib 0x00000001835e0968 _dispatch_lane_invoke + 392 (queue.c:3937)
8 libdispatch.dylib 0x00000001835eb1b8 _dispatch_workloop_worker_thread + 656 (queue.c:6727)
9 libsystem_pthread.dylib 0x00000001f31c30f4 _pthread_wqthread + 288 (pthread.c:2599)
10 libsystem_pthread.dylib 0x00000001f31c2e94 start_wqthread + 8
Yeah, I can explain my reasoning for why I don't think Firebase is causing these crashes. In the first one:
_dispatch_mach_send_and_wait_for_reply
This symbol means the Analytics thread isn't doing anything, it's waiting for a response from another process. It's unlikely it would crash while just waiting.
The second one:
_Block_copy
This is also a very routine method and crashing in it would usually indicate some kind of memory corruption (the block being copied was invalid somehow), but since blocks are only ever declared as literals, this also seems unlikely unless something else is corrupting your blocks.
@morganchen12
Description
Reproducing the issue
No response
Firebase SDK Version
9.5.0
Xcode Version
13.3
Installation Method
CocoaPods
Firebase Product(s)
Analytics, Authentication, Crashlytics, Database, DynamicLinks, Performance, Remote Config
Targeted Platforms
iOS
Relevant Log Output
No response
If using Swift Package Manager, the project's Package.resolved
Expand
Package.resolved
snippet```json Replace this line with the contents of your Package.resolved. ```
If using CocoaPods, the project's Podfile.lock
PODS:
DEPENDENCIES:
SPEC REPOS: https://github.com/CocoaPods/Specs.git:
SPEC CHECKSUMS: AWSCore: f859f6955a8e52dcb3e79fac95fef058639d1049 AWSS3: 3389c12e5b0cbfdfb6894c5921c094f58ec84df0 Firebase: 800f16f07af493d98d017446a315c27af0552f41 FirebaseABTesting: 8122e553ba229b557acc4659f3c3615538fd9448 FirebaseAnalytics: 1b60984a408320dda637306f3f733699ef8473d7 FirebaseAuth: 741918f1fa62ed23246a509279f91d42d79a713f FirebaseCore: 25c0400b670fd1e2f2104349cd3b5dcce8d9418f FirebaseCoreDiagnostics: 17cbf4e72b1dbd64bfdc33d4b1f07bce4f16f1d8 FirebaseCoreInternal: 50a8e39cae8abf72d5145d07ea34c3244f70862b FirebaseCrashlytics: d20fa38bb8c88cb0f1c9211286bc23ab58c1b464 FirebaseDatabase: 0e2d3b1c935bb5ae704afc2f5c0adda365102312 FirebaseDynamicLinks: e2805928aefebd742288161f99469ab84d4aa8c8 FirebaseInstallations: 41f811b530c41dd90973d0174381cdb3fcb5e839 FirebasePerformance: 5ec395fd74f35bfa68e969703922a46a8f143053 FirebaseRemoteConfig: 97ccd1b58f26d756f86d071330f00856e51022a2 GoogleAppMeasurement: 6ee231473fbd75c11221dfce489894334024eead GoogleDataTransport: 1c8145da7117bd68bbbed00cf304edb6a24de00f GoogleUtilities: e0913149f6b0625b553d70dae12b49fc62914fd1 GTMSessionFetcher: ffbb25ec00ebcb5201adab0a56d808f6f1902d9f leveldb-library: 50c7b45cbd7bf543c81a468fe557a16ae3db8729 nanopb: b552cce312b6c8484180ef47159bc0f65a1f0431 PromisesObjC: ab77feca74fa2823e7af4249b8326368e61014cb
PODFILE CHECKSUM: 329250ed08f1df2a9cbc9b4b797b9fdf8b5b73ee
COCOAPODS: 1.10.2