Comments (11)
hey, sry for the late response, what version of the espasyncwebserver library are you using? I am going to test this in the next days again
from espui.
from espui.
OK then, this issue drove me crazy today.... The problem is that the prepareFilesystem function does write the files correct, and if I list the filesystem contents immediatly afterwards it looks all fine
But when I list the contents in a new sketch it only shows some of them.... and if the webserver can not find them it crashes
This stops once I remove all file exists and remove operations in the function. I am not sure why this is but for now I'll leave it like this, if anyone has an Idea why the FS on the ESP32 behaves so strange please let me know
I released a new patch version with the delete parts commented out
from espui.
I tested the patch, but i still get the "Control Offline" page.
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:956
load:0x40078000,len:0
load:0x40078000,len:13076
entry 0x40078ad0
IP address: 192.168.4.1
Listing directory: /
FILE: /js/slider.js SIZE: 1944
FILE: /js/controls.js SIZE: 0
FILE: /index.htm SIZE: 1420
FILE: /css/style.css SIZE: 11728
FILE: /css/normalize.css SIZE: 1948
FILE: /js/zepto.min.js SIZE: 26392
UI Initialized
CORRUPT HEAP: Bad tail at 0x3ffe3825. Expected 0xbaad5678 got 0xbaad5600
assertion "head != NULL" failed: file "/Users/ficeto/Desktop/ESP32/ESP32/esp-idf-public/components/heap/./multi_heap_poisoning.c", line 199, function: multi_heap_free
abort() was called at PC 0x400deb87 on core 1
Backtrace: 0x40087ca8:0x3ffdd960 0x40087da7:0x3ffdd980 0x400deb87:0x3ffdd9a0 0x400879b9:0x3ffdd9d0 0x40083b76:0x3ffdd9f0 0x400840f9:0x3ffdda10 0x4000bec7:0x3ffdda30 0x400da1b3:0x3ffdda50 0x400d8eee:0x3ffddaa0 0x400d81ed:0x3ffddae0 0x400d701c:0x3ffddb20 0x400d8a9f:0x3ffddb90 0x400d8b0d:0x3ffddbd0 0x400d8d21:0x3ffddc20 0x400d4b7a:0x3ffddc40 0x400d4d61:0x3ffddc90
Rebooting...
from espui.
This is an annoying problem, I have to do more checks but for now pls use the ESP32 Sketch Data upload tool
As you can see in your debug output there is always one file with a size of 0, in this case /js/controls.js...
This somehow causes the server to crash...
from espui.
indeed. uploading using the sketch data upload tool worked.
from espui.
Do you happen to know if it is possible to give the sliders "touch" support?
Now you have to tap somewhere on the line, hoping you land in the right spot.
If the sliders where drag-able, then we can see the number according to position.
Any help or clues on where to start are appreciated. :)
from espui.
Hm, that actually should already work... If it doesn't: can you put it into a new issue and put in info about the device you are using?
from espui.
I wanted to share an observation. I see the same reset problem when connecting through chrome web browser, however when I setup a hotspot on my phone, then connect to the ESP32(using the same phone) and mobile chrome, all works perfectly.
What is the difference when connecting directly vs through a network router?
Hopefully this is another clue. Great work BTW, love the interface.
from espui.
This is probably some caching related issue you are having there, anyway the main problem is that the files are not written to the filesystem properly using prepareFilesystem() ...
from espui.
Alright everyone: Great News: I retested on ESP32 and on ESP8266 and both are working fine with the newest versions of the arduino cores, this means this issue can be closed now =D
from espui.
Related Issues (20)
- Displaying content of a text file in a tab ?!? HOT 7
- Change user and pass of GUI HOT 2
- Unable to use class lambda - no matching function to call HOT 4
- Conflicting Enums in global scope HOT 7
- horizontal alignment of switcher control HOT 4
- compatibility with ArduinoJson V7 HOT 7
- compiler errors when trying to compile complete example HOT 4
- a "0" is displayed instead of the label o the button HOT 6
- TimeZone in ISO string {new Date().toISOString()} HOT 1
- TextInput and input of not printable characters
- Unused function declaration in ESPUI.h
- Panel gets deleted after it was hidden and browser refreshed.
- Examples not compilate for ESP32 on ArduinoIDE 2.3 HOT 3
- Pad control Labels HOT 1
- beginResponse_P - Braking Change in mathieucarbou / ESPAsyncWebServer for ESP32 in release 3.0.2 HOT 1
- Default values HOT 2
- updateTime() keeps firing the callback HOT 1
- adjustable width of buttons, etc.
- How to change sender->id? HOT 2
- code crashes after connecting to the AP with a phone.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from espui.