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

iOS TwilioConversationsClient SDK Crash in TwilioTwilsockLib #51

Open
ahsanrJoblogic opened this issue Dec 11, 2023 · 5 comments
Open

Comments

@ahsanrJoblogic
Copy link

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

@berkus
Copy link
Contributor

berkus commented Dec 11, 2023

Hi, which SDK version?

@ahsanrJoblogic
Copy link
Author

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

@berkus
Copy link
Contributor

berkus commented Dec 11, 2023

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

@berkus berkus self-assigned this Dec 11, 2023
@ahsanrJoblogic
Copy link
Author

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

@berkus
Copy link
Contributor

berkus commented Jan 19, 2024

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

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

No branches or pull requests

2 participants