-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
ESP8266 websockets causing crash #3686
Comments
Probably RAM depletion. When you disable websockets you free up plenty of RAM. |
Arguably it's worse and more laggy with the following disabled:
There's definitely an issue with websockets. Normal HTTP requests are much more responsive and reliable. |
I use websockets without issues on about 10 of my ESP01 devices. |
And BTW I am unfamiliar with This appears to be your extension of WLED which you'll need to debug on your own. I am closing as it appears not to be related with WLED core functionality. Feel free to reopen when you reproduce with stock WLED. |
It's clearly not a RAM issue because there's 14k of heap remaining when it crashes. Similar issues with Two other symptoms:
There's clearly a huge issue with websockets ... |
Websockets were not developed by WLED team. Please open an issue with AsyncWebServer/AsyncTCP library. |
I'll just disable it thanks. It clearly has some serious issues that I don't have time to debug. My board has been running for 18 hours outputting DMX using Candle Multi without issues with it disabled with web clicks any time. It crashes within 30 seconds with it enabled and clicks. Websockets is a chosen feature of the project you support. |
What happened?
Clicking 10 - 20 times on the colour wheel causes a crash whilst DMX is outputting.
I'm using my own DMX driver but anything sending effect data over a HardwareSerial driver should be sufficient to cause it.
The WDT reset below doesn’t happen if I use WLED_DISABLE_WEBSOCKETS
Also tried with the following with a similar result except outputs a stack trace:
Here’s the reset output:
To Reproduce Bug
Clicking lots of times on the colour wheel causes a crash whilst DMX is outputting.
I'm using my own DMX driver but anything sending effect data over a HardwareSerial driver should be sufficient to cause it.
Expected Behavior
I can click anything as much as I want with WLED_DISABLE_WEBSOCKETS and no crash
Install Method
Self-Compiled
What version of WLED?
WLED 0.14.1 2401141
Which microcontroller/board are you seeing the problem on?
ESP8266
Relevant log/trace output
With other things disabled:
Anything else?
Sounds very similar to #3609
Related: https://wled.discourse.group/t/board-wdt-reset-caused-by-websockets/10770
Driver: https://github.com/casesolved-co-uk/DMXUART
Code of Conduct
The text was updated successfully, but these errors were encountered: