TinyCamML / Boron-and-OpenMV

This repo is continued progress between Boron and OpenMV as a self contained device that can successfully monitoring flooding on roadways.
MIT License
0 stars 0 forks source link

mem management #14

Closed ebgoldstein closed 3 weeks ago

ebgoldstein commented 2 months ago

From @BentleySettin :

Experiencing white flashing on openmv after about 30-45 minutes. I went onto openMV drive and saw a "Fatal Error: MemManage". The OpenmV also feels warm once this white flashing begins.

Seems to be a popular issue here. https:// github.com/openmv/openmv /issues/1655 Not entirely sure how they solved it.

ebgoldstein commented 2 months ago

need to look at garbage collection: https://docs.openmv.io/library/gc.html

one simpel thing is to save the current me state... so gc.mem_free or gc.mem_alloc to record what is oging on w/ memory during the 30-40 mins

ebgoldstein commented 3 weeks ago

ok, this should be fixed now... I observed the memory growth, now we explicitly call garbage collection with gc.collect right before the OpenMV sleeps... and memory does not grow.. i am testing a long run right now..