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

BUG : Crash RSDBPersistentManager getEventsFromDB:] #538

Closed
WYZEYaolongZhu opened this issue Sep 25, 2024 · 13 comments · Fixed by #539
Closed

BUG : Crash RSDBPersistentManager getEventsFromDB:] #538

WYZEYaolongZhu opened this issue Sep 25, 2024 · 13 comments · Fixed by #539
Assignees

Comments

@WYZEYaolongZhu
Copy link

WYZEYaolongZhu commented Sep 25, 2024

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
Copy link
Contributor

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 SKannaniOS self-assigned this Sep 25, 2024
@SKannaniOS
Copy link
Contributor

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.

  • Please explain the scenario of this issue (e.g., when the app is in the background or during a specific user action)
  • Provide the exact steps to reproduce the crash
  • How often does this issue occur? (e.g., every time, randomly, after specific actions)
  • Is there a specific percentage or frequency of occurrence that you’ve noticed (e.g., does it happen to a large number of users or only in certain cases)?

@WYZEYaolongZhu
Copy link
Author

@SKannaniOS

  • According to statistics, the main problem of Crash is when operating the microphone of the operating system.
  • I did not reproduce it
  • this issue occur disapper,
  • Before iOS 18, counted 100+ crashes within 30 days. iOS 18 has 3,000+ crashes in 30 days

@SKannaniOS
Copy link
Contributor

@WYZEYaolongZhu

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

@WYZEYaolongZhu
Copy link
Author

@SKannaniOS yes

@SKannaniOS
Copy link
Contributor

@WYZEYaolongZhu

  • Kindly provide the device details experiencing this crash, including the model name, iOS version, and any other relevant information.
  • Please provide the SDK initialization snippet as well.

@WYZEYaolongZhu
Copy link
Author

WYZEYaolongZhu commented Sep 27, 2024

@SKannaniOS

  • 'Rudder', '1.29',

image

  • Crash info :
    rashed: com.rudder.RSCloudModeManager 0 libsystem_malloc.dylib 0x4dc0 _xzm_xzone_malloc_tiny_outlined + 1280 1 libsqlite3.dylib 0x2ff8 sqlite3_config + 1572 2 libsqlite3.dylib 0x8ffcc sqlite3_sourceid + 2432 3 libsqlite3.dylib 0x14b78 sqlite3_exec + 50464 4 libsqlite3.dylib 0x14994 sqlite3_exec + 49980 5 libsqlite3.dylib 0xa814 sqlite3_exec + 8636 6 libsqlite3.dylib 0x98b8 sqlite3_exec + 4704 7 libsqlite3.dylib 0x8f64 sqlite3_exec + 2316 8 libsqlite3.dylib 0x8c30 sqlite3_exec + 1496 9 Rudder 0xeb08 -[RSDBPersistentManager getEventsFromDB:] + 224 10 Rudder 0xe920 -[RSDBPersistentManager fetchEventsFromDB:ForMode:] + 192 11 Rudder 0x7e38 __45-[RSCloudModeManager startCloudModeProcessor]_block_invoke + 244 12 libdispatch.dylib 0x2370 _dispatch_call_block_and_release + 32 13 libdispatch.dylib 0x40d0 _dispatch_client_callout + 20 14 libdispatch.dylib 0xb6d8 _dispatch_lane_serial_drain + 744 15 libdispatch.dylib 0xc1e0 _dispatch_lane_invoke + 380 16 libdispatch.dylib 0x17258 _dispatch_root_queue_drain_deferred_wlh + 288 17 libdispatch.dylib 0x16aa4 _dispatch_workloop_worker_thread + 540 18 libsystem_pthread.dylib 0x4c7c _pthread_wqthread + 288 19 libsystem_pthread.dylib 0x1488 start_wqthread + 8

  • Ruder SDK initialization
    let builder: RSConfigBuilder = RSConfigBuilder()
    .withDataPlaneUrl("xxxx")
    if debug == true {
    builder.withDebug(debug)
    }
    builder.withTrackLifecycleEvens(false)
    builder.withFactory(RudderBrazeFactory.instance())
    RSClient.getInstance("xxx", config: builder.build())

  • Braze SDK initialization
    RSClient.sharedInstance()?.onIntegrationReady(RudderBrazeFactory.instance(), withCallback: { brazeInstance in
    ...

                XXBrazeManager.shared.setupBraze(brazeInstance)
            ...
    })
    

@SKannaniOS
Copy link
Contributor

@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
Copy link
Contributor

@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.

@saikumarrs saikumarrs linked a pull request Oct 8, 2024 that will close this issue
@WYZEYaolongZhu
Copy link
Author

@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
Copy link
Contributor

@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
Copy link
Contributor

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

@SKannaniOS
Copy link
Contributor

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

v1.30.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants