firebase / firebase/firebase-ios-sdk
Crash in [APMSqliteStore endTransaction]
- Dominant language
- C++
- Stars
- 6.7k
- Forks
- 1.8k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 75
Description
### Description
App crashes shortly after launching for small number of users having different iOS versions, pretty randomly.
There was a similar issue closed due to missing attention from reporter https://github.com/firebase/firebase-ios-sdk/issues/11105#issue-1662875471
### Reproducing the issue
Could not reproduce locally
### Firebase SDK Version
10.24
### Xcode Version
15.2
### Installation Method
CocoaPods
### Firebase Product(s)
Crashlytics, Remote Config
### Targeted Platforms
iOS
### Relevant Log Output
```shell
com.google.fira.worker
0 libsystem_kernel.dylib 0xf34c fsync + 8
1 libsqlite3.dylib 0x4cab4 sqlite3_free_table + 47104
2 libsqlite3.dylib 0x55b68 sqlite3_randomness + 1664
3 libsqlite3.dylib 0x4c674 sqlite3_free_table + 46016
4 libsqlite3.dylib 0x3cd7c sqlite3_value_text + 19848
5 libsqlite3.dylib 0x3c944 sqlite3_value_text + 18768
6 libsqlite3.dylib 0x15c74 sqlite3_finalize + 1812
7 libsqlite3.dylib 0x36d04 sqlite3_step + 46152
8 libsqlite3.dylib 0x2bc80 sqlite3_step + 964
9 libsqlite3.dylib 0x8908 sqlite3_exec + 368
10 App 0x372d218 -[APMSqliteStore endTransaction] + 4362064408
11 App 0x372d0bc -[APMSqliteStore performTransactionWithError:block:] + 4362064060
12 App 0x36a4e24 -[APMDatabase performTransaction:] + 4361506340
13 App 0x36dd2a0 -[APMMeasurement(Event) writeFilteredEventOnWorkerQueue:] + 4361736864
14 App 0x36dcfb4 -[APMMeasurement(Event) writeEventOnWorkerQueue:] + 4361736116
15 App 0x36dca50 -[APMMeasurement(Event) handleEventOnWorkerQueue:] + 4361734736
16 App 0x36d151c -[APMMeasurement logEventOnWorkerQueue:notifyEventListeners:] + 4361688348
17 App 0x36d1494 -[APMMeasurement logEventOnWorkerQueueWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:] + 4361688212
18 App 0x36d1228 __151-[APMMeasurement logEventWithOrigin:isPublicEvent:name:parameters:timestamp:enabled:ignoreEnabled:ignoreInterceptor:interceptor:addedScreenParameters:]_block_invoke + 4361687592
19 App 0x3724220 __51-[APMScheduler scheduleOnWorkerQueueBlockID:block:]_block_invoke + 4362027552
20 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32
21 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
22 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748
23 libdispatch.dylib 0xbf30 _dispatch_lane_invoke + 380
24 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
25 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404
26 libsystem_pthread.dylib 0x1f20 _pthread_wqthread + 288
27 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!
```
Contributor guide
Assessment
This issue has not been assessed yet.