-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Random error wdt timeout (IDFGH-9042) #10448
Comments
@cosmoiler Thanks for the issue report. However, I'm afraid the information is not enough to sufficiently analyze the problem. Hence, we have a few more questions: Do you have a minimal reproducing code example? What is the configuration you are using (sdkconfig)? Could you enable stack overflow protection in menuconfig, in particular the watchpoint ( |
Changed CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK to "y" - the crashes did not stop. Periodic error in a random place of the code. Previously, the code worked (on esp-idf version 4.3). There were no global architecture changes except for the addition of an intermediary (class Mediator). There were no changes in the code regarding working with FreeRTOS. Now sometimes the code also works fine, but more often it crashes. sdkconfig
New Log:
Codemain.cpp
tskMain.cpp
init.cpp
cnfgOdometer.cpp
objSensor.cpp
frt.hpp
|
How is the signal strength? We had similar and rare WDT timeouts on very very poor WiFi connections in random parts of the IDF. We were not yet able to create a minimum code example. |
If you are sure it was good in older versions, you can run "git bisect" on v4.4 branch to find the first bad commit. |
Thanks for the reproducing code. We'll take a closer look. Meanwhile, you can also follow @AxelLin's suggestion. |
@0xjakob |
@cosmoiler Did you have a change to try your code on v5.0 or above and did the issue persist there? |
@HDLA-BG Thanks for letting us know. Would you be able to provide us with the complete code for a reproducer? The aforementioned code is missing several header files, so we can't even build it. Ideally, a zip file of the minimal reproducing example application, including sdkconfig and excluding the build folder, would be great. |
@0xjakob Sorry I commented a wrong issue. |
@cosmoiler Any update on the issue? |
Hi @cosmoiler I will go ahead and close this issue since there hasnt been any updates for long time. |
Answers checklist.
IDF version.
v4.4.3
Operating System used.
Windows
How did you build your project?
Command line with idf.py
If you are using Windows, please specify command line type.
CMD
Development Kit.
Custom Board
Power Supply used.
USB
What is the expected behavior?
Code execution without failures
What is the actual behavior?
The program periodically crashes with the wdt timeout error in a random place in the code. The code contains several FreeRTOS tasks. Very rarely there are no failures.
Steps to reproduce.
The error manifests itself during the execution of FreeRTOS tasks, and in a random place, but after starting a certain task.
Code for debug log #2:
bool DRVLed::run() { Task::wait(); if (m_ptrState) m_ptrState->handle(); return true; }
frt::Task<DRVLed, 2048u>::wait() :
void wait() { ulTaskNotifyTake(pdTRUE, portMAX_DELAY); }
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: