-
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
Crash on [AWSMQTTSession publishDataAtLeastOnce:onTopic:retain:onMessageIdResolved:] function #5436
Comments
Thanks for your crash report, one of our team members will do some investigation on this as soon as possible |
@vincetran that's newest screenshot when app crash: |
@09chen1998 Instead of screenshots, can you provide a full crash log that includes the crashing thread along with all of the other running threads? |
@phantumcode The complete crash log is the screenshot of the log I provided above. The latest screenshot I sent is not a crash in the production/test environment, so there is no complete log left. However, judging from the code execution sequence, it is caused by the same problem as the log under "Logs" I provided. |
@09chen1998 A complete crashlog would include the stack trace of the thread with the crash as well as all of the running threads at the time of the crash. Having a full crash log is helpful in determining crashes caused by threading issues. |
@phantumcode Here is the complete crash log.
|
Thanks for providing the details. We will investigate this further and get back to you. |
@phantumcode @harsh62 @vincetran Hello? May I ask who can give me some advice? |
@09chen1998 Unfortunately we haven't had to bandwidth to look into this specific issue yet. Once we do and have made some headway, we'll update the issue accordingly. |
@vincetran Okay, thank you for your reply. |
@09chen1998 sorry for the delay. Unfortunately you have still not provided a full symbolicated crashlog, as what you pasted doesn't have the information we need to fully diagnose the crash. You can get instructions on how to retrieve a full crashlog here: https://developer.apple.com/documentation/xcode/acquiring-crash-reports-and-diagnostic-logs. While it's possible that what you're experiencing is a race condition as you suggested and we'll work on that, we can't know for sure without the proper logs. There might be something else going on. |
In the meantime, I've pushed a fix for the potential race condition to the Would you be able to try it out and let us know if it addresses your issues? |
@ruisebas Sorry, the crash logs I provided earlier may not be complete enough. I have provided three new complete crash logs, of which 'JBELink-2024-09-03-175837. docx' and 'JBELink-2024-09-05-100828. docx' correspond to the complete versions of the crash logs I provided earlier, while 'JBELink-2024-09-25-172632. docx' corresponds to the screenshot I provided earlier with the text 'sometimes crash at here'; Both of these situations are occasional occurrences of crashes. |
At the same time, I will try using the fix/timerring_crash branch, which may take some time to verify its effectiveness. |
Happens also to me! |
A fix has been released in 2.38.1. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
Describe the bug
Our app occasionally crashes, some of which occur after calling subscribeToTopic, some after calling publishData, and some during other operations.
To Reproduce
Steps to reproduce the behavior:
There is no fixed reproducibility procedure, and crashes occur at irregular intervals.
Code Snippet
Please provide a snippet of the code causing the issue or how you are using the service that has the bug.
Unique Configuration
If you are reporting an issue with a unique configuration or where configuration can make a difference in code execution (i.e. Cognito) please provide your configuration. Please make sure to obfuscate sensitive information from the configuration before posting.
Areas of the SDK you are using (AWSMobileClient, Cognito, Pinpoint, IoT, etc)?
Screenshots
Environment(please complete the following information):
Device Information (please complete the following information):
Logs
Could it be caused by multiple threads accessing the same resource?
The text was updated successfully, but these errors were encountered: