-
Notifications
You must be signed in to change notification settings - Fork 855
Node.js + OpenCV readImage() memory leaks #411
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
You can try freeing the memory yourself using the release method On Wed, May 25, 2016, 06:49 fabek [email protected] wrote:
|
No, I can't under Javascript. im.release() doesn't work anymore. It's possible under C++ only. |
Why do you think that? Was it broken recently or something? On Sun, May 29, 2016, 08:14 fabek [email protected] wrote:
|
I have a problem with memory leaks (about 3-4MB each even cycle of this code) on node.js + opencv. I think readImage() method causes that memory issue.
Platform: BananaPi + NodeJS 0.10.29 + OpenCV 2.4.9.1
SOLVED: nano /etc/crontab and add line:
* * * * * root sync; sync; sync; echo 3 >/proc/sys/vm/drop_caches;
It isn't beautiful, but it works.
The text was updated successfully, but these errors were encountered: