WLED/wled00
Frank 188956a4af bugfix for random crash when switching between presets
this is a band-aid fix for random crashes when switching between presets with multiple segments - crossfade disabled.

!! adding type initializers fixed it for me on -S3, however I still see (less frequent) crashes on esp32, due to heap corruption.

It took me hours to get a meaningful stackdump:

assert failed: heap_caps_free heap_caps.c:360 (heap != NULL && "free() target pointer is outside heap areas")

Backtrace: 0x40084ee1:0x3ffb2570 0x4008e341:0x3ffb2590 0x40094709:0x3ffb25b0 0x4008534a:0x3ffb26e0 0x40094739:0x3ffb2700 0x400e9037:0x3ffb2720 0x400e917c:0x3ffb2740 0x400eaeeb:0x3ffb2760 0x40117ec5:0x3ffb27c0 0x401184ea:0x3ffb2800 0x4013509d:0x3ffb2820

  #0  0x40084ee1:0x3ffb2570 in panic_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/panic.c:402
  #1  0x4008e341:0x3ffb2590 in esp_system_abort at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/esp_system/esp_system.c:128
  #2  0x40094709:0x3ffb25b0 in __assert_func at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/assert.c:85
  #3  0x4008534a:0x3ffb26e0 in heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:360
      (inlined by) heap_caps_free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/heap/heap_caps.c:345
  #4  0x40094739:0x3ffb2700 in free at /Users/ficeto/Desktop/ESP32/ESP32S2/esp-idf-public/components/newlib/heap.c:39
  #5  0x400e9037:0x3ffb2720 in Segment::deallocateData() at wled00/FX_fcn.cpp:189
  #6  0x400e917c:0x3ffb2740 in Segment::resetIfRequired() at wled00/FX_fcn.cpp:206
      (inlined by) Segment::resetIfRequired() at wled00/FX_fcn.cpp:203
  #7  0x400eaeeb:0x3ffb2760 in WS2812FX::service() at wled00/FX_fcn.cpp:1216 (discriminator 2)
  #8  0x40117ec5:0x3ffb27c0 in WLED::loop() at wled00/wled.cpp:115 (discriminator 3)
  #9  0x401184ea:0x3ffb2800 in loop() at C:/src/wled00/wled00.ino:20
  #10 0x4013509d:0x3ffb2820 in loopTask(void*) at C:/Users/user/.platformio/packages/framework-arduinoespressif32/cores/esp32/main.cpp:50

ELF file SHA256: 18c20b536f4c6ef4
2023-09-08 12:06:23 +02:00
..
data rename 'Current local time' -> 'Time' 2023-08-30 20:57:54 +02:00
src Fix errors in DDP implementation (#3193) 2023-05-26 14:58:40 +02:00
alexa.cpp Changes for allowing Alexa to change light color to White when auto-calculating from RGB (#3211) 2023-05-31 20:12:17 +02:00
bus_manager.cpp Merge branch 'main' into fx-blending 2023-08-25 18:34:56 +02:00
bus_manager.h Always repaint NPB buffer on brightness change 2023-07-19 17:25:25 +02:00
bus_wrapper.h Restore brightness immediately after show() 2023-07-19 16:22:34 +02:00
button.cpp potentiometer: check that pin supports ananlogread 2023-09-07 18:55:13 +02:00
cfg.cpp Add compile time MQTT override (#3354) 2023-09-02 01:05:45 +02:00
colors.cpp Pin dropdowns POC. 2023-06-10 20:43:27 +02:00
const.h Add Internal Temperature usermod (#3246) 2023-09-01 19:43:21 +02:00
dmx.cpp whitespace cleanup 2023-01-06 09:24:29 +01:00
e131.cpp Bugfix in DDP handling. 2023-06-04 17:55:29 +02:00
fcn_declare.h Add WiFi network scan RPC command to Improv Serial (#3271) 2023-06-27 01:51:44 +02:00
file.cpp use size_t as file index type (might prevent corruption) 2023-05-09 17:44:26 +02:00
FX_2Dfcn.cpp Add optional compile flag 2023-09-02 20:20:51 +02:00
FX_fcn.cpp bugfix for random crash when switching between presets 2023-09-08 12:06:23 +02:00
FX.cpp optional ball trails (rolling balls) 2023-09-05 19:11:44 +02:00
FX.h bugfix for random crash when switching between presets 2023-09-08 12:06:23 +02:00
html_cpal.h Revert "recreate web ui files" 2023-08-30 20:43:22 +02:00
html_other.h Revert "recreate web ui files" 2023-08-30 20:43:22 +02:00
html_pixart.h Revert "recreate web ui files" 2023-08-30 20:43:22 +02:00
html_pxmagic.h Revert "recreate web ui files" 2023-08-30 20:43:22 +02:00
html_settings.h Revert "recreate web ui files" 2023-08-30 20:43:22 +02:00
html_simple.h recreate html_ui.h & html_simple.h 2023-08-30 20:58:32 +02:00
html_ui.h recreate html_ui.h & html_simple.h 2023-08-30 20:58:32 +02:00
hue.cpp whitespace cleanup 2023-01-06 09:24:29 +01:00
improv.cpp Release of WLED beta 0.14.0-b4 2023-08-11 23:11:08 +02:00
ir_codes.h whitespace cleanup 2023-01-06 09:24:29 +01:00
ir.cpp Support for ESP-NOW Wireless Remote Control (#3237) 2023-06-22 10:06:19 +02:00
json.cpp Merge branch 'fx-blending' 2023-09-05 18:37:55 +02:00
led.cpp Merge branch 'main' into fx-blending 2023-08-28 17:59:02 +02:00
lx_parser.cpp Beta-3 changes 2023-05-30 19:36:14 +02:00
mqtt.cpp Update comments. 2023-05-30 16:09:51 +02:00
my_config_sample.h Use constant for mDNS name to allow setting from my_config.h (#3145) 2023-05-31 17:35:43 +02:00
net_debug.cpp Bugfix. 2023-02-08 10:18:41 +01:00
net_debug.h Compile fix for net_debug 2023-02-04 23:59:28 +01:00
network.cpp Feature implementation 2023-05-28 22:50:19 +02:00
NodeStruct.h Add ability to toggle devices from nodes view. 2023-07-13 22:21:15 +02:00
ntp.cpp removing DLS for CST_TimeZone_GMT-6 (#3082) 2023-02-21 17:09:04 +01:00
overlay.cpp Float vs. double. 2023-03-19 11:24:59 +01:00
palettes.h Update palettes.h 2023-05-02 21:52:39 +01:00
pin_manager.cpp two more "shadowed locals" 2023-04-14 13:09:25 +02:00
pin_manager.h whitespace cleanup 2023-01-06 09:24:29 +01:00
playlist.cpp Playlist saving bugfix. 2023-08-16 22:11:16 +02:00
presets.cpp Removed current cycle assignment that clears current value (#3262) 2023-06-30 15:03:32 +02:00
remote.cpp esp-now remote: fix crash with AP = Always 2023-08-01 11:53:32 +02:00
set.cpp fix small typo in MQTT override code 2023-09-05 17:15:12 +02:00
udp.cpp Add ability to toggle devices from nodes view. 2023-07-13 22:21:15 +02:00
um_manager.cpp Usermod enhancements 2023-02-05 12:23:05 +01:00
usermod_v2_empty.h whitespace cleanup 2023-01-06 09:24:29 +01:00
usermod.cpp whitespace cleanup 2023-01-06 09:24:29 +01:00
usermods_list.cpp Add Internal Temperature usermod (#3246) 2023-09-01 19:43:21 +02:00
util.cpp Merge branch 'main' into fx-blending 2023-08-28 17:59:02 +02:00
wled00.ino Fix DMX compilation 2020-04-10 12:30:08 +02:00
wled_eeprom.cpp Remove Blynk support (#3102) 2023-02-21 17:07:32 +01:00
wled_ethernet.h Add ESP32-ETHERNET-KIT-VE type 2022-03-20 22:12:18 +01:00
wled_math.cpp whitespace cleanup 2023-01-06 09:24:29 +01:00
wled_serial.cpp workaround for issue #3128 2023-03-16 13:08:34 +01:00
wled_server.cpp Missing WS connection fallback for liveview (#3267) 2023-06-27 01:51:24 +02:00
wled.cpp Bugfix. 2023-08-28 17:58:30 +02:00
wled.h bump to build 2309050 2023-09-05 19:15:22 +02:00
ws.cpp Correct scaling for peek. 2023-07-06 22:48:13 +02:00
xml.cpp Add compile time MQTT override (#3354) 2023-09-02 01:05:45 +02:00