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

Unexpected resets #6

Closed
issalig opened this issue Aug 9, 2021 · 5 comments
Closed

Unexpected resets #6

issalig opened this issue Aug 9, 2021 · 5 comments

Comments

@issalig
Copy link
Owner

issalig commented Aug 9, 2021

Sometimes, ESP8266 resets.
It can stay for some days wo resetting or just every few minutes.
I guess it is something related to ArduinoJSON but not sure. It does not appear to be a memory leak.
Other theory is that there are power problems but it is connected to a 5V 2A, so it should be like this.

@issalig
Copy link
Owner Author

issalig commented Nov 2, 2021

For some unknown reason, after 50 days without resetting I close this issue.

@issalig issalig closed this as completed Nov 2, 2021
@issalig issalig reopened this Jan 4, 2022
@issalig
Copy link
Owner Author

issalig commented Jan 4, 2022

After a lot of analysis I may have solved the problem. After some minutes without connecting when a new connection entered SPIFFS tried to get the page but it took a lot and esp_yield crash.

I have replecaed SPIFFS for LittleFS and now it works ok.
Hope it is definitely the solution

@issalig issalig closed this as completed Jan 4, 2022
@issalig
Copy link
Owner Author

issalig commented Jan 29, 2022

LittleFS also hangs but it looks like gzipping the files can be a solution me-no-dev/ESPAsyncWebServer#825

Also it is worth to mention that max opened files is 5

I am gonna test it for some days and we will see if I can definetely get rid of this bug.

@issalig issalig reopened this Jan 29, 2022
@issalig
Copy link
Owner Author

issalig commented Feb 6, 2022

It seems that SPIFFS was not the problem, it was a silly error and I commented websocket.loop by error some months ago.

Thanks to @cmc88 for finding the bug.

@issalig
Copy link
Owner Author

issalig commented Jul 28, 2022

I am still getting unexpected crashes.
For now I will force a reset every 1/2 hours to clean everything

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

No branches or pull requests

1 participant