Skip to content
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

Open
09chen1998 opened this issue Sep 13, 2024 · 5 comments
Labels
bug Something isn't working closing soon iot Issues related to the IoT SDK pending-community-response Issue is pending response from the issue requestor

Comments

@09chen1998
Copy link

09chen1998 commented Sep 13, 2024

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
image

Environment(please complete the following information):

  • SDK Version: [2.37.0]
  • Dependency Manager: [Cocoapods]
  • Swift Version : [5.9.2]
  • Xcode Version: [15.2 ]

Device Information (please complete the following information):

  • Device: [iPhone8, iPhone13, iPhone13 pro max]
  • iOS Version: [IOS 16.5, IOS 17.5.1, IOS 17.6.1]

Logs
image

``` ```

Could it be caused by multiple threads accessing the same resource?

@github-actions github-actions bot added pending-triage Issue is pending triage pending-maintainer-response Issue is pending response from an Amplify team member labels Sep 13, 2024
@vincetran vincetran added the iot Issues related to the IoT SDK label Sep 16, 2024
@vincetran
Copy link
Member

Thanks for your crash report, one of our team members will do some investigation on this as soon as possible

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Sep 16, 2024
@vincetran vincetran added follow up Requires follow up from maintainers bug Something isn't working and removed pending-triage Issue is pending triage labels Sep 16, 2024
@09chen1998
Copy link
Author

09chen1998 commented Sep 20, 2024

@vincetran that's newest screenshot when app crash:
image

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Sep 20, 2024
@phantumcode
Copy link
Member

@09chen1998 Instead of screenshots, can you provide a full crash log that includes the crashing thread along with all of the other running threads?

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Sep 20, 2024
@09chen1998
Copy link
Author

@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.

@github-actions github-actions bot added the pending-maintainer-response Issue is pending response from an Amplify team member label Sep 23, 2024
@phantumcode
Copy link
Member

@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.

@github-actions github-actions bot removed the pending-maintainer-response Issue is pending response from an Amplify team member label Sep 23, 2024
@ruisebas ruisebas added pending-maintainer-response Issue is pending response from an Amplify team member pending-community-response Issue is pending response from the issue requestor closing soon and removed follow up Requires follow up from maintainers pending-maintainer-response Issue is pending response from an Amplify team member labels Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working closing soon iot Issues related to the IoT SDK pending-community-response Issue is pending response from the issue requestor
Projects
None yet
Development

No branches or pull requests

4 participants