Comments (6)
Hello @elixx and thanks to interesting:)
I know this problem with micropython because there are a large number of function penetrations and this can cause a stack overflow.
And with the pyhtml model, it's even more...
A solution is to access the micropython variables to increase the stack maximum value and recompile the firmware :o
Do you can try that for your needs ?
from microwebsrv.
I reviewed #36 and tried a few different firmware versions, but still the same result. I think these boards are comparable to a LOLIN32.
from microwebsrv.
Trying with SPI firmware, I get a reboot and the following:
>>> ***ERROR*** A stack overflow in task mp_thread has been detected.
abort() was called at PC 0x40091d8c on core 1
Backtrace: 0x40091a3f:0x3ffe90e0 0x40091d75:0x3ffe9100 0x40091d8c:0x3ffe9120 0x40093e96:0x3ffe9140 0x40092d54:0x3ffe9170 0x40092d0a:0x3ffc49a0
Rebooting...
ets Jun 8 2016 00:22:57
rst:0xc (SW_CPU_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:2
load:0x3fff0018,len:4
load:0x3fff001c,len:4928
ho 0 tail 12 room 4
load:0x40078000,len:10188
load:0x40080400,len:6736
entry 0x400806e8
from microwebsrv.
I found that calling the same function from a route works totally fine in threaded mode and not.
It appears to be something confined to the handling of pyHTML files (from what I can see so far).
from microwebsrv.
Thanks -- I'll give that a shot.
pyHTML would be nice to get working, eventually on my board -- but I have a few different ones on the way, and see how it goes on those, too. Then I'll pursue rolling my own firmware. =)
Right now I switched to using the request handler decorators to get the functionality that I want -- so far, so good!
Thank you!
from microwebsrv.
from microwebsrv.
Related Issues (20)
- HTTPS and WSS support HOT 3
- Accessing filesystem from threaded webserver crashes the machine HOT 5
- ESP32 - mws.IsStarted() problem when threaded HOT 3
- 403 Forbidden error occured when loading the fonts folder of the webapp made with Vue.js HOT 4
- Error 112 on ESP32 HOT 13
- httpResponse doesn't send the response after reconnecting wifi HOT 3
- Socket Time out when using Threading=True on Pyboard D HOT 2
- No logging is implemented to allow INFO,DEBUG,WARNING,ERROR and so. HOT 3
- Add RouteHandler at runtime HOT 1
- link css in html,browser 302 found. HOT 4
- SendText HOT 4
- Websockets HOT 2
- will the code as distributed in this .git support server-sent-events? HOT 1
- MicroWebSrv.Start never terminates when threaded=False and Stop() is called HOT 1
- srv.IsStarted() Always return:false HOT 1
- How to serve static files from LittleFS ? HOT 1
- WebSocket Critical Question ? HOT 3
- stack overflow serving small pyhtml page HOT 1
- Does this project support ESP8266
- CAUTION: THIS PROJECT IS ABANDONNED
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 microwebsrv.