rudderlabs / rudder-sdk-ios

iOS SDK for RudderStack - the Customer Data Platform for Developers. Now supports tvOS, watchOS and macOS tracking!
https://www.rudderstack.com
Other
18 stars 39 forks source link

BUG : Crash RSDBPersistentManager getEventsFromDB:] #538

Closed WYZEYaolongZhu closed 2 weeks ago

WYZEYaolongZhu commented 2 months ago

Describe the bug

s.dependency 'Rudder', '~> 1.25'

There were few crashes before iOS 18, but a large number of crashes appeared after iOS 18.

      Crashed: com.rudder.RSCloudModeManager

0 libsystem_malloc.dylib 0x4dc0 _xzm_xzone_malloc_tiny_outlined + 1280 1 libsqlite3.dylib 0x2ff8 sqlite3_config + 1572 2 libsqlite3.dylib 0x19ee8 sqlite3_log + 1928 3 libsqlite3.dylib 0x9b354 sqlite3_sourceid + 48392 4 libsqlite3.dylib 0x9c8f4 sqlite3_sourceid + 53928 5 libsqlite3.dylib 0x2c8b0 sqlite3_step + 5416 6 libsqlite3.dylib 0x2b748 sqlite3_step + 960 7 Rudder 0xebd4 -[RSDBPersistentManager getEventsFromDB:] + 428 8 Rudder 0xe920 -[RSDBPersistentManager fetchEventsFromDB:ForMode:] + 192 9 Rudder 0x7e38 __45-[RSCloudModeManager startCloudModeProcessor]_block_invoke + 244 10 libdispatch.dylib 0x2370 _dispatch_call_block_and_release + 32 11 libdispatch.dylib 0x40d0 _dispatch_client_callout + 20 12 libdispatch.dylib 0xb6d8 _dispatch_lane_serial_drain + 744 13 libdispatch.dylib 0xc1e0 _dispatch_lane_invoke + 380 14 libdispatch.dylib 0x17258 _dispatch_root_queue_drain_deferred_wlh + 288 15 libdispatch.dylib 0x16aa4 _dispatch_workloop_worker_thread + 540 16 libsystem_pthread.dylib 0x4c7c _pthread_wqthread + 288 17 libsystem_pthread.dylib 0x1488 start_wqthread + 8

SKannaniOS commented 2 months ago

Hi Yaolong Zhu,

Thank you for raising this issue. Our team is currently investigating it and will work to resolve it as soon as possible.

SKannaniOS commented 2 months ago

Hi Yaolong Zhu,

You’ve already shared the issue stack trace. Please provide the following additional details, as they will be very helpful in resolving the issue.

WYZEYaolongZhu commented 2 months ago

@SKannaniOS

SKannaniOS commented 2 months ago

@WYZEYaolongZhu

Please confirm if you have encountered 3000+ instances of the same crash within the last 30 days.

WYZEYaolongZhu commented 2 months ago

@SKannaniOS yes

SKannaniOS commented 2 months ago

@WYZEYaolongZhu

WYZEYaolongZhu commented 2 months ago

@SKannaniOS

image

SKannaniOS commented 2 months ago

@WYZEYaolongZhu

Thank you for sharing the information. Our team has prioritized this issue. Kindly provide the crash file (.crash file) to help us track it more effectively.

SKannaniOS commented 1 month ago

@WYZEYaolongZhu

First, thank you for bringing the issue to our attention and providing valuable input along with the crash file. Based on that, we’ve released a fix in version 1.29.1, now available via both CocoaPods and SPM. Please give it a try; we’re confident this version resolves the crash.

WYZEYaolongZhu commented 1 month ago

@SKannaniOS I have tried using version 1.29.1, but still had the same issue

Crashed: com.rudder.RSCloudModeManager 0 libsystem_malloc.dylib 0x4dd4 _xzm_xzone_malloc_tiny_outlined + 1280 1 libsqlite3.dylib 0x2ff8 sqlite3_config + 1572 2 libsqlite3.dylib 0x19ee8 sqlite3_log + 1928 3 libsqlite3.dylib 0x9b354 sqlite3_sourceid + 48392 4 libsqlite3.dylib 0x9c8f4 sqlite3_sourceid + 53928 5 libsqlite3.dylib 0x2c8b0 sqlite3_step + 5416 6 libsqlite3.dylib 0x2b748 sqlite3_step + 960 7 Rudder 0xecd0 -[RSDBPersistentManager getEventsFromDB:] + 480 8 Rudder 0xe9e8 -[RSDBPersistentManager fetchEventsFromDB:ForMode:] + 192 9 Rudder 0x7e54 __45-[RSCloudModeManager startCloudModeProcessor]_block_invoke + 272 10 libdispatch.dylib 0x2370 _dispatch_call_block_and_release + 32 11 libdispatch.dylib 0x40d0 _dispatch_client_callout + 20 12 libdispatch.dylib 0xb6d8 _dispatch_lane_serial_drain + 744 13 libdispatch.dylib 0xc1e0 _dispatch_lane_invoke + 380 14 libdispatch.dylib 0x17258 _dispatch_root_queue_drain_deferred_wlh + 288 15 libdispatch.dylib 0x16aa4 _dispatch_workloop_worker_thread + 540 16 libsystem_pthread.dylib 0x4c7c _pthread_wqthread + 288 17 libsystem_pthread.dylib 0x1488 start_wqthread + 8

SKannaniOS commented 1 month ago

@WYZEYaolongZhu Hi, we’ve released version 1.29.2-beta with a fix on Cocoapods. We encourage you to give it a try, as we’re confident this update addresses the crash issue.

SKannaniOS commented 1 month ago

@WYZEYaolongZhu I hope the beta release has addressed the crashes. I would appreciate any updates.

SKannaniOS commented 2 weeks ago

Since we’ve released a fix for this issue in the version below, we are closing the issue.

v1.30.0