NightDriverStrip
NightDriverStrip copied to clipboard
std::bad_alloc exception in Arduino OTA handler
Bug report
Problem The ESP32 repeatedly keeps on rebooting due to an unhandled exception (std::bad_alloc) I don't know why exactly, but with the BROOKLYNROOM config, it happens the most.
The issue seems to be related to the Arduino OTA handler, see the stack trace below src/main.cpp:674 relates to this line
Steps
- build the BROOKLYNROOM config
- run the monitor
- catch the stacktrace
Example
Notes Stack trace: ` (I) (TerminateHandler)(C1) ------------------------------------------------------------------------------------- (I) (TerminateHandler)(C1) - NightDriverStrip Guru Meditation Unhandled Exception - (I) (TerminateHandler)(C1) ------------------------------------------------------------------------------------- (I) (PrintOutputHeader)(C1) NightDriverStrip (I) (I) (PrintOutputHeader)(C1) ------------------------------------------------------------------------------------- (I) (PrintOutputHeader)(C1) M5STICKC: 0, USE_OLED: 1, USE_TFT: 0 (I) (PrintOutputHeader)(C1) Version 137: Wifi SSID: NETGEAR90 - ESP32 Free Memory: 68692, PSRAM:0, PSRAM Free: 0 (I) (PrintOutputHeader)(C1) ESP32 Clock Freq : 240 MHz (I) (TerminateHandler)(C1) Terminated due to exception: std::bad_alloc
ELF file SHA256: 0000000000000000
Backtrace: 0x4008c84c:0x3ffb1e20 0x4008cac9:0x3ffb1e40 0x400dd3c9:0x3ffb1e60 0x4017f3f7:0x3ffb1e90 0x4017f45e:0x3ffb1eb0 0x4017e89b:0x3ffb1ed0 0x4017ee4e:0x3ffb1ef0 0x4017ea05:0x3ffb1f10 0x400e58dd:0x3ffb1f30 0x4010144e:0x3ffb1f70 0x400dd455:0x3ffb1f90 0x40104254:0x3ffb1fb0 0x4008db1a:0x3ffb1fd0 #0 0x4008c84c:0x3ffb1e20 in invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715 #1 0x4008cac9:0x3ffb1e40 in abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c:715 #2 0x400dd3c9:0x3ffb1e60 in TerminateHandler() at src/main.cpp:404 #3 0x4017f3f7:0x3ffb1e90 in __cxxabiv1::__terminate(void ()()) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/eh_terminate.cc:112 #4 0x4017f45e:0x3ffb1eb0 in std::terminate() at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/eh_terminate.cc:112 #5 0x4017e89b:0x3ffb1ed0 in __cxa_throw at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/eh_throw.cc:87 #6 0x4017ee4e:0x3ffb1ef0 in operator new(unsigned int) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/new_op.cc:54 #7 0x4017ea05:0x3ffb1f10 in operator new[](unsigned int) at /builds/idf/crosstool-NG/.build/src/gcc-5.2.0/libstdc++-v3/libsupc++/new_opv.cc:32 #8 0x400e58dd:0x3ffb1f30 in WiFiUDP::parsePacket() at C:\Users\John Doe.platformio\packages\framework-arduinoespressif32\cores\esp32/Udp.h:46 #9 0x4010144e:0x3ffb1f70 in ArduinoOTAClass::handle() at C:\Users\John Doe.platformio\packages\framework-arduinoespressif32\libraries\ArduinoOTA\src/ArduinoOTA.cpp:100 #10 0x400dd455:0x3ffb1f90 in loop() at src/main.cpp:674 #11 0x40104254:0x3ffb1fb0 in loopTask(void) at C:\Users\John Doe.platformio\packages\framework-arduinoespressif32\cores\esp32/main.cpp:23 #12 0x4008db1a:0x3ffb1fd0 in vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c:355 (discriminator 1)
Rebooting... ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 188777542, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:2 load:0x3fff0018,len:4 load:0x3fff001c,len:1044 load:0x40078000,len:10124 load:0x40080400,len:5828 entry 0x400806a8 `
I was wondering if anyone has reported this upstream, as in to the ArduinoOTA project?
I was wondering if anyone has reported this upstream, as in to the ArduinoOTA project?
I have not. However, NightDriver uses this implementation: https://github.com/seanhagen/framework-arduinoespressif32 Which seems not really maintained
The "other" ArduinoOTA project is this one: https://github.com/jandrassy/ArduinoOTA Maybe it would be worth taking a look?
The "other" ArduinoOTA project is this one: https://github.com/jandrassy/ArduinoOTA Maybe it would be worth taking a look?
It sounds like it may well be. Obviously, it would require the involvement of at least someone with the hardware on which the issues at hand occur.
I was wondering if anyone has reported this upstream, as in to the ArduinoOTA project?
I have not. However, NightDriver uses this implementation: https://github.com/seanhagen/framework-arduinoespressif32 Which seems not really maintained
The "other" ArduinoOTA project is this one: https://github.com/jandrassy/ArduinoOTA Maybe it would be worth taking a look?
I don't think this is accurate. The platformio Espressif 32 platform comes with the espressif sponsored arduino-esp32 framework. (The latest platformio release still comes with arduino-esp32 framework v1.0.6) This framework comes with a built-in implementation of ArduinoOTA.
https://github.com/platformio/platform-espressif32/releases https://github.com/espressif/arduino-esp32/blob/1.0.6/libraries/ArduinoOTA/src/ArduinoOTA.h
I'm experimenting to see if this is fixed in the latest arduino-esp32 framework release 2.0.1. https://github.com/BeldrothTheGold/NightDriverStrip/tree/upstream-arduino
Updating to the latest arduino-esp32 framework release doesn't seem to resolve the OTA/WiFi crashing issue with BROOKLYNROOM. It seems related to high RAM usage. Once the available RAM gets below about 50k the project crashes intermittently with a bad_alloc exception.
[env:upstream_arduino]
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-upstream
board = m5stick-c
monitor_speed = 115200
build_flags = -DBROOKLYNROOM=1
-DM5STICKCPLUS=1
-DUSE_SCREEN=1
-std=gnu++17
-Ofast
lib_deps = ${m5stick-c-plus.lib_deps}
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1
I) (setup)(C1) Calling ConnectToWif(DrawLoopTaskEntry)(C1) >> DrawLoopTaskEntry
(I) i()
(I)
(I) (ConnectToWiFi)(C1) Setting host name to NightDriverStrip...
Pass 0 of 99: Connecting to Wifi SSID: <secret>- ESP32 Free Memory: 138464, PSRAM:0, PSRAM Free: 0
(I)
(E) (DrawLoopTaskEntry)(C1) Entry Heap: PASS
Connected to AP with BSSID: <secret>
(I) (ConnectToWiFi)(C1) Starting/restarting Socket Server...
(I) (ConnectToWiFi)(C1) Socket server started.
(I) (ConnectToWiFi)(C1) Publishing OTA...
(I) (ConnectToWiFi)(C1) Setting Clock...
(I) (UpdateClockFromWeb)(C1) Updating Clock From Web...
(I) (UpdateClockFromWeb)(C1) NTP clock: response received, time written to ESP32 rtc: 1638170967.975506, DELTA: 0.071894
(I)
(I) (ConnectToWiFi)(C1) Received IP: 10.11.12.181
(I) (setup)(C1) Initializing compression...
(I) (RemoteLoopEntry)(C1) >> RemE (13138) I2S: i2s_check_set_mclk(253): ESP32 only support to set GPIO0/GPIO1/GPIO3 as mclk signal, error GPIO number:-1515870811
E (13145) I2S: i2s_set_pin(314): mclk config failed
>>> Sampler Task S(I) (AudioSamplerTaskEntry)(C0) >>> Sampler Task Started
(I)
amplerTaskEntry)(C0) >>> Sampler Task Started
I)
I)
amplerTaskEntry)(C0) >>> Sampler Task Started
I)
(I)
(I) (AudioSamplerTaskEntry)(C0) Mem: 59256 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7226ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: RainbowFill Effect
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7214ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Sample Effect
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 28, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7225ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Sample Effect
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 30, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 29, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7218ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Palette Effect
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 30, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 38, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 38, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 38, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7212ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: DoublePaletteEffect Effect
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 38, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 38, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 38, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59548 LED FPS: 38, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7208ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Meteor Effect
(I) (AudioSamplerTaskEntry)(C0) Mem: 59512 LED FPS: 41, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59512 LED FPS: 41, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 59512 LED FPS: 41, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7211ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Magenta Twinkle Stars
(I) (AudioSamplerTaskEntry)(C0) Mem: 59512 LED FPS: 38, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 55032 LED FPS: 40, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 55860 LED FPS: 40, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 55860 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7208ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Blue Sparkle Stars
(I) (AudioSamplerTaskEntry)(C0) Mem: 54312 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 52208 LED FPS: 40, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 51612 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7200ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Red Twinkle Stars
(I) (AudioSamplerTaskEntry)(C0) Mem: 52128 LED FPS: 37, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 48992 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 48476 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 48476 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7203ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Lava Stars
(I) (AudioSamplerTaskEntry)(C0) Mem: 47364 LED FPS: 40, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 45816 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 43196 LED FPS: 40, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 43624 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7217ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Rainbow Twinkle Stars
(I) (AudioSamplerTaskEntry)(C0) Mem: 42076 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 41004 LED FPS: 39, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 41004 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7222ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Little Blooming Rainbow Stars
(I) (AudioSamplerTaskEntry)(C0) Mem: 41004 LED FPS: 38, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 38988 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 39972 LED FPS: 41, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 40464 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7200ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Big Blooming Rainbow Stars
(I) (AudioSamplerTaskEntry)(C0) Mem: 36488 LED FPS: 39, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 36488 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 37472 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (CheckEffectTimerExpired)(C1) 7224ms elapsed: Next Effect
(I) (CheckEffectTimerExpired)(C1) Current Effect: Neon Bars
(I) (AudioSamplerTaskEntry)(C0) Mem: 36980 LED FPS: 40, Audio FPS: 40, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (AudioSamplerTaskEntry)(C0) Mem: 36488 LED FPS: 40, Audio FPS: 41, gPeakVU: 0.00, gMinVU: 0.00, gVURatio: 0.0000, Peaks: 0.00, 0.00, 0.00, 0.00, 0.00
(I) (TerminateHandler)(C1) -------------------------------------------------------------------------------------
(I) (TerminateHandler)(C1) - NightDriverStrip Guru Meditation Unhandled Exception -
(I) (TerminateHandler)(C1) -------------------------------------------------------------------------------------
(I) (PrintOutputHeader)(C1) NightDriverStrip
(I)
(I) (PrintOutputHeader)(C1) -------------------------------------------------------------------------------------
(I) (PrintOutputHeader)(C1) M5STICKC: 0, USE_TFT: 1, USE_OLED: 0
(I) (PrintOutputHeader)(C1) Version 18: Wifi SSID: <secret>- ESP32 Free Memory: 36328, PSRAM:0, PSRAM Free: 0
(I) (PrintOutputHeader)(C1) ESP32 Clock Freq : 240 MHz
(I) (TerminateHandler)(C1) Terminated due to exception: std::bad_alloc
abort() was called at PC 0x400dd3b5 on core 1
Backtrace:0x40087715:0x3ffb26100x40091b2d:0x3ffb2630 0x40097095:0x3ffb2650 0x400dd3b5:0x3ffb26d0 0x4014ef7b:0x3ffb2700 0x4014efe2:0x3ffb2720 0x4014fd37:0x3ffb2740 0x4014f7fa:0x3ffb2760 0x4014fd91:0x3ffb2780 0x400e5297:0x3ffb27a0 0x400ee225:0x3ffb27e0 0x400dd45e:0x3ffb2800 0x400f1319:0x3ffb2820
#0 0x40087715:0x3ffb26100 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
On another note, I have been able to consistently upload the SPECTRUM project OTA without issue, even on 1.0.6.
try download the code again/ update your code from main, since is updated already. I had a random crash before as well.
Closing this as last issue update was over a year ago.