Btree Memory Errors #14132
Unanswered
ajacobs-github
asked this question in
Libraries & Drivers
Btree Memory Errors
#14132
Replies: 2 comments
-
@ajacobs-github Please see Welcome (Please read before posting) for how to format code for GitHub. (Use triple-backticks) |
Beta Was this translation helpful? Give feedback.
0 replies
-
@ajacobs-github I can't replicate this on ESP32 or Unix (although I might be using your test function incorrectly), and we don't support btree on stm32. Can you please provide more detail about how to replicate this? |
Beta Was this translation helpful? Give feedback.
0 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.
-
I am encountering intermittent [Errno 12] ENOMEM errors when assigning a key-value in Btree. It occurs when testing in a loop just after importing several custom python classes with gc.collect() after each import, and before creating any objects. The free memory on the heap is >81K before assigning the key value. They key is 64B and the value is 512B. Using OpenMV micropython on STM32 H7.
Before DB Write Memory free heap: 81216 B
Success DB Write
Before DB Write Memory free heap: 81216 B
ERROR DB Write [Errno 12] ENOMEM
Before DB Write Memory free heap: 81216 B
ERROR DB Write [Errno 12] ENOMEM
Before DB Write Memory free heap: 81216 B
Success DB Write
Before DB Write Memory free heap: 81216 B
Success DB Write
This is my funciton to write test key-values to BTree.
(Edited by @jimmo to add formatting)
Beta Was this translation helpful? Give feedback.
All reactions