Open RBlasius opened 6 years ago
Hi, I have the same problem. I'm starting to play with the ESP8266 too.
I get
Panic /home/gordon/Downloads/sloeber/arduinoPlugin/packages/esp8266/hardware/esp8266/2.4.2/libraries/ESP8266WiFi/src/include/DataSource.h:93 const uint8_t* BufferedStreamDataSource
ctx: cont sp: 3ffffbf0 end: 3fffffd0 offset: 01b0 and then stack dump.
Unfortunately, I'm a beginner too. But from what I understand the error is pointing to the
File file = SPIFFS.open(path, "r"); server.streamFile(file, contentType); <<<< something wrong with the stream file.close();
but this is a bit above my pay grade. Gord_W
I think the solution was to reduce the SPIFFS size to 1M under the tools tab board setup section. Gord_W
Thank's for the advice. I made some attempts, and set the spiffs size in Tools/ Flash size:
512K(128K SPIFFS), 1M(128KSPIFFS), 1M(64K SPIFFS): same behaviour as in my first post
2M (1M SPIFFS), 4M(1M SPIFFS): uploads are ok, but didn't start connecting. Serial monitor contains some weird characters in one row. (Normally this row always appears on start, but afterwards connection starts. In this case nothing happens.)
Hi, I have exactly the same problem. I tried 1M(128K), 1M(192K) and 1M(256K). Trying to get ESP3D to work but my ESP-01 is resetting constantly (whether in AP or STAtion mode) with the same error in line 93 of DataSource.h; The example sketches though were all OK (for AP and STA scanning).
Hello I've also a ESP-01S and same issue on line 93 of DataSource.h;
Thanks for the help
I have the same issue with my ESP-01 no solution / explaination found ?
I suddenly got the same problem. :-o
More info here: https://github.com/esp8266/Arduino/issues/6907
Which example is it ?
Hi, thank you for this tutorial, which I found very useful when starting with ESP as a beginner. I've already made some simple sensor projects, but now I'm having something I cannot solve.
I’m working on the data logging part with an ESP8266-01, and somehow I cannot succeed, because I have the following issue. Problem is that when I load the webpage, the ESP restarts. All other things work fine, right until I load the web page. It’s showing the index file (Loading…) only, and simultaneously it makes the ESP restart. The crash is at Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi\src\include/DataSource.h.
Here you find what I have on the terminal: " Connecting .........
Connected to name IP address: 192.168.1.108
OTA ready
SPIFFS started. Contents: FS File: /edit.html.gz, size: 700B FS File: /favicon-144x144.png, size: 2.81KB FS File: /favicon.ico.gz, size: 1.91KB FS File: /index.html.gz, size: 841B FS File: /main.css.gz, size: 349B FS File: /manifest.json, size: 169B FS File: /success.html.gz, size: 456B FS File: /temperatureGraph.js.gz, size: 1.71KB FS File: /temp.csv, size: 18B
mDNS responder started: http://esp8266.local HTTP server started. Starting UDP Local port: 123 Time server IP: 132.163.96.2 Sending NTP request Sending NTP request NTP response: 1540569686 Temperature requested Appending temperature to file: 1540569742,24.44 Temperature requested Appending temperature to file: 1540569802,24.44
// AT THIS POINT I STARTED THE WEBPAGE//
handleFileRead: / Sent file: /index.html.gz handleFileRead: /temperatureGraph.js Sent file: /temperatureGraph.js.gz handleFileRead: /temp.csv
Panic C:\Users\LotusH-4\AppData\Local\Arduino15\packages\esp8266\hardware\esp8266\2.4.2\libraries\ESP8266WiFi\src\include/DataSource.h:93 const uint8_t* BufferedStreamDataSource::get_buffer(size_t) [with TStream = Stream; uint8_t = unsigned char; size_t = unsigned int]: Assertion 'cb == stream_rem' failed.
ctx: cont sp: 3ffffba0 end: 3fffffd0 offset: 01b0
ets Jan 8 2013,rst cause:2, boot mode:(3,7)
load 0x4010f000, len 1384, room 16 tail 8 chksum 0x2d csum 0x2d vbb28d4a3 ~ld
Connecting .........
Connected to name IP address: 192.168.1.108 "
It's the same each every time.
What I’ve tried, but haven’t gained success: I found something similar here: https://github.com/esp8266/Arduino/issues/2504 but after checking the code, I realised I already have the improved DataSource.h. I tried it with SPIFFS size 512K (64K SPIFFS) and 512K (128K SPIFFS) options as well.
It would be very much appreciated if you could spend some time with it, and give a hint, what I’m doing wrong, what should I improve to make it working!
Thank you, Blas