twilio / conversations-ios

SPM releases

Home Page:https://www.twilio.com/docs/conversations/ios/changelog

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New Crash after Integrating Library 3.1.0

epyifany opened this issue · comments

Hi Twilio Team,
We saw a new crash in our app after integrating the latest version of the Twilio conversations library.

Introduced this crash in our Application:

Version:16.4.1

Crashlytics - Stack trace

EXC_BAD_ACCESS (KERN_INVALID_ADDRESS)

com.apple.main-thread
0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x12ec mach_msg + 24
4 CoreFoundation 0x7aac4 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7bd08 __CFRunLoopRun + 1232
6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612
7 GraphicsServices 0x1368 GSEventRunModal + 164
8 UIKitCore 0x3a1668 -[UIApplication _run] + 888
9 UIKitCore 0x3a12cc UIApplicationMain + 340
10 ... 0x5738 main + 13 (main.swift:13)
11 ??? 0x1c97d8960 (Missing)

com.apple.uikit.eventfetch-thread
0 libsystem_kernel.dylib 0xda8 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x13a1c mach_msg2_internal + 80
2 libsystem_kernel.dylib 0x13c5c mach_msg_overwrite + 388
3 libsystem_kernel.dylib 0x12ec mach_msg + 24
4 CoreFoundation 0x7aac4 __CFRunLoopServiceMachPort + 160
5 CoreFoundation 0x7bd08 __CFRunLoopRun + 1232
6 CoreFoundation 0x80eb0 CFRunLoopRunSpecific + 612
7 Foundation 0x42054 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 212
8 Foundation 0x41f3c -[NSRunLoop(NSRunLoop) runUntilDate:] + 64
9 UIKitCore 0x4d66a4 -[UIEventFetcher threadMain] + 436
10 Foundation 0x5b518 NSThread__start + 716
11 libsystem_pthread.dylib 0x16cc _pthread_start + 148
12 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread
0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
3 NewRelic 0x84dc0 NewRelic::NRMALoggerBridge::log(unsigned int, char const*, unsigned int, char const*, char const*, char*) + 101568
4 NewRelic 0x85344 NewRelic::NRMALoggerBridge::log(unsigned int, char const*, unsigned int, char const*, char const*, char*) + 102980
5 NewRelic 0x854e4 NewRelic::NRMALoggerBridge::log(unsigned int, char const*, unsigned int, char const*, char const*, char*) + 103396
6 libsystem_pthread.dylib 0x16cc _pthread_start + 148
7 libsystem_pthread.dylib 0xba4 thread_start + 8

Thread
0 libsystem_kernel.dylib 0x167c __psynch_cvwait + 8
1 libsystem_pthread.dylib 0x806c _pthread_cond_wait + 1232
2 libc++.1.dylib 0xcacc std::__1::condition_variable::wait(std::__1::unique_lockstd::__1::mutex&) + 28
3 NewRelic 0x84dc0 NewRelic::NRMALoggerBridge::log(unsigned int, char const*, unsigned int, char const*, char const*, char*) + 101568
4 NewRelic 0x85344 NewRelic::NRMALoggerBridge::log(unsigned int, char const*, unsigned int, char const*, char const*, char*) + 102980
5 NewRelic 0x854e4 NewRelic::NRMALoggerBridge::log(unsigned int, char const*, unsigned int, char const*, char const*, char*) + 103396
6 libsystem_pthread.dylib 0x16cc _pthread_start + 148
7 libsystem_pthread.dylib 0xba4 thread_start + 8

Hello,

Thank you for reaching out!

I do not see any traces of the Conversations SDK in the provided crash log. But be aware, we are about to release a new version with a fix for #37, could it be the same issue in your case?

I think it might be related. Here is the trace for twilio SDK

Crashed: com.apple.root.default-qos
EXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x0000d826d904f4d0

Crashed: com.apple.root.default-qos
0 libswiftCore.dylib 0x3da11c swift_release_dealloc + 32
1 TwilioTwilsockLib 0x18664 $s17TwilioTwilsockLib0B0C5reply33_6E77EF86FB1A5696F3182B1A039327C9LL2to6status11descriptionyAA0B7MessageVSg_AA13CommonHeadersO6StatusVSSSgtKF + 1504
2 TwilioTwilsockLib 0x16930 $s17TwilioTwilsockLib0B0C6handle33_6E77EF86FB1A5696F3182B1A039327C9LL12closeMessageyAA0bN0V_tKF + 1196
3 TwilioTwilsockLib 0x18cb4 $s17TwilioTwilsockLib0B0C21handleMessageReceived33_6E77EF86FB1A5696F3182B1A039327C9LLyy10Foundation4DataVFyycfU
+ 824
4 TwilioTwilsockLib 0x6858 $sIeg_IeyB_TR + 28
5 libdispatch.dylib 0x2460 _dispatch_call_block_and_release + 32
6 libdispatch.dylib 0x3f88 _dispatch_client_callout + 20
7 libdispatch.dylib 0x15b8c _dispatch_root_queue_drain + 684
8 libdispatch.dylib 0x16284 _dispatch_worker_thread2 + 164
9 libsystem_pthread.dylib 0xdbc _pthread_wqthread + 228
10 libsystem_pthread.dylib 0xb98 start_wqthread + 8

Hello,

The release with the fix just been released. Feel free to open a new ticket if you face any issues.