You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Random flickers after updating to 0.15.4 (8266 bit-bang driver) #5427
I have an esp8266 (nodemcu) with 350 WS281B on GPIO15. Powered by 10A 5V PSU. It's worked without issue for over 2~ years and I've updated it any time there's one available. Updating to 0.15.4 made it randomly flicker with no real cause, nothing else changed. I originally had it on GPIO2 and thought maybe there was a problem with this, so changed to GPIO15 and the issue persisted.
Downgraded to 0.15.3 and the random flickers are gone. I checked Home Assistant to see if the device was rebooting or going unavailable during these flickers but it wasn't.
To Reproduce Bug
Not sure. Power on device and allow it to run.
Expected Behavior
No flickers
Install Method
Binary from WLED.me
What version of WLED?
0.15.4
Which microcontroller/board are you seeing the problem on?
That is very strange as there was no change to code that touches anything regarding LED outputs on the ESP8266.
How often do you see the flickering and what does it look like?
What levelshifter are you using and how long and how tidy are the data wires?
That's definitely an odd way to state that the recent minor update made it more bloated and less efficient.
Everyone knows the esp8266 is a very capable board that can handle most usages (as it has for years) . Saying it's "insufficient hardware" is a lame excuse. If support is being dropped, the project should be forked for a new major version while the compatible version continues
like I said, there was no change to code that affects LED output and by insufficient hardware I did not mean the ESP8266.
I have done extensive investigation on flickering and only very few instances are related to software bugs, the vast majority is systems that are not built properly and are just at the brink of being unstable and the slightest change in timing (we are talking a handful of nanoseconds) can tip them over into the flickering side.
It is not something that can currently be solved.
I have around 150 LEDs so nothing major (I have another one that's not updated with over 600 LEDs).
There are multiple reports of this with this update, so this is definitely a regression from the previous version. Is there something I can check to see if it's pushing the resources?
We do get flicker reports on every update - even from 15.2 to 15.3 where absolutely nothing changed in code (it was just a re-release due to some complications) so like I said, setups that are just barely stable (wiring, shifter, supply etc. many factors play a role) can experience this from update to update. The fix is to either not update or fix your setup so it is stable.
I do have a long-term fix by writing our own LED driver library from scratch that will allow more fine-tuning but that is not something that will be finished and ready soon.
To eliminate it being related to your network, try turning off your WiFi router and see if the flicker is still there when you see the WLED-AP network present @coltography
You should also disable the polling of WLED in home assistant as it's known to cause issues
Could it be flash memory related @DedeHai whereby simply swapping from app0 to app1 is causing issues?
Could it be flash memory related @DedeHai whereby simply swapping from app0 to app1 is causing issues?
I would not rule that out entirely but it's grasping straws. There are only few things that are software related that can cause flashes and all of them are related to interrupt latency - most of these can not be reproduced as its highly depending on the setup, router used, traffic present etc.
Apart from the bitbang driver, the ESP8266 output drivers are DMA-based and use NPB's standard technique of full up-front conversion to the DMA format, and so should be immune to interrupts. The bitbang driver schedules interrupts around pixel boundaries, so while it might have to restart the output if interrupted, it guarantees no incorrect colors will be appear.
I suspect we are more likely dealing with a memory corruption issue writing something unexpected in to the pixel buffer -- my best guess is that the new build has a slightly different memory layout and changed what's been overwritten. We've had some evidence of heap corruption with 0.15 on 8266es for a while now; I've had that open issue in my queue for way too long now...
I'll take another stab at it with this version after I find out what's overwriting the DNS state on ESP32s. Maybe it's related. Non-fatal corruption is sometimes easier to trace...
@willmmiles heap corruption could certainly explain random things happening - did you ever ask a smart agent (i.e. claude opus 4.6 atm) to comb through the code and search for potential heap corruptions?
I haven't asked it to scan our codebase yet -- I'd had it looking at ESP-IDF while I still thought the bug was internal there, and it had some trouble given the size of the project. I can give it a go and see what it turns up.
I can definitely confirm that I've been able to reproduce visible flickers by sending scene requests via HA with 0.15.4. I don't have a full analysis yet.
I traced the flickers on my setup to a combination of things:
Applying the preset was incorrectly triggering the "geometry change" logic, which was clearing the LED buffer to black and starting a transition
This was exacerbated by the fact that HomeAssistant's polling of presets.json was synchronized with the 1-minute automation timer, so both of these fired at once. The web server load slowed down the rendering loop by quite a bit, causing an incorrect frame (either black itself, or partway through the transition) to be held on the display for a long period of time.
I'm not sure if this fits in here exactly, but I also noticed a very strange full brightness flickering issue on my single WS281x 125 LED string after updating from 0.14.2 to 0.15.4. Under ~40% brightness random LEDs would just go full bright constantly at the framerate which I set, until I turned it brighter. Neither the ESP32 nor ESP32_V4 firmware fixed these issues.
I'm using the IoTorero WLED controller available from AliExpress.
The fix? For some reason adding a fake 1st segment with 1 LED and a fake pin and then a second segment with the actual data needed fixed this issue completely for me.
However this was happening via the web interface for me, not HA specifically.
I can definitely confirm that I've been able to reproduce visible flickers by sending scene requests via HA with 0.15.4. I don't have a full analysis yet.
@DedeHai@willmmiles does the problem still exist with WLEDPixelbus? Would it be worth to attempt a fix in 16_x ?
Activity
DedeHai commentedon Mar 17, 2026
That is very strange as there was no change to code that touches anything regarding LED outputs on the ESP8266.
How often do you see the flickering and what does it look like?
What levelshifter are you using and how long and how tidy are the data wires?
kbickar commentedon Mar 17, 2026
I'm also seeing this issue. I don't have a level shifter, the controller is about 1 inch from the first LED, and it didn't happen before the update
DedeHai commentedon Mar 17, 2026
WLED can not compensate for insufficient hardware (yet) so your best option is to just stay on 0.15.3
kbickar commentedon Mar 17, 2026
That's definitely an odd way to state that the recent minor update made it more bloated and less efficient.
Everyone knows the esp8266 is a very capable board that can handle most usages (as it has for years) . Saying it's "insufficient hardware" is a lame excuse. If support is being dropped, the project should be forked for a new major version while the compatible version continues
DedeHai commentedon Mar 17, 2026
like I said, there was no change to code that affects LED output and by insufficient hardware I did not mean the ESP8266.
I have done extensive investigation on flickering and only very few instances are related to software bugs, the vast majority is systems that are not built properly and are just at the brink of being unstable and the slightest change in timing (we are talking a handful of nanoseconds) can tip them over into the flickering side.
It is not something that can currently be solved.
kbickar commentedon Mar 17, 2026
I have around 150 LEDs so nothing major (I have another one that's not updated with over 600 LEDs).
There are multiple reports of this with this update, so this is definitely a regression from the previous version. Is there something I can check to see if it's pushing the resources?
DedeHai commentedon Mar 17, 2026
We do get flicker reports on every update - even from 15.2 to 15.3 where absolutely nothing changed in code (it was just a re-release due to some complications) so like I said, setups that are just barely stable (wiring, shifter, supply etc. many factors play a role) can experience this from update to update. The fix is to either not update or fix your setup so it is stable.
I do have a long-term fix by writing our own LED driver library from scratch that will allow more fine-tuning but that is not something that will be finished and ready soon.
[-]Random flickers after updating to 0.15.4[/-][+]Random flickers after updating to 0.15.4 (8266 bit-bang driver)[/+]netmindz commentedon Mar 18, 2026
I can confirm that I've just double checked the release and there are no changes that relate to LED output, see for yourself at v0.15.3...v0.15.4
netmindz commentedon Mar 18, 2026
To eliminate it being related to your network, try turning off your WiFi router and see if the flicker is still there when you see the WLED-AP network present @coltography
You should also disable the polling of WLED in home assistant as it's known to cause issues
Could it be flash memory related @DedeHai whereby simply swapping from app0 to app1 is causing issues?
DedeHai commentedon Mar 18, 2026
I would not rule that out entirely but it's grasping straws. There are only few things that are software related that can cause flashes and all of them are related to interrupt latency - most of these can not be reproduced as its highly depending on the setup, router used, traffic present etc.
willmmiles commentedon Mar 19, 2026
Apart from the bitbang driver, the ESP8266 output drivers are DMA-based and use NPB's standard technique of full up-front conversion to the DMA format, and so should be immune to interrupts. The bitbang driver schedules interrupts around pixel boundaries, so while it might have to restart the output if interrupted, it guarantees no incorrect colors will be appear.
I suspect we are more likely dealing with a memory corruption issue writing something unexpected in to the pixel buffer -- my best guess is that the new build has a slightly different memory layout and changed what's been overwritten. We've had some evidence of heap corruption with 0.15 on 8266es for a while now; I've had that open issue in my queue for way too long now...
I'll take another stab at it with this version after I find out what's overwriting the DNS state on ESP32s. Maybe it's related. Non-fatal corruption is sometimes easier to trace...
DedeHai commentedon Mar 19, 2026
@willmmiles heap corruption could certainly explain random things happening - did you ever ask a smart agent (i.e. claude opus 4.6 atm) to comb through the code and search for potential heap corruptions?
willmmiles commentedon Mar 19, 2026
I haven't asked it to scan our codebase yet -- I'd had it looking at ESP-IDF while I still thought the bug was internal there, and it had some trouble given the size of the project. I can give it a go and see what it turns up.
33 remaining items
willmmiles commentedon Apr 2, 2026
I can definitely confirm that I've been able to reproduce visible flickers by sending scene requests via HA with 0.15.4. I don't have a full analysis yet.
willmmiles commentedon Apr 3, 2026
I traced the flickers on my setup to a combination of things:
presets.jsonwas synchronized with the 1-minute automation timer, so both of these fired at once. The web server load slowed down the rendering loop by quite a bit, causing an incorrect frame (either black itself, or partway through the transition) to be held on the display for a long period of time.I've opened a PR that seems to solve it on my test setup by correcting the geometry change detection. PR builds are here if you want to give them a try: https://github.com/wled/WLED/actions/runs/23952601050?pr=5474
prevent _usedSegmentData Counter Underflow During Mode Blending
EpicLPer commentedon May 1, 2026
I'm not sure if this fits in here exactly, but I also noticed a very strange full brightness flickering issue on my single WS281x 125 LED string after updating from 0.14.2 to 0.15.4. Under ~40% brightness random LEDs would just go full bright constantly at the framerate which I set, until I turned it brighter. Neither the ESP32 nor ESP32_V4 firmware fixed these issues.
I'm using the IoTorero WLED controller available from AliExpress.
The fix? For some reason adding a fake 1st segment with 1 LED and a fake pin and then a second segment with the actual data needed fixed this issue completely for me.
However this was happening via the web interface for me, not HA specifically.
DedeHai commentedon May 1, 2026
@EpicLPer as the title sais, this issue is with 8266 and bit bang driver, not esp32
prevent _usedSegmentData Counter Underflow During Mode Blending
softhack007 commentedon Dec 1, 2026
@DedeHai @willmmiles does the problem still exist with WLEDPixelbus? Would it be worth to attempt a fix in
16_x?DedeHai commentedon Dec 1, 2026
it cannot be fixed in 16_x as it is quite random. And yes, this is fixed with WLEDpixelbus, closing. Feel free to reopen if there are any new insights