Skip to content

[16.0 only] Cpu freeze when restarting/toggling esp-now after peer list populated #5871

Done

Description

@drmaus83

What happened?

Cpu freezes when toggling esp-now off and sending a new change to leds.

To Reproduce Bug

  1. start with esp-now on
  2. send a change
  3. turn esp-now off
  4. turn esp-now on (no reboot)
  5. send change (Cpu freeze here)

Expected Behavior

expect esp-now to be toggled off and on freely and not have the cpu freeze when sending change commands if peer list was populated previously

Install Method

Self-Compiled

What version of WLED?

WLED 16.0.1

Which microcontroller/board are you seeing the problem on?

ESP32-S3

Relevant log/trace output

Anything else?

@blazoncek I believe pulling this commit from upstream gmag11/QuickESPNow into blazoncek/QuickESPNow would resolve the issue.

gmag11/QuickESPNow@9072635

Code of Conduct

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

Activity

  1. DedeHai commented on Sep 27, 2026

    @DedeHai
    Collaborator

    is this still happening using latest main code?

    edit: it is a known issue, I wrote a new, slimmed down ESPnow library which may no longer have this issue.

  2. drmaus83 commented on Sep 27, 2026

    @drmaus83
    Author

    @DedeHai not sure but i know that this is a super easy fix the problem is that the blazoncek/QuickESPNow library is just outdated. i went to that repo but there wasnt any way to post issues and the maintainer happens to be here as well @blazoncek

    Edit:
    but now i see that the current main uses its own library still would be nice if blaz could update because my custom wled build depends on their QuickESPNow

    i can give it a test later if i get some time

  3. blazoncek commented on Sep 27, 2026

    @blazoncek
    Contributor

    Done

  4. softhack007 commented on Sep 28, 2026

    @softhack007
    Member

    @blazoncek thanks, maybe check if you also want to add gmag11/QuickESPNow#25 in your fork. It solves a problem where repeated AP/STA mode switching leads to RAM exhaustion, especially when no Wi-Fi router is availeable. We've seen this in #5614.

  5. blazoncek commented on Sep 28, 2026

    @blazoncek
    Contributor

    @softhack007 already done.

  6. changed the title [-]Cpu freeze when restarting/toggling esp-now after peer list populated[/-] [+][16.0 only] Cpu freeze when restarting/toggling esp-now after peer list populated[/+] on Sep 28, 2026
  7. softhack007 commented on Dec 2, 2026

    @softhack007
    Member

    solved in 16.1 (dependency updated).

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions