WLED 16.0.1 on ESP32 – "Error 8: Effect RAM depleted", effect falls back to solid white after 15 min–2 hrs

Problem
Between 15 minutes and 2 hours after the preset is applied, the effect stops and the whole strip goes to Solid in the primary color (white). The web UI shows “Error 8: Effect RAM depleted.” Sometimes the preset ID is also cleared; sometimes the preset name stays but the effect shows as Solid.

Hardware

  • QuinLED Dig-Quad V3 (pre-assembled) with QuinLED-ESP32 module (WROOM-32E, 4 MB flash, no PSRAM)
  • 254 individual SK6812 RGBW LEDs, 12V, one output on GPIO 16, one segment
  • These are Gemstone permanent Christmas lights so some of the settings were guess and check.
  • Auto brightness limiter on, 7000 mA max

Firmware

  • WLED 16.0.1 (build 2606300), ESP32 release, updated via the built-in updater

Setup

  • Controlled from Home Assistant (WLED integration). HA applies one preset at sunset and turns it off at 10 PM.
  • The preset uses the Lightning effect with a white primary color, brightness 128.
  • Disabled: IR, Alexa emulation, MQTT, sync receive, UDP realtime/E1.31. Hue polling is off. Default transition is 700 ms.

What I’ve checked

  • The controller does not reboot (uptime unchanged).
  • Free heap was about 81 KB at one failure and about 125 KB at another, so it doesn’t look like overall heap is running out.
  • A second Dig-Quad on the same firmware driving only 4 LEDs with a 24V PSU has never shown the problem.
  • LED memory usage in LED Preferences shows 4064 / 87040 B.

Questions

  1. Is this a known issue in 16.0.1, and is there a setting or a different build that avoids it?
  2. Any other ways to stop the OOM errors?

if you are not changing presets (and not palette or FX) something wifi related eats up your RAM. We have found memory leaks in libraries in the past so can not rule out that there are still bugs.

IIRC something related to ESPNow caused one of them, another was in NTP time sync. I fixed both of those, the ESPNow fix was merged after the 16.0.1 release so that could be it. Disable ESPNow and see if that improves things.

What is happening is that RAM is depleted or highly fragmented and causes a heap panic which resets the segments to prevent a crash.

80k or 125k of free heap should not cause any OOM conditions. And you can’t fragment enough such heap to the point OOM would be warranted in a timeframe pointed by OP.

Regarding 2nd question from OP: Get a debug build and monitor serial output (possibly JSON would suffice) to see detailed heap condition.

Regarding 1st question from OP: Try setting transition time to 0. This will prevent WLED from creating temporary segment copies, reducing possible heap fragmentation.

However, error 8 points out to the deallocateData() misbehaving, not OOM condition.