-
Notifications
You must be signed in to change notification settings - Fork 13.3k
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
Stream File Problems 2.6.2 #6907
Comments
This is not an MCVE for us to be able to reproduce. |
request: GET / HTTP/1.1 User exception (panic/abort/assert) |
That seems to be the issue. Arduino/libraries/ESP8266WiFi/src/include/DataSource.h Lines 92 to 93 in 1d05283
The API is such that this function @laercionit Can you verify your file is really unreadable ? Anyway, this has to be fixed. |
OK, I just changed the code: if (server.streamFile (FilesFS, contentType) == FilesFS.size ()) { for server.streamFile (FilesFS, contentType); and it worked correctly. |
First: in case of oom, new will return nullptr |
I think I have a similar problem with 2.7.0. My webserver have a html page with same JS and CSS files. |
Also have the Problem when the web page load a CSV file from sd Card. |
Just upgraded to 2.7.1 .. and got the problem. It worked fine with the older version - but I cannot recall which version. Any workarounds out there? :-) |
Can you have a look to this example which is able to stream files from FSes ? |
I've tested the example and it Looks ok. |
I would be very nice if you could provide such files so we can reproduce and hopefully fix. |
Edit by @devyte : removed attached file Here the Example with my files for sd Card. Simple "Data Logger" with CSV upload. My ESP crashes immediately on each try. |
Please don't attach files. Post your MCVE directly In this case. |
sorry, i don't understand what you mean? don't know if a link is allowed …. http://www.schafhof24.de/3D/WebBrowser.zip |
Direct file attachments are discouraged for security reasons. |
@d-a-v so you can try to reproduces the issue? |
@MagicBugsBunny I did try with SPIFFS and I get no error (although no graphics is displayed). I could see the file was transmitted using |
@MagicBugsBunny Still working with SDFS. @schimkat Same question, @laercionit Does your issue still apply ? |
i also tried with complete erase Flash but don't help. if i load it to my wemos d1 mini and try to open the index.html i get the exception :-( Can it be a Problem of the sd Card? Power Supply? |
Please print (power supply has been the issue in some cases, try another if you can) |
I changed the Sketch and upload it …. and than try to open the index.html Changed already to another usb power supply and soldered a C over 5V. |
|
I use "old" 2GB Micro SD Cards, up to 5 different one, with a normal sd adaptor. Now i tried a newer 32GB sd Card and it Looks ok? So think there is a Problem with this 2GB Micro sd Cards? I can't belive it. |
Please keep your old 2GB card safe. Thanks for the log. That's valuable information. |
ok, i have enough of them laught one of them i Format with Windows, fat or fat32, quick and normal but it doesn't matter (also done before) no i tried an old Programm to Format sd Cards, overwrite them or erase them. I let Format one of the 2GB Card with an full overwrite before. |
I shall try with an SD card with read errors then. |
I went back to my original Sketch and get the exception again with the "bad 2GB Micro sd Card". The main difference is, at start of my Sketch it open the csv file a wrtite the time with a value. |
The issue occurs when a stream reports a size but |
If it's an sd code problem, it should be possible to reproduce without any network code. I suggest trying to reproduce by doing writes with synthetic data. |
If i put this at the end of Setup : File dataFile = SDFS.open("/load.csv", "w"); I can't load the web page …. exception … When i remove the above Code from Setup, all is ok with the 2GB Micro sd Card. |
@MagicBugsBunny your SD card must be in bad shape. |
This issue i have only with those 2GB Micro sd Card …. but 5 of them can't be bad? And with other sd Card > 2GB there is no Problem and all works fine. |
@MagicBugsBunny
|
ok, now in the Right one :-) DS-FAIL is present but with no values
|
@MagicBugsBunny No mistake from your side, thanks for the report
|
SDK:2.2.2-dev(38a443e)/Core:2.7.1=20701000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-30-g92add50/BearSSL:5c771be Filesystem initialized. connected with WLAN_43, channel 3 User exception (panic/abort/assert)
ctx: cont ets Jan 8 2013,rst cause:2, boot mode:(3,6) load 0x4010f000, len 3456, room 16 SDK:2.2.2-dev(38a443e)/Core:2.7.1=20701000/lwIP:STABLE-2_1_2_RELEASE/glue:1.2-30-g92add50/BearSSL:5c771be Filesystem initialized. connected with WLAN_43, channel 3 |
Thanks for the help, that's EDIT: fixed by #6979 |
I have to thank. My program now runs with other SD cards. |
##Platform
Settings in IDE
Problem Description
Webserver stream problems:
Debug Messages
The text was updated successfully, but these errors were encountered: