Closed 0x6c23 closed 2 years ago
ApiHandle is the library lifecycle object. If it goes out of scope (like it appears to here), you will likely have crashes.
As bretambrose mentioned if ApiHandle goes out of scope, if you try to do anything after that it will crash. Near the bottom of the example you can see the use of promises to wait until it is done sending and receiving messages. Can you try adding this to your code and see if that resolves your crashes?
Greetings! It looks like this issue hasn’t been active in longer than a week. We encourage you to check if this is still an issue in the latest release. Because it has been longer than a week since the last update on this, and in the absence of more information, we will be closing this issue soon. If you find that this is still a problem, please feel free to provide a comment or add an upvote to prevent automatic closure, or if the issue is already closed, please feel free to open a new one.
Confirm by changing [ ] to [x] below:
Known Issue
<prefix>-ats.iot.<region>.amazonaws.com
Platform/OS/Device What are you running the sdk on? Windows 10
Describe the question
I am basically running the basic pub sub sample:
Random crashes happen always after 5-10 minutes. The stack is always the same:
Logs before the crash: