-
Notifications
You must be signed in to change notification settings - Fork 13.3k
LittleFS mklittlefs error (crashes in WebServer w/small files) #6220
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
Comments
Please post the decoded stack dump, too. The raw hex dump isn't useful outside of your own single compile. |
Decoding stack results
|
@earlephilhower I tested a lot of things and realized that, when the program wants to open a file with size less than 1KB (1024 bytes), the device will reset. |
Good debug. It may just be an OOM issue with the example code, in which case there's not much that can be done. Let me try and make a small test and see what's happening. |
LittleFS is fine by my testing. You're just running out of memory in the WebServer which is actually pretty common. A simple test like this runs forever and shows no problems w/<1KB files.
|
In the case you said, it is your right. |
I think the problem is from the "Arduino ESP8266 LittleFS Filesystem Uploader" plugin.
with file.write and read that with file.read, the result is correct.
This only happens when the file size is less than 1024 bytes. |
That's very interesting. There might be a difference in version/options in mklittlefs.exe and the current core. I thought it was at a stable version, but will look at it and see if there's anything amiss... |
Reproduced the failure and am able to fix it by updating the mklittlefs.exe. There'll be a PR soon with the update. |
Fixes esp8266#6220 MklittleFS had different configuration options which affected small files and could result in crashes or corruption on upload. Update mklittlefs tool to one that matches the config of the current library. You will need to re-run tools/get.py to get the new tool version if you are running from Git.
Fixes #6220 MklittleFS had different configuration options which affected small files and could result in crashes or corruption on upload. Update mklittlefs tool to one that matches the config of the current library. You will need to re-run tools/get.py to get the new tool version if you are running from Git.
Many thanks. it's working now. |
Basic Infos
Platform
Settings in IDE
Problem Description
I uploaded example FSBrowser with LittleFS filesystem. when i want to open device IP in browser, The device will be reset repeatedly until the browser displays the "The connection was reset" page.
But with SPIFFS filesystem, everything works fine.
Debug Messages
The text was updated successfully, but these errors were encountered: