Bug fixes against v1.1.2, tested on Freenove ESP32-S3-WROOM (OV3660),
arduino-esp32 3.3.11. Details in FIXES_SUMMARY.md.
Crashes and hangs
- Stack overflow in CheckMicroSdCard (#145); stacks sized from measured
high-water marks, never below master; per-task stack report in telemetry
- NULL deref in /saved-photo.jpg; NULL guards on sensor and EXIF allocations
- OTA version check ran inside the async web handler (boot loop); now
deferred to the system task
- udp_new_ip_type assert: SNTP stopped after sync, OTA check waits for NTP
- Divide-by-zero on SD card removal
- Busy-wait response loops (PrusaConnect, OTA) starved IDLE0 -> task WDT
- setTimeout() takes seconds: 1000 meant ~16 min
Camera
- Frame buffer returned multiple times per stream teardown
- Reinit frees buffers under the frame-buffer lock
- Capture failure skipped the reinit recovery and left the flash on
- Retry loop leaked a driver buffer per short frame
- Two semaphore leaks in CaptureStream(); stream failure now detectable
- OV3660 lost settings written right after init
Concurrency
- Recursive mutexes for SD card, log rotation, EEPROM and WiFi state
- Task WDT subscribe race: each task subscribes itself
- TWDT already initialised by the core: reconfigure only
Other
- Freenove: XCLK drive strength lowered (harmonics desensed 2.4 GHz WiFi),
SD at 20 MHz (esp-idf#8521), DHT11 enabled on GPIO47
- Snapshots sent as image/jpeg (image/jpg was not shown in Prusa Connect)
- Second WiFi credential save failed ("sta is connecting")
- isCardCorrupted() misread an empty card as missing
- Log level checked before taking the log lock
- Timelapse: one folder per day, /timelapse/YYYY-MM-DD/YYYY-MM-DD_HH-MM-SS.jpg,
skipped until NTP sync (FAT directory scans grow with file count)
- Web server started after all subsystems
- README: core and library versions