-
Notifications
You must be signed in to change notification settings - Fork 7.6k
ESP-C3-12F crashes when serving static files with AsyncWebServer and LittleFS #5912
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
@AcuarioCat , Hi, can you check please behavior with this fork/branch of ESPAsyncWebServer? Or as another point for testing you can try comment out this line in ESPAsyncWebServer\src\StringArray.h :
|
Hi, great, I tried both suggestions and both work. I guess I need to stay with the forked version for now. |
@me-no-dev Can you please take a look at this issue? Maybe you can provide better solution for ESP32-C3 support and clarify whats going wrong there... @AcuarioCat |
Hello, can you please help with testing this on 2.0.3-rc1? Thanks! |
any updates? |
2.0.3 stable is out, it's now easier to validate this. |
@VojtechBartoska 2.0.3 not working with LittleFS for me at all, more info there: #6579 (comment) , can't re-check. |
for https://github.com/me-no-dev/ESPAsyncWebServer after patching to return IPAddress((uint32_t)0U); build is successful but not working with a https://github.com/tasmota/platform-espressif32/releases/download/v.2.0.3/platform-espressif32-v.2.0.3.zip and crashing by littlefs error on framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.3 My patched version from #5912 (comment) works with a tasmota release and stil fails with a framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.3.
|
Hello, Due to the overwhelming volume of issues currently being addressed, we have decided to close the previously received tickets. If you still require assistance or if the issue persists, please don't hesitate to reopen the ticket. Thanks. |
Hardware:
Board: ESP-32-C3
Core Installation version: 2.0.0
IDE name: Visual Studio/Visual Micro
Flash Frequency: 80Mhz
PSRAM enabled: no
Upload Speed: 921600
Computer OS: Windows 10
Description:
I don't know if this is the ESP code or AsyncWebServer code that is causing the problem but...
When using the ESP-C3 with the AsyncWebServer and trying to serve a static file with
server.serveStatic("/", LittleFS, "/");
the device crashes and resets.Compiling and running the same code on an ESP32 works correctly with no crash.
Serving a file using server.on... works ok, no crash.
i.e. opening http://192.168.0.116/deb works ok
opening http://192.168.0.116/debug1.html crashes (debug1.html does not depend on any other LittleFS download, js, png etc..)
Sketch:
You need to create and upload some web pages using makelittlefs.exe to test this out. The code is from the simple_server.ino sample modified to serve files from LittleFS.
I'm running mklittlefs version: 0.2.3-27-gc41e51a
Debug Messages:
The text was updated successfully, but these errors were encountered: