pendo-io / pendo-mobile-sdk

Pendo captures product usage data, gathers user feedback, and lets you communicate in-app to onboard, educate, and guide users to value
https://www.pendo.io
Other
59 stars 2 forks source link

💥 Crash on `-[PNDAnalyticsMessageAdapter addDataToAnalyticsIfNeeded:]` #193

Closed msrutek-paylocity closed 2 weeks ago

msrutek-paylocity commented 1 month ago

Platform + Version

iOS 18.0.0, iPhone 14 Pro

SDK Version

3.4.0

Framework

Native, SwiftUI

Describe the bug

Crash of the app. Might be related to https://github.com/pendo-io/pendo-mobile-sdk/issues/172, as that also contained a call to addDataToAnalyticsIfNeeded. Seeing EXC_BAD_ACCESS, this might relate to incorrect memory management.

To Reproduce

Yet unknown.

Expected behavior

No crash.

Stack Trace

Crashed: pendo.analytics.syncQueue
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x000000060c666620 
0  libobjc.A.dylib                0x1c78 objc_retain + 16
1  libobjc.A.dylib                0x1c78 objc_retain_x0 + 16
2  libobjc.A.dylib                0x75b4 objc_getProperty + 100
3  Pendo                          0x1cb34 -[PNDAnalyticsMessageAdapter addDataToAnalyticsIfNeeded:] + 1080
4  Pendo                          0x114d78 __34-[PNDAnalyticsMessageManager put:]_block_invoke + 80
5  libdispatch.dylib              0x2370 _dispatch_call_block_and_release + 32
6  libdispatch.dylib              0x40d0 _dispatch_client_callout + 20
7  libdispatch.dylib              0xb6d8 _dispatch_lane_serial_drain + 744
8  libdispatch.dylib              0xc1e0 _dispatch_lane_invoke + 380
9  libdispatch.dylib              0x17258 _dispatch_root_queue_drain_deferred_wlh + 288
10 libdispatch.dylib              0x16aa4 _dispatch_workloop_worker_thread + 540
11 libsystem_pthread.dylib        0x4c7c _pthread_wqthread + 288
12 libsystem_pthread.dylib        0x1488 start_wqthread + 8
TehilaTaub commented 2 weeks ago

Hi @msrutek-paylocity,

We've made significant memory management improvements in version 3.4.3 that should help with crashes like this. Please upgrade to 3.4.3 and if you notice similar issues, please open a new ticket with the crash logs.

Closing this one.