Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This improves (but still doesn't fix) the esp crashing during the upload process. It appears like the esp_http_client_read() function is causing a watchdog reset while waiting for something. Maybe due to not handling unexpected connection close? The connection reliability may be a factor. ``` [D][nspanel_lovelace_upload:142]: Uploaded 42.20%, remaining 4741340 bytes, free heap: 35812 (DRAM) + 0 (PSRAM) bytes [D][nspanel_lovelace_upload:039]: HTTP_EVENT_ON_DATA, len=96 [D][nspanel_lovelace_upload:039]: HTTP_EVENT_ON_DATA, len=512 [D][nspanel_lovelace_upload:039]: HTTP_EVENT_ON_DATA, len=512 [D][nspanel_lovelace_upload:039]: HTTP_EVENT_ON_DATA, len=416 E (138838) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time: E (138838) task_wdt: - loopTask (CPU 1) E (138838) task_wdt: Tasks currently running: E (138838) task_wdt: CPU 0: IDLE0 E (138838) task_wdt: CPU 1: IDLE1 E (138838) task_wdt: Aborting. abort() was called at PC 0x40105c20 on core 0 Backtrace: 0x40082b4d:0x3ffb0870 0x4008e4c9:0x3ffb0890 0x400947b5:0x3ffb08b0 0x40105c20:0x3ffb0920 0x400834f5:0x3ffb0940 0x401858fb:0x3ffcbeb0 0x401063bd:0x3ffcbed0 0x4008f954:0x3ffcbef0 WARNING Found stack trace! Trying to decode it WARNING Decoded 0x40082b4d: panic_abort at D:/.platformio/packages/framework-espidf@3.40407.240606/components/esp_system/panic.c:408 WARNING Decoded 0x4008e4c9: esp_system_abort at D:/.platformio/packages/framework-espidf@3.40407.240606/components/esp_system/esp_system.c:137 WARNING Decoded 0x400947b5: abort at D:\.platformio\packages\framework-espidf@3.40407.240606\components\newlib/abort.c:46 WARNING Decoded 0x40105c20: task_wdt_isr at D:/.platformio/packages/framework-espidf@3.40407.240606/components/esp_system/task_wdt.c:176 (discriminator 3) WARNING Decoded 0x400834f5: _xt_lowint1 at D:\.platformio\packages\framework-espidf@3.40407.240606\components\freertos\port\xtensa/xtensa_vectors.S:1118 WARNING Decoded 0x401858fb: cpu_ll_waiti at D:\.platformio\packages\framework-espidf@3.40407.240606\components\hal\esp32\include/hal/cpu_ll.h:183 (inlined by) esp_pm_impl_waiti at D:\.platformio\packages\framework-espidf@3.40407.240606\components\esp_pm/pm_impl.c:853 WARNING Decoded 0x401063bd: esp_vApplicationIdleHook at D:/.platformio/packages/framework-espidf@3.40407.240606/components/esp_system/freertos_hooks.c:63 WARNING Decoded 0x4008f954: prvIdleTask at D:\.platformio\packages\framework-espidf@3.40407.240606\components\freertos/tasks.c:4099 ```
- Loading branch information