Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on com.amplitude.db.queue #396

Open
ketenshi opened this issue Apr 20, 2022 · 1 comment
Open

Crash on com.amplitude.db.queue #396

ketenshi opened this issue Apr 20, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ketenshi
Copy link

Saw this crash in our crash reports

Crashed: com.amplitude.db.queue
0  libsystem_kernel.dylib         0x7b78 __pthread_kill + 8
1  libsystem_pthread.dylib        0x73bc pthread_kill + 268
2  libsystem_c.dylib              0x2051c abort + 168
3  libsystem_malloc.dylib         0x1ca04 _malloc_put + 550
4  libsystem_malloc.dylib         0x1cc9c malloc_zone_error + 100
5  libsystem_malloc.dylib         0x170dc nanov2_allocate_from_block + 568
6  libsystem_malloc.dylib         0x16164 nanov2_allocate + 128
7  libsystem_malloc.dylib         0x16080 nanov2_malloc + 64
8  libsystem_malloc.dylib         0x6020 _malloc_zone_malloc + 156
9  libsqlite3.dylib               0x3834 sqlite3_config + 1504
10 libsqlite3.dylib               0x104234 sqlite3_sourceid + 322300
11 libsqlite3.dylib               0x1a18 sqlite3_open_v2 + 1304
12 Amplitude                      0x749c __51-[AMPDatabaseHelper inDatabaseWithStatement:block:]_block_invoke + 193 (AMPDatabaseHelper.m:193)
13 libdispatch.dylib              0x3a2c _dispatch_client_callout + 20
14 libdispatch.dylib              0x12c90 _dispatch_lane_barrier_sync_invoke_and_complete + 56
15 Amplitude                      0x73f8 -[AMPDatabaseHelper inDatabaseWithStatement:block:] + 213 (AMPDatabaseHelper.m:213)
16 Amplitude                      0x9044 -[AMPDatabaseHelper getEventCountFromTable:] + 536 (AMPDatabaseHelper.m:536)
17 Amplitude                      0xdd4c -[Amplitude truncateEventQueues] + 666 (Amplitude.m:666)
18 Amplitude                      0xda2c __157-[Amplitude logEvent:withEventProperties:withApiProperties:withUserProperties:withGroups:withGroupProperties:withTimestamp:outOfSession:withMiddlewareExtra:]_block_invoke + 651 (Amplitude.m:651)
19 Foundation                     0x50a9c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
20 Foundation                     0x62e14 -[NSBlockOperation main] + 104
21 Foundation                     0x3b1c4 __NSOPERATION_IS_INVOKING_MAIN__ + 24
22 Foundation                     0x4c4e0 -[NSOperation start] + 788
23 Foundation                     0x4fae8 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
24 Foundation                     0x5dc90 __NSOQSchedule_f + 184
25 libdispatch.dylib              0x12830 _dispatch_block_async_invoke2 + 148
26 libdispatch.dylib              0x3a2c _dispatch_client_callout + 20
27 libdispatch.dylib              0x6eec _dispatch_continuation_pop + 500
28 libdispatch.dylib              0x6558 _dispatch_async_redirect_invoke + 588
29 libdispatch.dylib              0x15164 _dispatch_root_queue_drain + 396
30 libdispatch.dylib              0x1596c _dispatch_worker_thread2 + 164
31 libsystem_pthread.dylib        0x1080 _pthread_wqthread + 228
32 libsystem_pthread.dylib        0xe5c start_wqthread + 8Crashed: com.amplitude.db.queue
0  libsystem_kernel.dylib         0x7b78 __pthread_kill + 8
1  libsystem_pthread.dylib        0x73bc pthread_kill + 268
2  libsystem_c.dylib              0x2051c abort + 168
3  libsystem_malloc.dylib         0x1ca04 _malloc_put + 550
4  libsystem_malloc.dylib         0x1cc9c malloc_zone_error + 100
5  libsystem_malloc.dylib         0x170dc nanov2_allocate_from_block + 568
6  libsystem_malloc.dylib         0x16164 nanov2_allocate + 128
7  libsystem_malloc.dylib         0x16080 nanov2_malloc + 64
8  libsystem_malloc.dylib         0x6020 _malloc_zone_malloc + 156
9  libsqlite3.dylib               0x3834 sqlite3_config + 1504
10 libsqlite3.dylib               0x104234 sqlite3_sourceid + 322300
11 libsqlite3.dylib               0x1a18 sqlite3_open_v2 + 1304
12 Amplitude                      0x749c __51-[AMPDatabaseHelper inDatabaseWithStatement:block:]_block_invoke + 193 (AMPDatabaseHelper.m:193)
13 libdispatch.dylib              0x3a2c _dispatch_client_callout + 20
14 libdispatch.dylib              0x12c90 _dispatch_lane_barrier_sync_invoke_and_complete + 56
15 Amplitude                      0x73f8 -[AMPDatabaseHelper inDatabaseWithStatement:block:] + 213 (AMPDatabaseHelper.m:213)
16 Amplitude                      0x9044 -[AMPDatabaseHelper getEventCountFromTable:] + 536 (AMPDatabaseHelper.m:536)
17 Amplitude                      0xdd4c -[Amplitude truncateEventQueues] + 666 (Amplitude.m:666)
18 Amplitude                      0xda2c __157-[Amplitude logEvent:withEventProperties:withApiProperties:withUserProperties:withGroups:withGroupProperties:withTimestamp:outOfSession:withMiddlewareExtra:]_block_invoke + 651 (Amplitude.m:651)
19 Foundation                     0x50a9c __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
20 Foundation                     0x62e14 -[NSBlockOperation main] + 104
21 Foundation                     0x3b1c4 __NSOPERATION_IS_INVOKING_MAIN__ + 24
22 Foundation                     0x4c4e0 -[NSOperation start] + 788
23 Foundation                     0x4fae8 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 24
24 Foundation                     0x5dc90 __NSOQSchedule_f + 184
25 libdispatch.dylib              0x12830 _dispatch_block_async_invoke2 + 148
26 libdispatch.dylib              0x3a2c _dispatch_client_callout + 20
27 libdispatch.dylib              0x6eec _dispatch_continuation_pop + 500
28 libdispatch.dylib              0x6558 _dispatch_async_redirect_invoke + 588
29 libdispatch.dylib              0x15164 _dispatch_root_queue_drain + 396
30 libdispatch.dylib              0x1596c _dispatch_worker_thread2 + 164
31 libsystem_pthread.dylib        0x1080 _pthread_wqthread + 228
32 libsystem_pthread.dylib        0xe5c start_wqthread + 8

Steps to Reproduce

Saw this in Crashlytics, not sure what was the trigger

Environment

  • SDK Version: 8.8.0
  • Device: iPhone 13 Pro Max
  • OS Version: iOS 15.4.1
@ketenshi ketenshi added the bug Something isn't working label Apr 20, 2022
@yuhao900914
Copy link
Collaborator

yuhao900914 commented May 5, 2022

Thanks for using iOS SDK!
Feels like that's the known issue for the SQLite. Please confirm @bohan-amplitude @qingzhuozhen.
We are planning to work on next generation of iOS SDK, which will remove the SQLite dependence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants