EXC_BAD_ACCESS AWSIoTMQTTClient.m:1326 #5453
Labels
bug
Something isn't working
iot
Issues related to the IoT SDK
pending-community-response
Issue is pending response from the issue requestor
Describe the bug
App randomly crashes with error:
To Reproduce
Steps to reproduce the behavior:
N/A
Observed Behavior
App is crashing
Expected Behavior
I'm expecting to reconnect to the AWS client.
Stack Trace
Code Snippet
N/A
Unique Configuration
N/A
Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)?
Screenshots
N/A
Environment(please complete the following information):
Device Information (please complete the following information):
Logs
EXC_BAD_ACCESS: Attempted to dereference garbage pointer 0x8.
0 CoreFoundation +0xa263c _CFRunLoopAddTimer
1 AWSIoT +0x4ddac -[AWSIoTMQTTClient scheduleReconnection] (AWSIoTMQTTClient.m:1326:9)
2 AWSIoT +0x4a928 __43-[AWSIoTMQTTClient initiateReconnectTimer:]_block_invoke (AWSIoTMQTTClient.m:780:9)
3 libdispatch.dylib +0x2138 __dispatch_call_block_and_release
4 libdispatch.dylib +0x3dd0 __dispatch_client_callout
5 libdispatch.dylib +0xb3fc __dispatch_lane_serial_drain
6 libdispatch.dylib +0xbf2c __dispatch_lane_invoke
7 libdispatch.dylib +0x16cb0 __dispatch_root_queue_drain_deferred_wlh
8 libdispatch.dylib +0x16524 __dispatch_workloop_worker_thread
9 libsystem_pthread.dylib +0x4930 __pthread_wqthread
call AWSIoTDataManager.m disconnect method
which is calling AWSIoTMQTTClient.m
disconnect has no synchronization it calls cleanupReconnectTimer
which is invalidates and removes reference to the reconnect timer on the correct thread to avoid creating a memory leak.
The code that then has issues is:
The text was updated successfully, but these errors were encountered: