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

AEPCore 5.0.0, AEPAnalytics 5.0.0 crashes #1025

Open
3 tasks done
niorko opened this issue May 15, 2024 · 6 comments
Open
3 tasks done

AEPCore 5.0.0, AEPAnalytics 5.0.0 crashes #1025

niorko opened this issue May 15, 2024 · 6 comments
Assignees
Labels
bug Something isn't working. Used by issue templates

Comments

@niorko
Copy link

niorko commented May 15, 2024

Prerequisites

  • This is not a Security Disclosure, otherwise please follow the guidelines in Security Policy.
  • I have searched in this repository's issues to see if it has already been reported.
  • I have updated to the latest released version of the SDK and the issue still persists.

Bug summary

We observe around 6000 crashes on Firebase Crashlytics that are marked as issue with AEPCode and other latest versions of Adobe Analytics.

These are the examples of stack traces:

Crashed: com.adobe.eventHub.queue
0  libsystem_kernel.dylib         0xa974 __pthread_kill + 8
1  libsystem_pthread.dylib        0x60ec pthread_kill + 268
2  libsystem_c.dylib              0x75b80 abort + 180
3  libsystem_malloc.dylib         0x2bc68 malloc_vreport + 896
4  libsystem_malloc.dylib         0x2bf10 malloc_zone_error + 104
5  libsystem_malloc.dylib         0x21a44 nanov2_guard_corruption_detected + 44
6  libsystem_malloc.dylib         0x7f84 nanov2_find_block_and_allocate + 402
7  libswiftCore.dylib             0x3a71ec swift::swift_slowAllocTyped(unsigned long, unsigned long, unsigned long long) + 48
8  libswiftCore.dylib             0x3a7684 _swift_allocObject_ + 1112
9  libswiftDispatch.dylib         0x24f0 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 324
10 libswiftDispatch.dylib         0x237c OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
11 libswiftDispatch.dylib         0x22e8 OS_dispatch_queue.sync<A>(execute:) + 64
12 AEPCore                        0x456f0 block_destroy_helper + 25540
13 AEPCore                        0x357ac block_destroy_helper + 104
14 AEPCore                        0x35784 block_destroy_helper + 64
15 libswiftDispatch.dylib         0x1d4c partial apply for thunk for @callee_guaranteed () -> (@out A, @error @owned Error) + 28
16 libswiftDispatch.dylib         0x9ea0 thunk for @callee_guaranteed () -> (@out A, @error @owned Error)partial apply + 16
17 libswiftDispatch.dylib         0x1c80 closure #1 in closure #1 in OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 192
18 libswiftDispatch.dylib         0x1bb4 partial apply for thunk for @callee_guaranteed () -> () + 28
19 libswiftDispatch.dylib         0x1b8c thunk for @escaping @callee_guaranteed () -> () + 28
20 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
21 libdispatch.dylib              0x136f8 _dispatch_sync_invoke_and_complete_recurse + 64
22 libdispatch.dylib              0x13178 _dispatch_sync_f_slow + 176
23 libswiftDispatch.dylib         0x2788 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.asyncAndWait<A>(execute:) + 192
24 libswiftDispatch.dylib         0x26c0 partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 76
25 libswiftDispatch.dylib         0x2540 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 404
26 libswiftDispatch.dylib         0x237c OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
27 libswiftDispatch.dylib         0x22e8 OS_dispatch_queue.sync<A>(execute:) + 64
28 AEPCore                        0x353f0 __swift_destroy_boxed_opaque_existential_1Tm + 4988
29 AEPCore                        0x3f430 block_destroy_helper + 260
30 AEPAnalytics                   0xb288 __swift_noop_void_return + 3692
31 AEPAnalytics                   0x10fc4 __swift_noop_void_return + 27560
32 AEPCore                        0x347c4 __swift_destroy_boxed_opaque_existential_1Tm + 1872
33 AEPCore                        0x3598c block_destroy_helper + 584
34 AEPServices                    0x177fc __swift_destroy_boxed_opaque_existential_1Tm + 3596
35 AEPServices                    0x74c4 __swift_project_boxed_opaque_existential_1 + 808
36 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
37 libdispatch.dylib              0x72d8 _dispatch_continuation_pop + 600
38 libdispatch.dylib              0x1b1c8 _dispatch_source_latch_and_call + 420
39 libdispatch.dylib              0x19d8c _dispatch_source_invoke + 832
40 libdispatch.dylib              0xb284 _dispatch_lane_serial_drain + 368
41 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
42 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
43 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
44 libsystem_pthread.dylib        0x1f20 _pthread_wqthread + 288
45 libsystem_pthread.dylib        0x1fc0 start_wqthread + 8
Crashed: com.adobe.eventHub.queue
0  libsystem_kernel.dylib         0x9fbc __pthread_kill + 8
1  libsystem_pthread.dylib        0x5680 pthread_kill + 268
2  libsystem_c.dylib              0x75b90 abort + 180
3  libsystem_malloc.dylib         0x26200 malloc_vreport + 908
4  libsystem_malloc.dylib         0x264a8 malloc_zone_error + 104
5  libsystem_malloc.dylib         0x1dac8 nanov2_guard_corruption_detected + 44
6  libsystem_malloc.dylib         0x7e78 nanov2_find_block_and_allocate + 402
7  libsystem_blocks.dylib         0x1a14 _Block_copy + 76
8  libswiftDispatch.dylib         0x2050 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.asyncAndWait<A>(execute:) + 152
9  libswiftDispatch.dylib         0x1fb0 partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 76
10 libswiftDispatch.dylib         0x1e30 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 396
11 libswiftDispatch.dylib         0x1c74 OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
12 libswiftDispatch.dylib         0x1be0 OS_dispatch_queue.sync<A>(execute:) + 64
13 AEPCore                        0x456f0 block_destroy_helper + 25540
14 AEPCore                        0x357ac block_destroy_helper + 104
15 AEPCore                        0x35784 block_destroy_helper + 64
16 libswiftDispatch.dylib         0x1594 partial apply for thunk for @callee_guaranteed () -> (@out A, @error @owned Error) + 28
17 libswiftDispatch.dylib         0x1570 thunk for @callee_guaranteed () -> (@out A, @error @owned Error)partial apply + 16
18 libswiftDispatch.dylib         0x14b0 closure #1 in closure #1 in OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 188
19 libswiftDispatch.dylib         0x13e8 partial apply for thunk for @callee_guaranteed () -> () + 28
20 libswiftDispatch.dylib         0x13c0 thunk for @escaping @callee_guaranteed () -> () + 28
21 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
22 libdispatch.dylib              0x136b4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
23 libswiftDispatch.dylib         0x2078 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.asyncAndWait<A>(execute:) + 192
24 libswiftDispatch.dylib         0x1fb0 partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 76
25 libswiftDispatch.dylib         0x1e30 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 396
26 libswiftDispatch.dylib         0x1c74 OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
27 libswiftDispatch.dylib         0x1be0 OS_dispatch_queue.sync<A>(execute:) + 64
28 AEPCore                        0x353f0 __swift_destroy_boxed_opaque_existential_1Tm + 4988
29 AEPAnalytics                   0xb3d8 __swift_noop_void_return + 4028
30 AEPAnalytics                   0xc124 __swift_noop_void_return + 7432
31 AEPAnalytics                   0x11084 __swift_noop_void_return + 27752
32 AEPAnalytics                   0xa644 __swift_noop_void_return + 552
33 libdispatch.dylib              0x26a8 _dispatch_call_block_and_release + 32
34 libdispatch.dylib              0x4300 _dispatch_client_callout + 20
35 libdispatch.dylib              0xb894 _dispatch_lane_serial_drain + 748
36 libdispatch.dylib              0xc3c4 _dispatch_lane_invoke + 380
37 libdispatch.dylib              0x17004 _dispatch_root_queue_drain_deferred_wlh + 288
38 libdispatch.dylib              0x16878 _dispatch_workloop_worker_thread + 404
39 libsystem_pthread.dylib        0x1964 _pthread_wqthread + 288
40 libsystem_pthread.dylib        0x1a04 start_wqthread + 8
Crashed: com.adobe.eventHub.queue
0  libsystem_kernel.dylib         0x69e8 __pthread_kill + 8
1  libsystem_pthread.dylib        0x10824 pthread_kill + 208
2  libsystem_c.dylib              0x1f0b4 abort + 120
3  libsystem_malloc.dylib         0x1a9dc _malloc_put + 546
4  libsystem_malloc.dylib         0x1ac48 malloc_zone_error + 100
5  libsystem_malloc.dylib         0x40bc nanov2_allocate_from_block$VARIANT$armv81 + 520
6  libsystem_malloc.dylib         0x10f0 nanov2_allocate$VARIANT$armv81 + 124
7  libsystem_malloc.dylib         0x59d4 nanov2_malloc$VARIANT$armv81 + 60
8  libsystem_malloc.dylib         0x515c _malloc_zone_malloc + 148
9  libsystem_blocks.dylib         0x16f0 _Block_copy + 144
10 libswiftDispatch.dylib         0x20ac implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 116
11 libswiftDispatch.dylib         0x137c partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 40
12 libswiftDispatch.dylib         0x1eb8 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 256
13 libswiftDispatch.dylib         0x1410 OS_dispatch_queue.sync<A>(execute:) + 140
14 AEPCore                        0x43ecc block_destroy_helper + 25516
15 AEPCore                        0x32e94 keypath_set.2Tm + 6240
16 AEPCore                        0x33828 block_copy_helper.45 + 104
17 libswiftDispatch.dylib         0x1b44 partial apply for thunk for @callee_guaranteed () -> (@out A, @error @owned Error) + 20
18 libswiftDispatch.dylib         0x1b5c thunk for @callee_guaranteed () -> (@out A, @error @owned Error)partial apply + 12
19 libswiftDispatch.dylib         0x2c24 closure #1 in closure #1 in OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 120
20 libswiftDispatch.dylib         0x2cd4 partial apply for thunk for @callee_guaranteed () -> () + 20
21 libswiftDispatch.dylib         0x26dc thunk for @escaping @callee_guaranteed () -> () + 20
22 libdispatch.dylib              0x641a8 _dispatch_client_callout + 16
23 libdispatch.dylib              0x464ac _dispatch_sync_invoke_and_complete_recurse + 60
24 libdispatch.dylib              0x45f9c _dispatch_sync_f_slow + 164
25 libswiftDispatch.dylib         0x20d0 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 152
26 libswiftDispatch.dylib         0x137c partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 40
27 libswiftDispatch.dylib         0x1eb8 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 256
28 libswiftDispatch.dylib         0x1410 OS_dispatch_queue.sync<A>(execute:) + 140
29 AEPCore                        0x33414 keypath_set.2Tm + 7648
30 AEPCore                        0x32ac4 keypath_set.2Tm + 5264
31 AEPCore                        0x3dc80 block_destroy_helper + 352
32 AEPIdentity                    0x12410 __swift_memcpy88_8 + 25432
33 AEPIdentity                    0x12504 __swift_memcpy88_8 + 25676
34 AEPCore                        0x31e50 keypath_set.2Tm + 2076
35 AEPCore                        0x336a8 block_destroy_helper + 572
36 AEPServices                    0x19b90 __swift_allocate_boxed_opaque_existential_0 + 2784
37 AEPServices                    0x1fac4 block_destroy_helper + 4188
38 libdispatch.dylib              0x641a8 _dispatch_client_callout + 16
39 libdispatch.dylib              0x3b724 _dispatch_continuation_pop$VARIANT$armv81 + 436
40 libdispatch.dylib              0x4ccf4 _dispatch_source_invoke$VARIANT$armv81 + 1320
41 libdispatch.dylib              0x3f024 _dispatch_lane_serial_drain$VARIANT$armv81 + 308
42 libdispatch.dylib              0x3fc04 _dispatch_lane_invoke$VARIANT$armv81 + 388
43 libdispatch.dylib              0x495dc _dispatch_workloop_worker_thread + 616
44 libsystem_pthread.dylib        0x4e84 _pthread_wqthread + 284
45 libsystem_pthread.dylib        0x49f0 start_wqthread + 8
Crashed: com.adobe.eventHub.queue
0  libsystem_kernel.dylib         0xa974 __pthread_kill + 8
1  libsystem_pthread.dylib        0x60ec pthread_kill + 268
2  libsystem_c.dylib              0x75b80 abort + 180
3  libsystem_malloc.dylib         0x2bc68 malloc_vreport + 896
4  libsystem_malloc.dylib         0x2bf10 malloc_zone_error + 104
5  libsystem_malloc.dylib         0x21a44 nanov2_guard_corruption_detected + 44
6  libsystem_malloc.dylib         0x7f84 nanov2_find_block_and_allocate + 402
7  libsystem_blocks.dylib         0x1a14 _Block_copy + 76
8  libswiftDispatch.dylib         0x2760 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.asyncAndWait<A>(execute:) + 152
9  libswiftDispatch.dylib         0x26c0 partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 76
10 libswiftDispatch.dylib         0x2540 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 404
11 libswiftDispatch.dylib         0x237c OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
12 libswiftDispatch.dylib         0x22e8 OS_dispatch_queue.sync<A>(execute:) + 64
13 AEPCore                        0x456f0 block_destroy_helper + 25540
14 AEPCore                        0x357ac block_destroy_helper + 104
15 AEPCore                        0x35770 block_destroy_helper + 44
16 libswiftDispatch.dylib         0x1d4c partial apply for thunk for @callee_guaranteed () -> (@out A, @error @owned Error) + 28
17 libswiftDispatch.dylib         0x9ea0 thunk for @callee_guaranteed () -> (@out A, @error @owned Error)partial apply + 16
18 libswiftDispatch.dylib         0x1c80 closure #1 in closure #1 in OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 192
19 libswiftDispatch.dylib         0x1bb4 partial apply for thunk for @callee_guaranteed () -> () + 28
20 libswiftDispatch.dylib         0x1b8c thunk for @escaping @callee_guaranteed () -> () + 28
21 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
22 libdispatch.dylib              0x132c4 _dispatch_lane_barrier_sync_invoke_and_complete + 56
23 libswiftDispatch.dylib         0x2788 implicit closure #2 in implicit closure #1 in OS_dispatch_queue.asyncAndWait<A>(execute:) + 192
24 libswiftDispatch.dylib         0x26c0 partial apply for implicit closure #2 in implicit closure #1 in OS_dispatch_queue.sync<A>(execute:) + 76
25 libswiftDispatch.dylib         0x2540 OS_dispatch_queue._syncHelper<A>(fn:execute:rescue:) + 404
26 libswiftDispatch.dylib         0x237c OS_dispatch_queue.asyncAndWait<A>(execute:) + 140
27 libswiftDispatch.dylib         0x22e8 OS_dispatch_queue.sync<A>(execute:) + 64
28 AEPCore                        0x35548 __swift_destroy_boxed_opaque_existential_1Tm + 5332
29 AEPCore                        0x3f6b8 block_destroy_helper + 908
30 AEPIdentity                    0x121a4 __swift_destroy_boxed_opaque_existential_0 + 8444
31 AEPIdentity                    0x124e0 __swift_destroy_boxed_opaque_existential_0 + 9272
32 AEPCore                        0x347c4 __swift_destroy_boxed_opaque_existential_1Tm + 1872
33 AEPCore                        0x3598c block_destroy_helper + 584
34 AEPServices                    0x177fc __swift_destroy_boxed_opaque_existential_1Tm + 3596
35 AEPServices                    0x74c4 __swift_project_boxed_opaque_existential_1 + 808
36 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
37 libdispatch.dylib              0x72d8 _dispatch_continuation_pop + 600
38 libdispatch.dylib              0x1b1c8 _dispatch_source_latch_and_call + 420
39 libdispatch.dylib              0x19d8c _dispatch_source_invoke + 832
40 libdispatch.dylib              0xb284 _dispatch_lane_serial_drain + 368
41 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
42 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
43 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
44 libsystem_pthread.dylib        0x1f20 _pthread_wqthread + 288
45 libsystem_pthread.dylib        0x1fc0 start_wqthread + 8
Crashed: com.adobe.eventHub.queue
0  libsystem_kernel.dylib         0xa974 __pthread_kill + 8
1  libsystem_pthread.dylib        0x60ec pthread_kill + 268
2  libsystem_c.dylib              0x75b80 abort + 180
3  libsystem_malloc.dylib         0x2bc68 malloc_vreport + 896
4  libsystem_malloc.dylib         0x2bf10 malloc_zone_error + 104
5  libsystem_malloc.dylib         0x21a44 nanov2_guard_corruption_detected + 44
6  libsystem_malloc.dylib         0x7f84 nanov2_find_block_and_allocate + 402
7  libsystem_blocks.dylib         0x1a14 _Block_copy + 76
8  libswiftCore.dylib             0xc4acc @objc _SwiftDeferredNSDictionary.enumerateKeysAndObjects(options:using:) + 28
9  Foundation                     0x233a0 +[_NSJSONReader validForJSON:depth:allowFragments:] + 192
10 AEPServices                    0x121d4 block_destroy_helper + 200
11 AEPCore                        0x2eeac block_destroy_helper + 30280
12 AEPCore                        0x2eb9c block_destroy_helper + 29496
13 AEPCore                        0x41bf4 block_destroy_helper + 16596
14 AEPCore                        0x23918 block_destroy_helper.5 + 8036
15 libdispatch.dylib              0x213c _dispatch_call_block_and_release + 32
16 libdispatch.dylib              0x3dd4 _dispatch_client_callout + 20
17 libdispatch.dylib              0xb400 _dispatch_lane_serial_drain + 748
18 libdispatch.dylib              0xbf30 _dispatch_lane_invoke + 380
19 libdispatch.dylib              0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
20 libdispatch.dylib              0x16528 _dispatch_workloop_worker_thread + 404
21 libsystem_pthread.dylib        0x1f20 _pthread_wqthread + 288
22 libsystem_pthread.dylib        0x1fc0 start_wqthread + 8

Environment

iOS: 79% iOS 17, 18% iOS 16, 2% iOS 15
SDK: AEPCore 5.0.0 (21E210), AEPAnalytics 5.0.0 (21E210)
IDE: Xcode 15.3.0

Steps to reproduce

Unable to reproduce - around 6000 crashes catched on Firebase Crashlytics.

Current behavior

It crashes.

Expected behavior

To not crash.

Anything else?

No response

@niorko niorko added bug Something isn't working. Used by issue templates triage-required Triage required on a new issue logged for this project. Used by issue templates labels May 15, 2024
@praveek praveek removed the triage-required Triage required on a new issue logged for this project. Used by issue templates label May 16, 2024
@cdhoffmann
Copy link
Contributor

@niorko Can you share the full crash reports for all of these different crashes? We need to see the full stack trace (all threads) to have a better idea of whats going on considering you don't have steps to reproduce. Thanks.

@niorko
Copy link
Author

niorko commented May 20, 2024

crashpoints.zip

Hello, I can't download full stack crash report from Crashlytics, but I gathered few crashpoints from Xcode Organizer from the past two weeks. I hope it helps.

Thank you

@praveek
Copy link
Contributor

praveek commented May 24, 2024

@niorko Looking at all the crash logs, it seems to be some kind of memory corruption. I can't conclusively pinpoint where the actual corruption happens. Do you see similar crashes outside of AEP SDK? Can you also turn on memory management diagnostics for your app and see if you can catch any errors?

@niorko
Copy link
Author

niorko commented May 31, 2024

@praveek I haven't seen any leaks nor corruption and I can't induce the situation, because it does not happen regularly. The only thing that I have in regards with crashes are these crashes from Firebase Crashlytics and crashes in Xcode Organizer. :(

@niorko
Copy link
Author

niorko commented Jul 18, 2024

@cdhoffmann is there any progress? I am being asked constantly on this issue. Thank you.

@cdhoffmann
Copy link
Contributor

@niorko Hey, we have not been able to reproduce this issue, and we don't have any definitive information. Just as @praveek mentioned, this appears to be a memory corruption issue in the app. If you can get us steps to reproduce, we can look into it further.

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

No branches or pull requests

3 participants