Skip to content

Random flickers after updating to 0.15.4 (8266 bit-bang driver) #5427

Done

Description

@coltography

What happened?

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?

ESP8266

Relevant log/trace output

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. DedeHai commented on Mar 17, 2026

    @DedeHai
    Collaborator

    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?

  2. kbickar commented on Mar 17, 2026

    @kbickar

    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

  3. DedeHai commented on Mar 17, 2026

    @DedeHai
    Collaborator

    WLED can not compensate for insufficient hardware (yet) so your best option is to just stay on 0.15.3

  4. kbickar commented on Mar 17, 2026

    @kbickar

    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

  5. DedeHai commented on Mar 17, 2026

    @DedeHai
    Collaborator

    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.

  6. kbickar commented on Mar 17, 2026

    @kbickar

    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?

  7. DedeHai commented on Mar 17, 2026

    @DedeHai
    Collaborator

    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.

  8. changed the title [-]Random flickers after updating to 0.15.4[/-] [+]Random flickers after updating to 0.15.4 (8266 bit-bang driver)[/+] on Mar 17, 2026
  9. netmindz commented on Mar 18, 2026

    @netmindz
    Member

    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

  10. netmindz commented on Mar 18, 2026

    @netmindz
    Member

    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?

  11. DedeHai commented on Mar 18, 2026

    @DedeHai
    Collaborator

    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.

  12. willmmiles commented on Mar 19, 2026

    @willmmiles
    Member

    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...

  13. DedeHai commented on Mar 19, 2026

    @DedeHai
    Collaborator

    @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?

  14. willmmiles commented on Mar 19, 2026

    @willmmiles
    Member

    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.

  15. 33 remaining items

  16. added
    confirmed
    and removed
    needs investigation
    on Apr 2, 2026
  17. willmmiles commented on Apr 2, 2026

    @willmmiles
    Member

    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.

  18. willmmiles commented on Apr 3, 2026

    @willmmiles
    Member

    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'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

  19. linked a pull request that will close this issueClean up setGeometry (for 0.15.x only) #5474on Apr 9, 2026
  20. EpicLPer commented on May 1, 2026

    @EpicLPer

    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.

  21. DedeHai commented on May 1, 2026

    @DedeHai
    Collaborator

    @EpicLPer as the title sais, this issue is with 8266 and bit bang driver, not esp32

  22. softhack007 commented on Dec 1, 2026

    @softhack007
    Member

    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 ?

  23. DedeHai commented on Dec 1, 2026

    @DedeHai
    Collaborator

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedwontfix

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions