Issue Description
I have install latest version of Twilio conversation sdk through package manager and Twilio conversation v_4.0.3 and TwilioTwilsockLib 2.1.1 is installed. When I am using the application there is a random crash which I am facing again and again.As per the logs the application is getting crashed due to Twilio Conversation SDK. I am using Xcode version 15.4.
Crash Logs
<<<<TwilioConversationsClient: 0x600003b757a0>>>> - 12 | Sync NotificationRouter | Error: Command timeout reached
<<<<TwilioConversationsClient: 0x600003b757a0>>>> - | SDK Convo-iOS | onConnectionStateUpdated moved to state 5
[ConversationClientHandler.swift:54] conversationsClient(_:connectionStateUpdated:) - client:connectionStateUpdated
Connection 25: received failure notification
nw_read_request_report [C25] Receive failed with error "Socket is not connected"
nw_flow_service_reads [C25 3.228.152.103:443 failed parent-flow (satisfied (Path is satisfied), interface: en0[802.11], uses wifi)] No output handler
nw_flow_add_write_request [C25 3.228.152.103:443 failed parent-flow (satisfied (Path is satisfied), interface: en0[802.11], uses wifi)] cannot accept write requests
nw_write_request_report [C25] Send failed with error "Socket is not connected"
Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TCHErrorInfo UTF8String]: unrecognized selector sent to instance 0x600000276880'
First throw call stack:
(
0 CoreFoundation 0x00007ff8004cd531 exceptionPreprocess + 242
1 libobjc.A.dylib 0x00007ff8000837e8 objc_exception_throw + 48
2 CoreFoundation 0x00007ff8004e2643 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0
3 CoreFoundation 0x00007ff8004d1cc4 __forwarding + 1459
4 CoreFoundation 0x00007ff8004d3ec8 _CF_forwarding_prep_0 + 120
5 TwilioConversationsClient 0x0000000107035169 ___ZN3rtd8twilsock8Twilsock4initEv_block_invoke_2.94 + 73
6 TwilioConversationsClient 0x000000010703a48d -[TCHTwilsockListener onDisconnected:] + 102
7 TwilioTwilsockLib 0x0000000106140007 $s17TwilioTwilsockLib0B15ObserverWrapperC14onDisconnectedyyAA9ErrorInfoOFTm + 199
8 TwilioTwilsockLib 0x000000010614fb3f $s17TwilioTwilsockLib0B12StateMachineV05stateE0_5queue0adE00dE0CyAC0D0OAC5EventOAC10SideEffectOGAJ_So012OS_dispatch_G0CtFZAF0dE5TypesO10DefinitionVy_AjlNGyXEfU_SayAS0H7HandlerVy_AjlNGGyXEfU3_yAA0 9 TwilioTwilsockLib 0x000000010611cecd $s17TwilioTwilsockLib0B0C12certificates10authStruct14clientMetadata21notificationProductId24continuationTokenStorage19reachabilityMonitor15transportConfig0Q4TypeACSaySSG_AA04AuthF0VAA06ClientH0VS 10 TwilioTwilsockLib 0x0000000106110d39 $sIeg_IeyB_TR + 25
11 libdispatch.dylib 0x0000000105c1229d _dispatch_call_block_and_release + 12
12 libdispatch.dylib 0x0000000105c1358f _dispatch_client_callout + 8
13 libdispatch.dylib 0x0000000105c1b4ba _dispatch_lane_serial_drain + 1127
14 libdispatch.dylib 0x0000000105c1c255 _dispatch_lane_invoke + 441
15 libdispatch.dylib 0x0000000105c29356 _dispatch_root_queue_drain_deferred_wlh + 318
16 libdispatch.dylib 0x0000000105c28751 _dispatch_workloop_worker_thread + 590
17 libsystem_pthread.dylib 0x0000000104badb84 _pthread_wqthread + 327
18 libsystem_pthread.dylib 0x0000000104bacacf start_wqthread + 15
)
libc++abi: terminating due to uncaught exception of type NSException
nw_read_request_report [C4] Receive failed with error "Operation timed out"
nw_read_request_report [C4] Receive failed with error "Operation timed out"
nw_endpoint_flow_fillout_data_transfer_snapshot copy_info() returned NULL
nw_connection_copy_connected_local_endpoint_block_invoke [C4] Connection has no local endpoint
Issue Description I have install latest version of Twilio conversation sdk through package manager and Twilio conversation v_4.0.3 and TwilioTwilsockLib 2.1.1 is installed. When I am using the application there is a random crash which I am facing again and again.As per the logs the application is getting crashed due to Twilio Conversation SDK. I am using Xcode version 15.4.
Crash Logs <<<<TwilioConversationsClient: 0x600003b757a0>>>> - 12 | Sync NotificationRouter | Error: Command timeout reached <<<<TwilioConversationsClient: 0x600003b757a0>>>> - | SDK Convo-iOS | onConnectionStateUpdated moved to state 5 [ConversationClientHandler.swift:54] conversationsClient(_:connectionStateUpdated:) - client:connectionStateUpdated Connection 25: received failure notification nw_read_request_report [C25] Receive failed with error "Socket is not connected" nw_flow_service_reads [C25 3.228.152.103:443 failed parent-flow (satisfied (Path is satisfied), interface: en0[802.11], uses wifi)] No output handler nw_flow_add_write_request [C25 3.228.152.103:443 failed parent-flow (satisfied (Path is satisfied), interface: en0[802.11], uses wifi)] cannot accept write requests nw_write_request_report [C25] Send failed with error "Socket is not connected" Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TCHErrorInfo UTF8String]: unrecognized selector sent to instance 0x600000276880' First throw call stack: ( 0 CoreFoundation 0x00007ff8004cd531 exceptionPreprocess + 242 1 libobjc.A.dylib 0x00007ff8000837e8 objc_exception_throw + 48 2 CoreFoundation 0x00007ff8004e2643 +[NSObject(NSObject) instanceMethodSignatureForSelector:] + 0 3 CoreFoundation 0x00007ff8004d1cc4 __forwarding + 1459 4 CoreFoundation 0x00007ff8004d3ec8 _CF_forwarding_prep_0 + 120 5 TwilioConversationsClient 0x0000000107035169 ___ZN3rtd8twilsock8Twilsock4initEv_block_invoke_2.94 + 73 6 TwilioConversationsClient 0x000000010703a48d -[TCHTwilsockListener onDisconnected:] + 102 7 TwilioTwilsockLib 0x0000000106140007 $s17TwilioTwilsockLib0B15ObserverWrapperC14onDisconnectedyyAA9ErrorInfoOFTm + 199 8 TwilioTwilsockLib 0x000000010614fb3f $s17TwilioTwilsockLib0B12StateMachineV05stateE0_5queue0adE00dE0CyAC0D0OAC5EventOAC10SideEffectOGAJ_So012OS_dispatch_G0CtFZAF0dE5TypesO10DefinitionVy_AjlNGyXEfU_SayAS0H7HandlerVy_AjlNGGyXEfU3_yAA0 9 TwilioTwilsockLib 0x000000010611cecd $s17TwilioTwilsockLib0B0C12certificates10authStruct14clientMetadata21notificationProductId24continuationTokenStorage19reachabilityMonitor15transportConfig0Q4TypeACSaySSG_AA04AuthF0VAA06ClientH0VS 10 TwilioTwilsockLib 0x0000000106110d39 $sIeg_IeyB_TR + 25 11 libdispatch.dylib 0x0000000105c1229d _dispatch_call_block_and_release + 12 12 libdispatch.dylib 0x0000000105c1358f _dispatch_client_callout + 8 13 libdispatch.dylib 0x0000000105c1b4ba _dispatch_lane_serial_drain + 1127 14 libdispatch.dylib 0x0000000105c1c255 _dispatch_lane_invoke + 441 15 libdispatch.dylib 0x0000000105c29356 _dispatch_root_queue_drain_deferred_wlh + 318 16 libdispatch.dylib 0x0000000105c28751 _dispatch_workloop_worker_thread + 590 17 libsystem_pthread.dylib 0x0000000104badb84 _pthread_wqthread + 327 18 libsystem_pthread.dylib 0x0000000104bacacf start_wqthread + 15 ) libc++abi: terminating due to uncaught exception of type NSException nw_read_request_report [C4] Receive failed with error "Operation timed out" nw_read_request_report [C4] Receive failed with error "Operation timed out" nw_endpoint_flow_fillout_data_transfer_snapshot copy_info() returned NULL nw_connection_copy_connected_local_endpoint_block_invoke [C4] Connection has no local endpoint