-
Notifications
You must be signed in to change notification settings - Fork 885
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
Crash on AWSMqtt iot session when low data mode or change network from LTE to Wifi AWSMqtt iot session #2016
Comments
Additional Log. Date/Time: 2019-10-25 15:25:24.2186 +0530 Exception Type: EXC_CRASH (SIGKILL) |
Hi @jeky1990 , So sorry about the delay. We have made some stability improvements to the IoT codebase as of AWS SDK 2.16.0. Would you happen to know if this crash is still happening with a later version of the AWS SDK? Based on your stack trace, it looks like you guys are sending a QoS1 message out every second, while the app is in the background while connected to a "very bad network". Is this correct? If so, how repeatable is this issue? |
Describe the bug Environment(please complete the following information): SDK Version: [e.g. 2.19.1] Device Information (please complete the following information): Additional context com.apple.main-thread com.apple.main-thread |
@wooj2 same issue with the latest SDK also... check this crash report. Crash Report
|
These appear to be related, but subtly different, issues There first one with The second stack void
_dispatch_semaphore_dispose(dispatch_object_t dou,
DISPATCH_UNUSED bool *allow_free)
{
dispatch_semaphore_t dsema = dou._dsema;
if (dsema->dsema_value < dsema->dsema_orig) { /* <--- crash happens here in libdispatch */
DISPATCH_CLIENT_CRASH(dsema->dsema_orig - dsema->dsema_value,
"Semaphore object deallocated while in use");
}
_dispatch_sema4_dispose(&dsema->dsema_sema, _DSEMA4_POLICY_FIFO);
}
The watchdog termination could be related to the semaphore issue noted above. The libdispatch crash is actionable, so we'll look to address that first and see if it fixes the Watchdog termination. |
The PR below is meant to eliminate this problem. |
Describe the bug
I publish data on the topic at every one-second continuously when an app is in the foreground or in the background. when I go to a low network area suddenly app crashes.
To Reproduce
Steps to reproduce the behavior:
Which AWS service(s) are affected?
AWS IOT
Expected behavior
App will never crash on low data network mode.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment(please complete the following information):
Device Information (please complete the following information):
On devise all ios devises and Version is ios 13.1.3
Additional context
Crash log
The text was updated successfully, but these errors were encountered: