firebase / firebase-ios-sdk

Firebase SDK for Apple App Development
https://firebase.google.com
Apache License 2.0
5.58k stars 1.46k forks source link

App crashing on launch [APMIdentity identifierForVendor] #12151

Closed krakhotcko closed 9 months ago

krakhotcko commented 10 months ago

Description

We are receiving many complaints related to our live application crashing on the launch.

Reproducing the issue

It's crashing randomly after hanging few seconds on the splash screen.

Firebase SDK Version

10.11.0

Xcode Version

14.1

Installation Method

CocoaPods

Firebase Product(s)

Analytics, Crashlytics

Targeted Platforms

iOS

Relevant Log Output

# Crashlytics - Stack trace
# Platform: apple
# Version: 2.17.0 (21700091)
# Issue: e4369e761f1088d66808aec045d66c70
# Session: e2f9c8eef6204086b0997a56bff4b8bb_DNE_0_v2
# Date: Wed Nov 29 2023 11:14:42 GMT+0100 (Central European Standard Time)

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.google.fira.worker
0  libsystem_kernel.dylib         0x1c58 __ulock_wait + 8
1  libdispatch.dylib              0x4cf0 _dlock_wait + 56
2  libdispatch.dylib              0x4aa4 _dispatch_thread_event_wait_slow + 56
3  libdispatch.dylib              0x139a0 __DISPATCH_WAIT_FOR_QUEUE__ + 368
4  libdispatch.dylib              0x1354c _dispatch_sync_f_slow + 148
5  Blockudoku                     0xa5e6c4 -[APMIdentity identifierForVendor] + 7354212
6  Blockudoku                     0xa72e60 APMUpdateConsentSignalsAndIdentifiers + 7438080
7  Blockudoku                     0xa77c50 -[APMMeasurement(Event) createRawEventMetadataWithUserAttributes:] + 7458032
8  Blockudoku                     0xa79794 -[APMMeasurement(Event) writeEvent:isPublicEvent:isRealtime:] + 7465012
9  Blockudoku                     0xa77708 __57-[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:]_block_invoke + 7456680
10 Blockudoku                     0xabfbb8 -[APMSqliteStore performTransactionWithError:block:] + 7752792
11 Blockudoku                     0xa41604 -[APMDatabase performTransaction:] + 7235236
12 Blockudoku                     0xa774f4 -[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:] + 7456148
13 Blockudoku                     0xa77208 -[APMMeasurement(Event) writeEventOnWorkerQueue:] + 7455400
14 Blockudoku                     0xa76ca4 -[APMMeasurement(Event) handleEventOnWorkerQueue:] + 7454020
15 Blockudoku                     0xa76a98 -[APMMeasurement(Event) handleInternalEventOnWorkerQueue:] + 7453496
16 Blockudoku                     0xa69740 -[APMMeasurement reportSessionStartOnWorkerQueueWithTimestamp:appInBackground:] + 7399392
17 Blockudoku                     0xa69bcc -[APMMeasurement reportFirstOpenOnWorkerQueue] + 7400556
18 Blockudoku                     0xa69130 __47-[APMMeasurement startMeasurementOnWorkerQueue]_block_invoke + 7397840
19 Blockudoku                     0xa68af0 -[APMMeasurement startMeasurementOnWorkerQueue] + 7396240
20 Blockudoku                     0xa683bc -[APMMeasurement setEnabledOnWorkerQueue:] + 7394396
21 Blockudoku                     0xa682d4 __29-[APMMeasurement setEnabled:]_block_invoke + 7394164
22 Blockudoku                     0xab6de4 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 7716484
23 libdispatch.dylib              0x26a8 _dispatch_call_block_and_release + 32
24 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
25 libdispatch.dylib              0xb894 _dispatch_lane_serial_drain + 748
26 libdispatch.dylib              0xc3c4 _dispatch_lane_invoke + 380
27 libdispatch.dylib              0x17004 _dispatch_root_queue_drain_deferred_wlh + 288
28 libdispatch.dylib              0x16878 _dispatch_workloop_worker_thread + 404
29 libsystem_pthread.dylib        0x1964 _pthread_wqthread + 288
30 libsystem_pthread.dylib        0x1a04 start_wqthread + 8

trust
0  libsystem_kernel.dylib         0x11d8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf70 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe88 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xcc8 mach_msg + 24
4  libdispatch.dylib              0x1ef00 _dispatch_mach_send_and_wait_for_reply + 540
5  libdispatch.dylib              0x1f2a0 dispatch_mach_send_with_result_and_wait_for_reply + 60
6  libxpc.dylib                   0x106d4 xpc_connection_send_message_with_reply_sync + 264
7  Security                       0x13018 securityd_message_with_reply_sync + 124
8  Security                       0x12cc0 securityd_send_sync_and_do + 88
9  Security                       0x1c8b4 __SecTrustEvaluateIfNecessary_block_invoke_3 + 512
10 Security                       0x10c10 SecOSStatusWith + 56
11 Security                       0x18d88 __SecTrustEvaluateIfNecessary_block_invoke_2 + 116
12 libsystem_trace.dylib          0x9f50 _os_activity_initiate_impl + 64
13 Security                       0x1d434 __SecTrustEvaluateIfNecessary_block_invoke + 292
14 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
15 libdispatch.dylib              0x136b4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
16 Security                       0x19afc SecTrustEvaluateIfNecessary + 236
17 Security                       0x106674 SecTrustCopyCertificateChain + 60
18 CFNetwork                      0x153f74 _CFStreamErrorFromCFError + 487704
19 CFNetwork                      0x150410 _CFStreamErrorFromCFError + 472500
20 CFNetwork                      0x15b0f4 _CFStreamErrorFromCFError + 516760
21 CFNetwork                      0x159ec4 _CFStreamErrorFromCFError + 512104
22 CFNetwork                      0xf5798 _CFStreamErrorFromCFError + 100668
23 CFNetwork                      0xf6010 _CFStreamErrorFromCFError + 102836
24 CFNetwork                      0x50ab4 CFURLCredentialStorageSetDefaultCredentialForProtectionSpace + 7984
25 CFNetwork                      0x50384 CFURLCredentialStorageSetDefaultCredentialForProtectionSpace + 6144
26 CFNetwork                      0x506c8 CFURLCredentialStorageSetDefaultCredentialForProtectionSpace + 6980
27 CFNetwork                      0xf55d8 _CFStreamErrorFromCFError + 100220
28 CFNetwork                      0xf60cc _CFStreamErrorFromCFError + 103024
29 CFNetwork                      0x50ab4 CFURLCredentialStorageSetDefaultCredentialForProtectionSpace + 7984
30 CFNetwork                      0x50384 CFURLCredentialStorageSetDefaultCredentialForProtectionSpace + 6144
31 CFNetwork                      0x505fc CFURLCredentialStorageSetDefaultCredentialForProtectionSpace + 6776
32 CFNetwork                      0xa8e9c CFURLDownloadStart + 66796
33 libdispatch.dylib              0x13250 _dispatch_block_async_invoke2 + 148
34 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
35 libdispatch.dylib              0xb894 _dispatch_lane_serial_drain + 748
36 libdispatch.dylib              0xc3f8 _dispatch_lane_invoke + 432
37 libdispatch.dylib              0xd6a8 _dispatch_workloop_invoke + 1756
38 libdispatch.dylib              0x17004 _dispatch_root_queue_drain_deferred_wlh + 288
39 libdispatch.dylib              0x16878 _dispatch_workloop_worker_thread + 404
40 libsystem_pthread.dylib        0x1964 _pthread_wqthread + 288
41 libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.apple.NSURLConnectionLoader
0  libsystem_kernel.dylib         0x11d8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf70 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe88 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xcc8 mach_msg + 24
4  CoreFoundation                 0x35d0c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33c04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33668 CFRunLoopRunSpecific + 608
7  CFNetwork                      0x258780 _CFURLStorageSessionCopyIdentifier + 69132
8  Foundation                     0xb1184 __NSThread__start__ + 732
9  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
10 libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0  FirebaseCrashlytics            0x20350 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1  FirebaseCrashlytics            0x20730 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2  FirebaseCrashlytics            0x1783c FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3  FirebaseCrashlytics            0x1a098 FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521)
4  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
5  libsystem_pthread.dylib        0x1a10 thread_start + 8

Thread
0  libsystem_kernel.dylib         0x9730 __workq_kernreturn + 8
1  libsystem_pthread.dylib        0x19b0 _pthread_wqthread + 364
2  libsystem_pthread.dylib        0x1a04 start_wqthread + 8

AssetGarbageCollectorHelper
0  libsystem_kernel.dylib         0x1154 semaphore_wait_trap + 8
1  libdispatch.dylib              0x489c _dispatch_sema4_wait + 28
2  libdispatch.dylib              0x4f4c _dispatch_semaphore_wait_slow + 132
3  UnityFramework                 0x941f48 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 37 (Baselib_SystemSemaphore_DarwinApi.inl.h:37)
4  UnityFramework                 0x2cc31c AGCThread::Run() + 47 (Baselib_Semaphore_SemaphoreBased.inl.h:47)
5  UnityFramework                 0x2d2154 AGCThread::RunThread(void*) + 232 (GarbageCollectSharedAssets.cpp:232)
6  UnityFramework                 0x3614ec Thread::RunThreadWrapper(void*) + 82 (Thread.cpp:82)
7  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
8  libsystem_pthread.dylib        0x1a10 thread_start + 8

AssetGarbageCollectorHelper
0  libsystem_kernel.dylib         0x1154 semaphore_wait_trap + 8
1  libdispatch.dylib              0x489c _dispatch_sema4_wait + 28
2  libdispatch.dylib              0x4f4c _dispatch_semaphore_wait_slow + 132
3  UnityFramework                 0x941f48 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 37 (Baselib_SystemSemaphore_DarwinApi.inl.h:37)
4  UnityFramework                 0x2cc31c AGCThread::Run() + 47 (Baselib_Semaphore_SemaphoreBased.inl.h:47)
5  UnityFramework                 0x2d2154 AGCThread::RunThread(void*) + 232 (GarbageCollectSharedAssets.cpp:232)
6  UnityFramework                 0x3614ec Thread::RunThreadWrapper(void*) + 82 (Thread.cpp:82)
7  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
8  libsystem_pthread.dylib        0x1a10 thread_start + 8

AssetGarbageCollectorHelper
0  libsystem_kernel.dylib         0x1154 semaphore_wait_trap + 8
1  libdispatch.dylib              0x489c _dispatch_sema4_wait + 28
2  libdispatch.dylib              0x4f4c _dispatch_semaphore_wait_slow + 132
3  UnityFramework                 0x941f48 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 37 (Baselib_SystemSemaphore_DarwinApi.inl.h:37)
4  UnityFramework                 0x2cc31c AGCThread::Run() + 47 (Baselib_Semaphore_SemaphoreBased.inl.h:47)
5  UnityFramework                 0x2d2154 AGCThread::RunThread(void*) + 232 (GarbageCollectSharedAssets.cpp:232)
6  UnityFramework                 0x3614ec Thread::RunThreadWrapper(void*) + 82 (Thread.cpp:82)
7  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
8  libsystem_pthread.dylib        0x1a10 thread_start + 8

AssetGarbageCollectorHelper
0  libsystem_kernel.dylib         0x1154 semaphore_wait_trap + 8
1  libdispatch.dylib              0x489c _dispatch_sema4_wait + 28
2  libdispatch.dylib              0x4f4c _dispatch_semaphore_wait_slow + 132
3  UnityFramework                 0x941f48 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 37 (Baselib_SystemSemaphore_DarwinApi.inl.h:37)
4  UnityFramework                 0x2cc31c AGCThread::Run() + 47 (Baselib_Semaphore_SemaphoreBased.inl.h:47)
5  UnityFramework                 0x2d2154 AGCThread::RunThread(void*) + 232 (GarbageCollectSharedAssets.cpp:232)
6  UnityFramework                 0x3614ec Thread::RunThreadWrapper(void*) + 82 (Thread.cpp:82)
7  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
8  libsystem_pthread.dylib        0x1a10 thread_start + 8

AssetGarbageCollectorHelper
0  libsystem_kernel.dylib         0x1154 semaphore_wait_trap + 8
1  libdispatch.dylib              0x489c _dispatch_sema4_wait + 28
2  libdispatch.dylib              0x4f4c _dispatch_semaphore_wait_slow + 132
3  UnityFramework                 0x941f48 UnityClassic::Baselib_SystemSemaphore_Acquire(UnityClassic::Baselib_SystemSemaphore_Handle) + 37 (Baselib_SystemSemaphore_DarwinApi.inl.h:37)
4  UnityFramework                 0x2cc31c AGCThread::Run() + 47 (Baselib_Semaphore_SemaphoreBased.inl.h:47)
5  UnityFramework                 0x2d2154 AGCThread::RunThread(void*) + 232 (GarbageCollectSharedAssets.cpp:232)
6  UnityFramework                 0x3614ec Thread::RunThreadWrapper(void*) + 82 (Thread.cpp:82)
7  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
8  libsystem_pthread.dylib        0x1a10 thread_start + 8

com.apple.uikit.eventfetch-thread
0  libsystem_kernel.dylib         0x11d8 mach_msg2_trap + 8
1  libsystem_kernel.dylib         0xf70 mach_msg2_internal + 80
2  libsystem_kernel.dylib         0xe88 mach_msg_overwrite + 436
3  libsystem_kernel.dylib         0xcc8 mach_msg + 24
4  CoreFoundation                 0x35d0c __CFRunLoopServiceMachPort + 160
5  CoreFoundation                 0x33c04 __CFRunLoopRun + 1208
6  CoreFoundation                 0x33668 CFRunLoopRunSpecific + 608
7  Foundation                     0x2c54c -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8  Foundation                     0x5a27c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9  UIKitCore                      0x18dfc8 -[UIEventFetcher threadMain] + 420
10 Foundation                     0xb1184 __NSThread__start__ + 732
11 libsystem_pthread.dylib        0x24d4 _pthread_start + 136
12 libsystem_pthread.dylib        0x1a10 thread_start + 8

JavaScriptCore libpas scavenger
0  libsystem_kernel.dylib         0x1b7c __psynch_cvwait + 8
1  libsystem_pthread.dylib        0xfd4 _pthread_cond_wait + 1228
2  JavaScriptCore                 0x15a4b8c scavenger_thread_main + 1316
3  libsystem_pthread.dylib        0x24d4 _pthread_start + 136
4  libsystem_pthread.dylib        0x1a10 thread_start + 8

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

Expand Podfile.lock snippet
```yml Replace this line with the contents of your Podfile.lock! ```
google-oss-bot commented 10 months ago

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

rizafran commented 9 months ago

Hi @krakhotcko, it seems like your issue is related to #11732. Could you try updating to 10.13.0 or later to see if the issue will persist?

google-oss-bot commented 9 months ago

Hey @krakhotcko. We need more information to resolve this issue but there hasn't been an update in 5 weekdays. I'm marking the issue as stale and if there are no new updates in the next 5 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 commented 9 months ago

Since there haven't been any recent updates here, I am going to close this issue.

@krakhotcko if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.