-
Notifications
You must be signed in to change notification settings - Fork 53
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
[BUG] Random LoadProhibited when publishing command callback #50
Comments
Thank you for reporting this problem. We will look into this problem and discuss with you here. |
@law-ko
|
Your esp-idf version:
We have adjusted the code into our app that work with AWS IoT with |
The exception you shared indicates a LoadProhibited exception in the tasks.c. From the tasks.c in v5.0.1, the BaseType_t xTaskGenericNotify( TaskHandle_t xTaskToNotify,
UBaseType_t uxIndexToNotify,
uint32_t ulValue,
eNotifyAction eAction,
uint32_t * pulPreviousNotificationValue )
{
...
ucOriginalNotifyState = pxTCB->ucNotifyState[ uxIndexToNotify ]; /* This line has LoadProhibited exception. */
static void prvPublishToTopic( MQTTQoS_t xQoS,
char * pcTopicName,
char * pcPayload )
{
...
MQTTAgentCommandInfo_t xCommandParams = { 0 };
...
xCommandContext.ulNotificationValue = ulPublishMessageId;
xCommandContext.xTaskToNotify = xTaskGetCurrentTaskHandle();
xCommandParams.blockTimeMs = subpubunsubconfigMAX_COMMAND_SEND_BLOCK_TIME_MS;
xCommandParams.cmdCompleteCallback = prvPublishCommandCallback;
xCommandParams.pCmdCompleteCallbackContext = &xCommandContext; Base on these information, we can troubleshoot the following possible causes:
We also suggest you to run the sub_pub_unsub_demo only on your platform to see if this problem can be reproduced and feedback the result. This can help us to narrow down the problem. |
@chinglee-iot Would it be possible that this crash is related to the |
@law-ko
Could you help to provide the |
Closing this issue due to inactivity. Feel free to re-open the issue if it persists. |
The crash will occur after around 20000000 ticks, and happens when trying to send a new publish to AWS IoT. The program is set to publish to AWS IoT every 30 seconds.
The error occurs when performing
xTaskNotify
, which is coming from the example function provided in this repo.System information
Expected behavior
A clear description of the expected behavior.
Screenshots or console output
Thank you.
The text was updated successfully, but these errors were encountered: