-
Notifications
You must be signed in to change notification settings - Fork 886
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
[AWSIoTDataManager publishString:onTopic:QoS:] crashes occasionally #4733
Comments
Thanks for reporting this @babac87 Please copy and paste the entire crash report in text form. Thanks! |
Hi @atierian, Thanks for the response. Here is one of crash reports. I've changed name of the app to "XYZ". Log:
|
Additional info (don't know if it helps): we send around 50kB of data every 4 seconds. |
Hey @babac87, I'm having trouble reproducing this. Have you been able reproduce the crash yourself? |
HI @atierian. Unfortunately, it still causes the app to crash.
|
Any news on this topic? |
Closing due to inactivity. Please reopen if this issue still happens. |
Describe the bug
We are using AWSIoTDataManager to send the user's location every n seconds while the app is both in the foreground and background. We saw a similar app crashing pattern when network conditions changed (switching from WiFi to LTE and vice versa, losing network connection in a tunnel, etc.). We tried to simulate it with "Network Link Conditioner", but with no luck.
In stack trace it looks like last method called from AWS's SDK is
-[AWSMQTTEncoder encodeWhenReady:]
, and after that, it crashes inSocketStream::write(__CFWriteStream*, unsigned char const*, long, CFStreamError*)
To Reproduce
As said above, it's a bit hard to reproduce. we saw a pattern when network conditions are changing.
Observed Behavior
Expected Behavior
Some potential solutions would be to:
func publishString(_ string: String, onTopic topic: String, qoS qos: AWSIoTMQTTQoS) throws -> Bool
Stack Trace
Provided in screenshot
Code Snippet
manager.publishString(string, onTopic: topic, qoS: .messageDeliveryAttemptedAtMostOnce)
Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)?
IoT specifically for this issue. We also use Cognito.
Screenshots
Environment(please complete the following information):
Device Information (please complete the following information):
Additional context
Add any other context about the problem here like your specific use case.
Relevant Console Output
Logs
The text was updated successfully, but these errors were encountered: