firebase / firebase-ios-sdk

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

App crashing on launch [APMIdentity identifierForVendor] #12855

Open tymurmustafaiev opened 6 months ago

tymurmustafaiev commented 6 months ago

Description

App crashes at start for some users. According to Crashlytics logs, it happens right after splash screen in 1-3 seconds.

Reproducing the issue

No reproduction steps. App crashes randomly and on startup. I've checked this thread, but it seems outdated

Firebase SDK Version

10.22

Xcode Version

15.2

Installation Method

CocoaPods

Firebase Product(s)

Crashlytics, Remote Config

Targeted Platforms

iOS

Relevant Log Output

com.google.fira.worker
0  libsystem_kernel.dylib         0x2578 __ulock_wait + 8
1  libdispatch.dylib              0x47c4 _dlock_wait + 56
2  libdispatch.dylib              0x4578 _dispatch_thread_event_wait_slow + 56
3  libdispatch.dylib              0x135b0 __DISPATCH_WAIT_FOR_QUEUE__ + 368
4  libdispatch.dylib              0x1315c _dispatch_sync_f_slow + 148
5  App                        0x369c1f8 -[APMIdentity identifierForVendor] + 4388798968
6  App                        0x36b2444 APMUpdateConsentSignalsAndIdentifiers + 4388889668
7  App                        0x36b7c58 -[APMMeasurement(Event) createRawEventMetadataWithUserAttributes:] + 4388912216
8  App                        0x36b9960 -[APMMeasurement(Event) writeEvent:isPublicEvent:isRealtime:] + 4388919648
9  App                        0x36b770c __57-[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:]_block_invoke + 4388910860
10 App                        0x37072ec -[APMSqliteStore performTransactionWithError:block:] + 4389237484
11 App                        0x367f07c -[APMDatabase performTransaction:] + 4388679804
12 App                        0x36b74f8 -[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:] + 4388910328
13 App                        0x36b720c -[APMMeasurement(Event) writeEventOnWorkerQueue:] + 4388909580
14 App                        0x36b6ca8 -[APMMeasurement(Event) handleEventOnWorkerQueue:] + 4388908200
15 App                        0x36b6a9c -[APMMeasurement(Event) handleInternalEventOnWorkerQueue:] + 4388907676
16 App                        0x36a7928 -[APMMeasurement reportSessionStartOnWorkerQueueWithTimestamp:appInBackground:] + 4388845864
17 App                        0x36a7db4 -[APMMeasurement reportFirstOpenOnWorkerQueue] + 4388847028
18 App                        0x36a72ec __47-[APMMeasurement startMeasurementOnWorkerQueue]_block_invoke + 4388844268
19 App                        0x36a6c34 -[APMMeasurement startMeasurementOnWorkerQueue] + 4388842548
20 App                        0x36a6500 -[APMMeasurement setEnabledOnWorkerQueue:] + 4388840704
21 App                        0x36a6418 __29-[APMMeasurement setEnabled:]_block_invoke + 4388840472
22 App                        0x36fe478 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 4389201016
23 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
24 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
25 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
26 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
27 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
28 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
29 libsystem_pthread.dylib        0x1f20 _pthread_wqthread + 288
30 libsystem_pthread.dylib        0x1fc0 start_wqthread + 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 6 months ago

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

paulb777 commented 6 months ago

This looks like #12151 and previously linked issues that were fixed in 10.13.0. Please confirm the FirebaseAnalytics version being used and share the Podfile.lock.

tymurmustafaiev commented 6 months ago

@paulb777 thx for response, sharing Podfile won't help here as we're using custom setup. We make static library of Firebase sdk via carthage, generate local podspec and link it with cocoapods. The version is 10.22.0

tymurmustafaiev commented 6 months ago

This crash is happening on small amount of people and randomly