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

ESP32-C3 becomes unresponsible after a couple of days #4347

Open
1 task done
AdmiralRaccoon opened this issue Dec 5, 2024 · 9 comments
Open
1 task done

ESP32-C3 becomes unresponsible after a couple of days #4347

AdmiralRaccoon opened this issue Dec 5, 2024 · 9 comments
Labels

Comments

@AdmiralRaccoon
Copy link

What happened?

I´ve already read that the ESP32-C3 is not the best solution, but maybe it´s a bug anyway causing the issue:

After a couple of days, the device because unresponsible within Home Assistant as well as pinging it / access to the WebUI. Even pressing the button for toggeling won´t work. I have to remove power to get it working again, and then it will work again for the next 3-5 days.

I will notice when it stops working in the morning, as it supposed to wake me up in the morning.

To Reproduce Bug

Waiting several days

Expected Behavior

Working 24/7

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0-b7

Which microcontroller/board are you seeing the problem on?

ESP32-C3

Relevant log/trace output

No response

Anything else?

It´s a WLED Slim LED Strip Controller from Athom:
https://de.athom.tech/blank-1/wled-slim-led-strip-controller

It´s doesn´t get hot
WIFI sleep is disabled
WIFI TX Power is at 8.5 dBm (that was the default)

Code of Conduct

  • I agree to follow this project's Code of Conduct
@netmindz
Copy link
Collaborator

netmindz commented Dec 5, 2024

Is this an issue only after you upgraded to 0.15 ?

What version was it previously stable on?

@AdmiralRaccoon
Copy link
Author

I used the 0.14.4 for about a week after i bought the controller, but had an issue with presets, which were actually fixed with the 0.15, so i directly started using 0.15.0-b6 (which already had these unresponsible issues)

@DedeHai
Copy link
Collaborator

DedeHai commented Dec 5, 2024

This could be a hardware related issue as well: please try this: add a large 1000uF capacitor to both 5V input and 3.3V rail on the ESP and report if the issue persists.

@AdmiralRaccoon
Copy link
Author

Now that exceeds my knowledge, as this is a ready-to-user controller with an usb-c power input:

image

I thought about that it also could be hardware related issue, but I rather replace the C3 with an ordinary ESP32, as these work rock solid with wled.

@KrX3D
Copy link

KrX3D commented Dec 7, 2024

This could be a hardware related issue as well: please try this: add a large 1000uF capacitor to both 5V input and 3.3V rail on the ESP and report if the issue persists.

hi, thanks for that tip, i will try it on my devides since i got the same problem but not just with the C3 but also with s2 and some esp32 dev boards

@daggerrz
Copy link

I think this issue more likely is related to an underlying problem with the ESPAsyncWebServer dependency. @AdmiralRaccoon, are you using Home Assistant by any chance? HA can be pretty aggressive in its polling and open many concurrent conenctions to the WLED device, which might lock it up.

See me-no-dev/ESPAsyncWebServer#157 and me-no-dev/ESPAsyncWebServer#1116

This is still easy to reproduce with a synthetic load:

wrk -c 1 -d 20 -t 1 --timeout 5 http://IP/json

Increasing concurrency, -c to e.g 8 will consistently lock up an ESP32-C3 on 0.15. I haven't tested other ESP32 variants recently, but they will likely fail around the same level of concurrency as well.

@AdmiralRaccoon
Copy link
Author

So might this be something for the HA WLED Integration Developer to look at and do something about polling interval?

@willmmiles
Copy link
Collaborator

I've been working on some upgrades to the web server components to better handle concurrency and excessive load in #4119 -- the underlying AsyncTCP library melts down rather dramatically if its event queue overflows. While the code there will probably improve load related problems for C3s, I've still got some unresolved issues in low memory environments such as S2s.

@mattfox27
Copy link

I have been having the same issue, and yes im using home assistant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants