Repository navigation
Crash with Task Watchdog when performing OTA update #108
Replies: 3 comments 7 replies
📝 CodeRabbit Plan ModeGenerate an implementation plan and prompts that you can use with your favorite coding agent.
|
|
Hi @dirkvranckaert , |
|
I ran into a similar problem, and I actually think there might be a small problem on the AsyncTCP side. I use the AsyncWebServer to access the filesystem. I implemented a handler and override handleRequest(AsyncWebServerRequest* req). There I serve the files like that. auto f = std::make_sharedstd::ifstream(path); I have a big file (6MB) in littlefs on the esp32p4. When I try to load it, the request fails / esp. crashes after exactly 5 seconds. And it crashes because the idle task did not reset the watchdog. I see potential for similar problems when uploading files to the esp. Edit: I use ethernet. I think the issue depends on the bandwith - if you have a bad connection the async_tcp task might wait |
Uh oh!
There was an error while loading. Please reload this page.
IDE / Tooling
Arduino (IDE/CLI)
What happened?
Am on the latest version of the repo and trying to install an OTA update. The result of the AyncTCP backend call gives me back the OTA url and then I start perfoming the OTA update.
However in a lot of scenarios I see this error coming by followed by a stacktrace and a reboot off course:
Lots of these devices are remote so I cannot debug, but some do get through (I guess with a lot of luck). But on my testing device here I see this issue all the time...
Stack Trace
10:43:37.717 -> ------------------------------------------
10:43:37.717 -> Software Info:
10:43:37.717 -> ------------------------------------------
10:43:37.717 -> Compile Date/Time : Feb 4 2026 10:40:55
10:43:37.717 -> Compile Host OS : macosx
10:43:37.717 -> ESP-IDF Version : v5.5.1-931-g9bb7aa84fe
10:43:37.717 -> Arduino Version : 3.3.5
10:43:37.717 -> ------------------------------------------
10:43:37.717 -> Board Info:
10:43:37.717 -> ------------------------------------------
10:43:37.749 -> Arduino Board : ESP32C6_DEV
10:43:37.749 -> Arduino Variant : esp32c6
10:43:37.749 -> Arduino FQBN : esp32:esp32:esp32c6:UploadSpeed=460800,CDCOnBoot=default,CPUFreq=160,FlashFreq=40,FlashMode=qio,FlashSize=8M,PartitionScheme=default_8MB,DebugLevel=debug,EraseFlash=none,JTAGAdapter=default,ZigbeeMode=default
10:43:37.749 -> ============ Before Setup End ============
10:43:38.067 -> [WiFi-event] (101) :WiFi interface ready
10:43:38.165 -> [WiFi-event] (110) :WiFi client started
10:43:38.165 -> Setting up RTC...
10:43:38.165 -> [ 634][I][esp32-hal-i2c-ng.c:112] i2cInit(): Initializing I2C Master: num=0 sda=6 scl=7 freq=100000
10:43:38.165 -> [ 648][W][Wire.cpp:300] begin(): Bus already started in Master Mode.
Minimal Reproductible Example (MRE)
Hard to post an MRE here since it requires different versions and OTA upgrade mechanism...
I confirm that:
All reactions