V4.18.0 Crashed: com.sendbird.core.stat_manager.42AD1BA7-A3C0-43BB-BB60-8567CE58A0F1 (QOS: UNSPECIFIED) EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000

[Problem/Question]
// Detailed description of issue.

Ever since we updated to 4.18, we started receiving these crash errors, quite often. We have rolled back the version and hoping that is a fix. We have not made any significant changes to our send bird code base, so we don’t believe it’s an implementation issue.

Crashed: com.sendbird.core.stat_manager.42AD1BA7-A3C0-43BB-BB60-8567CE58A0F1 (QOS: UNSPECIFIED)

EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000000000000000


// If problem, please fill out the below. If question, please delete.
[SDK Version]
// What version of the SDK are you using?
This is master branch starting on March 29.

[Reproduction Steps]
// Please provide reproduction steps and, if possible, code snippets.

Seems to crash on initialization or connection.

[Frequency]
// How frequently is this issue occurring?

at least 25% of the time

[Current impact]
// How is this currently impacting your implementation?

If the rollback does not fix it, we are screwed

// Full log:

Crashlytics - Stack trace

Application: com.pareto.astra-ios.mobile

Platform: apple

Version: 0.7.0 (22)

Issue: 8291d3df8342ab2edb2a4e59c6ab8ade

Session: c18146c0662a4c938692938f36db12ad_DNE_0_v2

Date: Mon Apr 01 2024 00:32:20 GMT+1100 (Australian Eastern Daylight Time)

com.apple.main-thread
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 GraphicsServices 0x34e0 GSEventRunModal + 164
8 UIKitCore 0x22aedc -[UIApplication _run] + 888
9 UIKitCore 0x22a518 UIApplicationMain + 340
10 SwiftUI 0x1033860 OUTLINED_FUNCTION_39 + 600
11 SwiftUI 0x10336a8 OUTLINED_FUNCTION_39 + 160
12 SwiftUI 0xc4f9fc get_witness_table 7SwiftUI4ViewRzlAA15ModifiedContentVyxAA30_EnvironmentKeyWritingModifierVySbGGAaBHPxAaBHD1__AgA0cI0HPyHCHCTm + 364
13 astra-ios 0x104d68 main + 4363275624 (AstraApp.swift:4363275624)
14 ??? 0x1bfa6ad84 (Missing)

Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

com.google.firebase.firestore.rpc
0 libsystem_kernel.dylib 0xffd8 poll + 8
1 astra-ios 0x6d3dbc pollset_work(grpc_pollset*, grpc_pollset_worker**, grpc_core::Timestamp) + 185308
2 astra-ios 0x6d6460 pollset_work(grpc_pollset*, grpc_pollset_worker**, grpc_core::Timestamp) + 195200
3 astra-ios 0x69c194 cq_next(grpc_completion_queue*, gpr_timespec, void*) + 153176
4 astra-ios 0x5eaf5c grpc::CompletionQueue::AsyncNextInternal(void**, bool*, gpr_timespec) + 74300
5 astra-ios 0x47e438 firebase::firestore::remote::Datastore::PollGrpcQueue() + 4366918712
6 astra-ios 0x59e864 firebase::firestore::util::Task::ExecuteAndRelease() + 146768
7 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
8 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748
9 libdispatch.dylib 0xbf30 _dispatch_lane_invoke + 380
10 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
11 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404
12 libsystem_pthread.dylib 0x1f20 _pthread_wqthread + 288
13 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 Foundation 0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0x554e8 -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x18dac8 -[UIEventFetcher threadMain] + 420
10 Foundation 0x9ca9c NSThread__start + 732
11 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

com.sendbird.core.state_manager_8E428920-F4A9-4B31-BE5F-991CEC52A9D3
0 libcorecrypto.dylib 0x8f64 ccdigest_final_64be + 284
1 libcorecrypto.dylib 0x10254 cchmac_final + 184
2 libcorecrypto.dylib 0x24988 F + 284
3 libcorecrypto.dylib 0x247e0 ccpbkdf2_hmac + 412
4 libcommonCrypto.dylib 0x9b70 CCKeyDerivationPBKDF + 148
5 SendbirdChatSDK 0x261b4c block_destroy_helper.50 + 31708
6 SendbirdChatSDK 0x26257c block_destroy_helper.50 + 34316
7 SendbirdChatSDK 0x261e10 block_destroy_helper.50 + 32416
8 SendbirdChatSDK 0x263198 block_destroy_helper.50 + 37416
9 SendbirdChatSDK 0x261460 block_destroy_helper.50 + 29936
10 SendbirdChatSDK 0x446c78 block_destroy_helper + 5604
11 SendbirdChatSDK 0x334ad8 keypath_setTm + 15016
12 SendbirdChatSDK 0x336dd4 keypath_setTm + 23972
13 SendbirdChatSDK 0x3edbf4 block_destroy_helper + 52500
14 SendbirdChatSDK 0x3df5c4 keypath_setTm + 6604
15 SendbirdChatSDK 0x3e0160 keypath_setTm + 9576
16 SendbirdChatSDK 0x405264 block_destroy_helper.511 + 67748
17 SendbirdChatSDK 0x1da014 __swift_memcpy24_8 + 5712
18 SendbirdChatSDK 0x3b6bb8 block_destroy_helper.258 + 10812
19 SendbirdChatSDK 0x3b77f4 block_destroy_helper.258 + 13944
20 SendbirdChatSDK 0x407a2c block_destroy_helper.511 + 77932
21 SendbirdChatSDK 0x1c2c64 __swift_mutable_project_boxed_opaque_existential_1 + 76800
22 libdispatch.dylib 0x213c _dispatch_call_block_and_release + 32
23 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
24 libdispatch.dylib 0xb400 _dispatch_lane_serial_drain + 748
25 libdispatch.dylib 0xbf30 _dispatch_lane_invoke + 380
26 libdispatch.dylib 0x16cb4 _dispatch_root_queue_drain_deferred_wlh + 288
27 libdispatch.dylib 0x16528 _dispatch_workloop_worker_thread + 404
28 libsystem_pthread.dylib 0x1f20 _pthread_wqthread + 288
29 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Thread
0 libsystem_kernel.dylib 0xa084 __workq_kernreturn + 8
1 libsystem_pthread.dylib 0x1f6c _pthread_wqthread + 364
2 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

Crashed: com.sendbird.core.stat_manager.42AD1BA7-A3C0-43BB-BB60-8567CE58A0F1 (QOS: UNSPECIFIED)
0 SendbirdChatSDK 0x2d18d4 block_destroy_helper + 11660
1 SendbirdChatSDK 0x2d2360 block_destroy_helper + 14360
2 SendbirdChatSDK 0x2d2030 block_destroy_helper + 13544
3 SendbirdChatSDK 0x1c2c64 __swift_mutable_project_boxed_opaque_existential_1 + 76800
4 Foundation 0x437f4 NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK + 24
5 Foundation 0x71d0c -[NSBlockOperation main] + 104
6 Foundation 0x6f594 NSOPERATION_IS_INVOKING_MAIN + 16
7 Foundation 0x6e684 -[NSOperation start] + 648
8 Foundation 0x7119c NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION + 16
9 Foundation 0x70f08 __NSOQSchedule_f + 172
10 libdispatch.dylib 0x12e5c _dispatch_block_async_invoke2 + 148
11 libdispatch.dylib 0x3dd4 _dispatch_client_callout + 20
12 libdispatch.dylib 0x72d8 _dispatch_continuation_pop + 600
13 libdispatch.dylib 0x68f4 _dispatch_async_redirect_invoke + 584
14 libdispatch.dylib 0x15894 _dispatch_root_queue_drain + 392
15 libdispatch.dylib 0x1609c _dispatch_worker_thread2 + 156
16 libsystem_pthread.dylib 0x1ee4 _pthread_wqthread + 228
17 libsystem_pthread.dylib 0x1fc0 start_wqthread + 8

com.google.firebase.crashlytics.MachExceptionServer
0 astra-ios 0x2d33e8 FIRCLSProcessRecordAllThreads + 393 (FIRCLSProcess.c:393)
1 astra-ios 0x2d37c8 FIRCLSProcessRecordAllThreads + 424 (FIRCLSProcess.c:424)
2 astra-ios 0x2e199c FIRCLSHandler + 34 (FIRCLSHandler.m:34)
3 astra-ios 0x2e21a0 FIRCLSMachExceptionServer + 521 (FIRCLSMachException.c:521)
4 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
5 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.sendbird.core.runloop.thread
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 Foundation 0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 SendbirdChatSDK 0x256934 block_destroy_helper + 13256
9 SendbirdChatSDK 0x256994 block_destroy_helper + 13352
10 Foundation 0x9ca9c NSThread__start + 732
11 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
12 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbaf8 gpr_cv_wait + 489232
3 astra-ios 0x6dc9d4 grpc_core::Executor::ThreadMain(void*) + 221172
4 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
5 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
6 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbaf8 gpr_cv_wait + 489232
3 astra-ios 0x6dc9d4 grpc_core::Executor::ThreadMain(void*) + 221172
4 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
5 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
6 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x812070 timer_thread(void*) + 39392
4 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
5 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
6 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x810ffc grpc_event_engine::experimental::TimerManager::WaitUntil(grpc_core::Timestamp) + 35180
4 astra-ios 0x811944 void absl::lts_20240116::internal_any_invocable::RemoteInvoker<false, void, grpc_event_engine::experimental::TimerManager::MainLoop()::$_0&>(absl::lts_20240116::internal_any_invocable::TypeErasedState*) + 37556
5 astra-ios 0x608be0 grpc_event_engine::experimental::SelfDeletingClosure::Run() + 196288
6 astra-ios 0x8304b8 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step() + 163368
7 astra-ios 0x8301f4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody() + 162660
8 astra-ios 0x8309b8 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread()::$_0::__invoke(void*) + 164648
9 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
10 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
11 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x830898 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout(grpc_core::Duration) + 164360
4 astra-ios 0x8305a4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step() + 163604
5 astra-ios 0x8301f4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody() + 162660
6 astra-ios 0x8309b8 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread()::$_0::__invoke(void*) + 164648
7 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
8 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
9 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x830898 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout(grpc_core::Duration) + 164360
4 astra-ios 0x8305a4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step() + 163604
5 astra-ios 0x8301f4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody() + 162660
6 astra-ios 0x8309b8 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread()::$_0::__invoke(void*) + 164648
7 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
8 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
9 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x830898 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout(grpc_core::Duration) + 164360
4 astra-ios 0x8305a4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step() + 163604
5 astra-ios 0x8301f4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody() + 162660
6 astra-ios 0x8309b8 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread()::$_0::__invoke(void*) + 164648
7 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
8 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
9 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x830898 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout(grpc_core::Duration) + 164360
4 astra-ios 0x8305a4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step() + 163604
5 astra-ios 0x8301f4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody() + 162660
6 astra-ios 0x8309b8 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread()::$_0::__invoke(void*) + 164648
7 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
8 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
9 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x830898 grpc_event_engine::experimental::WorkStealingThreadPool::WorkSignal::WaitWithTimeout(grpc_core::Duration) + 164360
4 astra-ios 0x8305a4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::Step() + 163604
5 astra-ios 0x8301f4 grpc_event_engine::experimental::WorkStealingThreadPool::ThreadState::ThreadBody() + 162660
6 astra-ios 0x8309b8 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::StartThread()::$_0::__invoke(void*) + 164648
7 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
8 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
9 libsystem_pthread.dylib 0x1fcc thread_start + 8

Thread
0 libsystem_kernel.dylib 0x249c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x1590 _pthread_cond_wait + 1228
2 astra-ios 0x7fbae8 gpr_cv_wait + 489216
3 astra-ios 0x82feac grpc_core::Notification::WaitForNotificationWithTimeout(absl::lts_20240116::Duration) + 161820
4 astra-ios 0x82fd74 grpc_event_engine::experimental::WorkStealingThreadPool::WorkStealingThreadPoolImpl::Lifeguard::LifeguardMain() + 161508
5 astra-ios 0x80c120 grpc_core::(anonymous namespace)::ThreadInternalsPosix::ThreadInternalsPosix(char const*, void ()(void), void*, bool*, grpc_core::thread::Options const&)::‘lambda’(void*)::__invoke(void*) + 14992
6 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
7 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.SwiftUI.AsyncRenderer
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 Foundation 0x2b4a8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0x29ff0 -[NSRunLoop(NSRunLoop) run] + 64
9 SwiftUI 0x6cadfc OUTLINED_FUNCTION_103 + 23748
10 SwiftUI 0x6caee0 OUTLINED_FUNCTION_103 + 23976
11 Foundation 0x9ca9c NSThread__start + 732
12 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
13 libsystem_pthread.dylib 0x1fcc thread_start + 8

com.apple.NSURLConnectionLoader
0 libsystem_kernel.dylib 0x1af8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1890 mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x17a8 mach_msg_overwrite + 436
3 libsystem_kernel.dylib 0x15e8 mach_msg + 24
4 CoreFoundation 0x3601c __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x33f04 __CFRunLoopRun + 1208
6 CoreFoundation 0x33968 CFRunLoopRunSpecific + 608
7 CFNetwork 0x25ac48 estimatedPropertyListSize + 38228
8 Foundation 0x9ca9c NSThread__start + 732
9 libsystem_pthread.dylib 0x2a90 _pthread_start + 136
10 libsystem_pthread.dylib 0x1fcc thread_start + 8

We are getting the same Crash. Can anyone guide us how to fix this.

Our team also faced with a crash in SendbirdChatSDK 4.18.0 release, crash persists in a new 4.19.0 version.
Trace:

SIGSEGV (SEGV_ACCERR): Application crash: SIGSEGV (Segmentation fault)
0   SendbirdChatSDK                     0x00000001071658d4 StatManager.dailyStatCollector.getter + 52
1   SendbirdChatSDK                     0x0000000107166298 StatManager.filterStats() + 572 (StatManager.swift:253)
2   SendbirdChatSDK                     0x0000000107166030 closure #1 () in StatManager.update(allowedStatTypes: Set<StatType>, completion: ()?) + 108 (StatManager.swift:184)
3   SendbirdChatSDK                     0x0000000107056c64 thunk for @escaping @callee_guaranteed () -> () + 28
4   Foundation                          0x00000001893047f4 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 24
5   Foundation                          0x0000000189332d0c -[NSBlockOperation main] + 104
6   Foundation                          0x0000000189330594 __NSOPERATION_IS_INVOKING_MAIN__ + 16
7   Foundation                          0x000000018932f684 -[NSOperation start] + 648
8   Foundation                          0x000000018933219c __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 16
9   Foundation                          0x0000000189331f08 __NSOQSchedule_f + 172
10  libdispatch.dylib                   0x0000000192335e5c _dispatch_block_async_invoke2 + 148
11  libdispatch.dylib                   0x0000000192326dd4 _dispatch_client_callout + 20
12  libdispatch.dylib                   0x000000019232a2d8 _dispatch_continuation_pop + 600
13  libdispatch.dylib                   0x00000001923298f4 _dispatch_async_redirect_invoke + 584
14  libdispatch.dylib                   0x0000000192338894 _dispatch_root_queue_drain + 392
15  libdispatch.dylib                   0x000000019233909c _dispatch_worker_thread2 + 156
16  libsystem_pthread.dylib             0x00000001e640cee4 _pthread_wqthread + 228
17  libsystem_pthread.dylib             0x00000001e640cfc0 start_wqthread + 8

As a workaround, we have rolled back to v4.17.0

Hello @Sendbird , any update on fixing this crash?

I’d like to update to 4.19.0 to get the Apple Privacy manifest, but if this crash still exists, then I cannot do so at this time.

Hello @Sendbird is there any progress on this one? I’m seeing it very consistently and we’re getting close to the privacy manifest requirement becoming mandatory.

I’m using Sendbird UI Kit at v3.20.0 to include the privacy manifest but I believe the problem is that the Sendbird UI Kit has a dependency on the Chat package being at 4.19.1 still.

Do you have a timeline on when there may be a fix for this or when there might be a next version that we can test with?