aws-amplify / aws-sdk-ios

AWS SDK for iOS. For more information, see our web site:
https://aws-amplify.github.io/docs
Other
1.68k stars 885 forks source link

AWSIoTMQTTClient scheduleReconnection crash #5449

Open tavisbones opened 3 weeks ago

tavisbones commented 3 weeks ago

Describe the bug We are on version 2.37.2 version of the sdk and this crash is fairly prevalent in our application

To Reproduce Steps to reproduce the behavior:

  1. Leave the app open for hours

Observed Behavior Crashes

Expected Behavior Doesn't crash

Stack Trace

Screenshot 2024-10-04 at 1 10 14 PM

Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)? IoT

Environment(please complete the following information):

Device Information (please complete the following information):

mattcreaser commented 3 weeks ago

Thanks for filing the issue @tavisbones. Could you talk a little bit more about how you're using the SDK? That will help in investigating the issue.

tavisbones commented 3 weeks ago

@mattcreaser we are just opening an IoT connection and let the app run for awhile (hours)

iotDataManager?.connectUsingWebSocket(withClientId: clientId, cleanSession: true, statusCallback: statusCallback)

harsh62 commented 2 weeks ago

Are you able to provide more code snippets, and how we can reproduce this issue locally on a machine?