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

iOS TwilioConversationsClient SDK Crash in TwilioTwilsockLib

ahsanrJoblogic opened this issue · comments

The application is experiencing crashes in the TwilioTwilsockLib library, specifically during deallocation of memory (_swift_release_dealloc). This issue is observed in the functions reply and handleMessageReceived. The crash is occurring within the Swift runtime for some time, and it's important to note that these listed functions are restricted, and access to the code in these areas is currently unavailable.

Here, I am providing the proper stack trace. Please guide me on why this is happening and how I can resolve this issue. Thanks in advance.

Crashed: com.apple.root.default-qos
0 libswiftCore.dylib 0x3da11c swift_release_dealloc + 32
1 TwilioTwilsockLib 0x17324 $s17TwilioTwilsockLib0B0C5reply33_6E77EF86FB1A5696F3182B1A039327C9LL2to6status11descriptionyAA0B7MessageVSg_AA13CommonHeadersO6StatusVSSSgtKF + 1432
2 TwilioTwilsockLib 0x15780 $s17TwilioTwilsockLib0B0C6handle33_6E77EF86FB1A5696F3182B1A039327C9LL12closeMessageyAA0bN0V_tKF + 1012
3 TwilioTwilsockLib 0x17988 $s17TwilioTwilsockLib0B0C21handleMessageReceived33_6E77EF86FB1A5696F3182B1A039327C9LLyy10Foundation4DataVFyycfU
+ 824
4 TwilioTwilsockLib 0x7b1c $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

Hi, which SDK version?

Hi @berkus ,
I am using the latest version of the SDK pod 'TwilioConversationsClient' (4.0.2).

@ahsanrJoblogic hi, the latest version is 4.0.3, and this particular bug is supposed to be fixed there, can you please retest?

Also, CocoaPods are not going to be updated anymore it seems, could you switch your project to use SPM? You can use it in parallel with CocoaPods.

Hi @berkus,
Okay, thanks for the update. We will check this soon.

@ahsanrJoblogic hi, did you manage to test it out?