Repository navigation
Closed
Labels
Description
What happened?
ESP32-S3 with PSRAM: Web UI fails to load when using more than 1 LED (1D effects), throwing a "TypeError: Cannot read properties of null (reading 'classList')". Multiple LED strips are lost again after a reboot.
To Reproduce Bug
;; TEST
[env:test]
extends = env:esp32S3_8MB_M
platform = ${esp32s3.platform}
platform_packages = ${esp32s3.platform_packages}
board = lolin_s3_mini ;; -S3 mini: 4MB flash 2MB PSRAM
board_build.partitions = ${esp32.extended_partitions} ;; 1.65MB firmware, 700KB filesystem
build_unflags = ${common.build_unflags}
-D WLED_ENABLE_HUB75MATRIX ;; board does not have enough pins for HUB75
;;-D USERMOD_ANIMARTRIX ;; not enough flash
build_flags = ${common.build_flags} ${esp32s3.build_flags} -Wno-misleading-indentation -Wno-format-truncation
${common_mm.build_flags_S} ${common_mm.build_flags_M}
-D WLED_RELEASE_NAME=esp32S3_4MB_PSRAM_M
-DBOARD_HAS_PSRAM ;; -D WLED_USE_PSRAM
-D WLED_USE_PSRAM_JSON -DALL_JSON_TO_PSRAM ; WLEDMM --> force all JSON stuff into PSRAM; gives more free heap
-DCONFIG_MBEDTLS_DYNAMIC_BUFFER=1 ;; optional - allows some buffers to use PSRAM
-DLOLIN_WIFI_FIX -DWLEDMM_WIFI_POWERON_HACK ;; seems to work much better with this
-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=0 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 ;; for Serial-to-USB chip
;;-DARDUINO_USB_MODE=1 -DARDUINO_USB_CDC_ON_BOOT=1 -DARDUINO_USB_MSC_ON_BOOT=0 -DARDUINO_USB_DFU_ON_BOOT=1 ;; for Hardware-CDC USB mode
-D WLED_DISABLE_ADALIGHT ;; disables serial protocols - recommended for Hardware-CDC USB (Serial RX will receive junk commands when RX pin is unconnected, unless its pulled down by resistor)
;; ${common_mm.animartrix_build_flags} ;; not enough flash
-D LEDPIN=48
-D BTNPIN=-1 -D RLYPIN=-1 -D IRPIN=-1 -D AUDIOPIN=-1
-D HW_PIN_SDA=12 -D HW_PIN_SCL=13
-D SR_DMTYPE=1 -D I2S_SDPIN=5 -D I2S_WSPIN=6 -D I2S_CKPIN=4 -D MCLK_PIN=7
;;-D WLED_DISABLE_LOXONE ; FLASH 1272 bytes - disabled to stay below 100%
;;-D WLED_DISABLE_HUESYNC ; RAM 122 bytes; FLASH 6308 bytes - disabled to stay below 100%
;;-D WLED_DISABLE_INFRARED ; RAM 136 bytes; FLASH 24492 bytes - disabled to stay below 100%
;; -D WLED_DISABLE_ALEXA ; RAM 116 bytes; FLASH 13524 bytes
;; -D WLED_DISABLE_MQTT ; RAM 216 bytes; FLASH 16496 bytes
;; -D WLEDMM_SAVE_FLASH
-D WLED_ENABLE_PIXART ;; 8KB Flash
-D WLED_ENABLE_PIXELFORGE ;; 12KB Flash
; -D WLED_DEBUG
; -D SR_DEBUG
; -D MIC_LOGGER
;; -D WLED_DISABLE_PARTICLESYSTEM1D ;; exceeds flash size limit
;; -D WLED_DISABLE_PARTICLESYSTEM2D ;; exceeds flash size limit
lib_deps = ${esp32s3.lib_deps} ${common_mm.lib_deps_S} ${common_mm.lib_deps_V4_M}
lib_ignore =
;; IRremoteESP8266 ; use with WLED_DISABLE_INFRARED for faster compilation
${common_mm.HUB75_lib_ignore}
${common_mm.DMXin_lib_ignore}
;; ${common_mm.animartrix_lib_ignore}
; RAM: [== ] 16.7% (used 54676 bytes from 327680 bytes)
; Flash: [======== ] 83.2% (used 1416997 bytes from 1703936 bytes)Expected Behavior
--
Install Method
From MoonModules Release Page
What version/release of MM WLED?
14.7.1
Which microcontroller/board are you seeing the problem on?
ESP32-S3
Relevant log/trace output
Anything else?
--
Code of Conduct
- I agree to follow this project's Code of Conduct
Activity
up2smoke commentedon May 25, 2026
TypeError: Cannot read properties of null (reading 'classList') at populateSegments ((Index):239:22566) at readState ((Index):239:42014) at (Index):239:46830up2smoke commentedon May 27, 2026
It appears that this bug persists in the latest versions as well, and specifically affects the ESP32-C3 and S3 models equipped with 4MB of PSRAM. For comparison: I encountered no issues on a standard ESP32. I was under the impression that the focus was supposed to be on the S- and C-series; how, then, is it possible that this bug has gone unnoticed—despite having been present for at least the last three releases?
softhack007 commentedon May 27, 2026
That's a good question. In fact I have never seen this before, and 90% of my boards are -S3 with PSRAM (1D or 2D effects).
softhack007 commentedon May 27, 2026
As this is a UI-only error (WLED-MM settings etc not affected), it might help if you clear browser caches & localstorage after updating to 14.7.1. MS Edge: press CTRL+F5, then reload the page.
up2smoke commentedon May 27, 2026
No No No.
Its on Android Phone, Android App and Laptop. Cache is also disabled in Developer Tools.
If I select the option in the LED settings to automatically add segments, the UI loads successfully; however, the LEDs still do not light up as soon as more than one LED is configured on the strip. A second strip, on the other hand, functions as intended, but its configuration is not saved after a reboot.
softhack007 commentedon May 27, 2026
That sounds more like a problem with the filesystem, or another hardware error, maybe a wrong flash mode (some cheap boards need
diomode and behave erratically with the standardqiomode).Please create a debug build (add
-DWLED_DEBUGto yourbuild_flags) and then upload the messages you see on serial monitor.Also please upload your
cfg.jsonandpresets.jsonhere, that will help me to reproduce the problem. You can directly download the two files by pointing your browser tohttp://wled-ip/edit.Btw, all web frontends (android app, laptop, phone) have a browser cache. I don't think you can really disable it permanently - this would create lots of problems everywhere. Any way, not my role to tell you what to do.
Edit: i've pulled out an S3 "supermini" for short test, and it worked for me without problems. There might be something in your configuration (or overall setup) that leads to the problems 🤔
up2smoke commentedon May 29, 2026
Shame on me—a pesky little error had crept in. I had defined
LED_maxas 1 inmyconfig.h, even though I only intended to set my WiFi credentials. Thanks for the inspiration!softhack007 commentedon May 29, 2026
@up2smoke not completely bad 😃 - a tiny value for MAX_LEDS is actually unexpected - i've added a sanity checks to catch the problem
b06d3c0