Replies: 2 comments 5 replies
-
|
How big is your orders.html file? |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Hi Miguel, thanks for answering.
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello everyone,
i'm testing the microdot strenghts for a future project with an ES8266 microcontroller, and I'm interested in use utemplate to manage simple html pages (I had previous experience with flask and jinja).
It looks working properly when i call the index page with simple text "Hello World", but
unfortunately i'm having the following exception when I'm try to GET the orders page which requires to be rendered :
MemoryError: memory allocation failed, allocating 252 bytesTrace is :
Orders - All method
Traceback (most recent call last):
File "microdot.py", line 1327, in dispatch_request
File "microdot.py", line 41, in invoke_handler
File "orders.py", line 15, in index
File "./utemplate.py", line 34, in init
File "recompile.py", line 22, in load
File "source.py", line 188, in load
File "compiled.py", line 14, in load
MemoryError: memory allocation failed, allocating 252 bytes
GET /all 500
The code of orders.py is as follow:
`
import gc
from main import app
from microdot.utemplate import Template
`
it seems that as soon as the Template is created, the memory exception happens. Anyone knows how to overcome this issue ?
PS. I've already compressed to binary microdot.mpy, utemplate.mpy and other "library" files.
Thanks in advance
Paolo
Beta Was this translation helpful? Give feedback.
All reactions