GithubHelp home page GithubHelp logo

Crash on page load about espui HOT 11 CLOSED

s00500 avatar s00500 commented on September 27, 2024
Crash on page load

from espui.

Comments (11)

s00500 avatar s00500 commented on September 27, 2024

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.

mano1979 avatar mano1979 commented on September 27, 2024

from espui.

s00500 avatar s00500 commented on September 27, 2024

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.

mano1979 avatar mano1979 commented on September 27, 2024

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.

s00500 avatar s00500 commented on September 27, 2024

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.

mano1979 avatar mano1979 commented on September 27, 2024

indeed. uploading using the sketch data upload tool worked.

from espui.

mano1979 avatar mano1979 commented on September 27, 2024

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.

s00500 avatar s00500 commented on September 27, 2024

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.

cmorrow101 avatar cmorrow101 commented on September 27, 2024

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.

s00500 avatar s00500 commented on September 27, 2024

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.

s00500 avatar s00500 commented on September 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.