Memory allocation failed #16986
Unanswered
MartiMan79
asked this question in
RP2040 / Pico
Replies: 1 comment 1 reply
-
Please explain what you are doing with the data you're reading. Does the entire dataset need to be contained in RAM? In what format are you storing it? Bear in mind that Python strings are immutable: string operations can result in fragmentation. Without knowing your application it's hard to make recommendations, but I would consider parsing the data in blocks (line by line?) - perhaps reducing it to summary information before discarding the raw data before moving on to the next block. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm trying to access a log file over HTTP on a Pico W but getting mem errors.
File size: tried from 80k down to 30k maxBytes in the RotatingFileHandler settings but to no avail.
I've read about excessive fragmentation but to me it appears that's not the case as "76 lines all free"?
Code starts with:
Any ideas?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions