Hello everyone!
We have been trying to do offline tracking in the lab and we stumbled with an memory error. I am attaching the bonsai script below, but this error also happens when we just use the FileCapture node. The error is:
insufficient memory: failed to allocate 6220800 bytes in function cv.:OutOfMemoryError, alloc.cpp(52)
For what we have been reading this is an openCV error. The weird thing is that this error appears after tracking a few videos (it usually doesn't crash on the first one). We tried to monitor the memory usage of the PC and it seems that every time we run the bonsai script a part of the memory doesn't get released (maybe a leak?). The error usually appears when the free memory gets to low, but we have seen it happen with a lot of free memory also (attached picture: "free memory error"). Does this error happened to anyone else? Does anyone know a way to solve it?
We are using bonsai 2.4, the computer has a procesor IntelCore i5 7200U @ 2.5GHz 2.7Ghz, 8Gb of RAM and we are running Bonsai on Windows 10 (64bit).
We also tried to go back to the portable bonsai 2.4preview and the error keeps appearing (although it migth be a little less frequent).
Our wokraround is to restart the computer after each video but sometimes it cannot even go trough one entire video. Videos are a bit heavy (each video last 3 minutes and weights 350MB)
Thanks for the help!