Coder Social home page Coder Social logo

Comments (6)

jczic avatar jczic commented on July 22, 2024 1

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.

elixx avatar elixx commented on July 22, 2024

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.

elixx avatar elixx commented on July 22, 2024

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.

elixx avatar elixx commented on July 22, 2024

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.

elixx avatar elixx commented on July 22, 2024

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.

jczic avatar jczic commented on July 22, 2024

from microwebsrv.

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.