Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No controller connection with WLED firmware greater than 0.14.1 #46

Closed
smhex opened this issue Mar 17, 2024 · 7 comments
Closed

No controller connection with WLED firmware greater than 0.14.1 #46

smhex opened this issue Mar 17, 2024 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@smhex
Copy link
Owner

smhex commented Mar 17, 2024

Describe The Bug:
The plugin is not able to connect to a Wled controller running a firmware version greater than 0.14.1.

To Reproduce:
Update your Wled controller to a firmware greater than 0.14.1 and restart the plugin. The last log message will be the Connect request. It will timeout.

Expected behavior:
Connection should be successful

Logs:

Coming soon

Environment:

  • Plugin Version:: 0.0.11+
  • Homebridge Version: 1.7.0
  • Node.js Version: 18.19.0
@smhex smhex added the bug Something isn't working label Mar 17, 2024
@smhex smhex self-assigned this Mar 17, 2024
@mariusstrom
Copy link

Mine was able to connect to both 14.2 and 15.1b1, but it would cause the WLED device to crash and reboot. See Aircoookie/WLED#3847 for potentially related issue on the WLED device side.

@mariusstrom
Copy link

Disabling the plugin in homebridge has caused my WLED device to be stable.

@smhex
Copy link
Owner Author

smhex commented Mar 27, 2024

Thanks for your comment! I am still trying to get the crash dumps to find out what happens. My feeling is that this behavior was introduced with any version coming after 0.14.1. The Wled changelog shows updates in json buffer handling and a newer version of the AsyncWebserver was integrated. Both are involved when controlling Wled via websockets using my plugin. I stripped down my implementation to native socket handling and it immediately crashes. In the meantime the only solution is to stick on 0.14.1 if possible...

@mariusstrom
Copy link

Sadly my WLED is in an inconvenient spot to access so I can't get the crashdumps.

@smhex
Copy link
Owner Author

smhex commented Mar 30, 2024

Filed an issue here: Aircoookie/WLED#3855

@smhex
Copy link
Owner Author

smhex commented Apr 1, 2024

@mariusstrom : I was able to build a WLED firmware from scratch. I monitored the serial debug output to save the crash dumps. It turned out, that there was a memory issues with the AsyncWebserver library WLED is using. A fix is underway. As soon as it is merged I will re-test. Hopefully, everything will work again.

@smhex
Copy link
Owner Author

smhex commented Apr 5, 2024

Fixed in WLED 0.14.3 (https://github.com/Aircoookie/WLED/releases/tag/v0.14.3)

@smhex smhex closed this as completed Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants