{"action":"created","issue":{"url":"https://api.github.com/repos/peterbraden/node-opencv/issues/209","labels_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/209/comments","events_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/209/events","html_url":"https://github.com/peterbraden/node-opencv/issues/209","id":53311765,"number":209,"title":"Running out of memmory when using VideoCapture","user":{"login":"ThomasWatzl","id":7643064,"avatar_url":"https://avatars.githubusercontent.com/u/7643064?v=3","gravatar_id":"","url":"https://api.github.com/users/ThomasWatzl","html_url":"https://github.com/ThomasWatzl","followers_url":"https://api.github.com/users/ThomasWatzl/followers","following_url":"https://api.github.com/users/ThomasWatzl/following{/other_user}","gists_url":"https://api.github.com/users/ThomasWatzl/gists{/gist_id}","starred_url":"https://api.github.com/users/ThomasWatzl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ThomasWatzl/subscriptions","organizations_url":"https://api.github.com/users/ThomasWatzl/orgs","repos_url":"https://api.github.com/users/ThomasWatzl/repos","events_url":"https://api.github.com/users/ThomasWatzl/events{/privacy}","received_events_url":"https://api.github.com/users/ThomasWatzl/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-01-03T18:44:48Z","updated_at":"2015-02-25T13:24:16Z","closed_at":null,"body":"I am not entirely sure if this is an issue but I was running in some trubles using your module.\r\nFirst of all thanks for a great opencv environment.\r\n\r\nThis code is just an example for what i am trying to do:\r\n\r\n\tvar cv = require('opencv');\r\n\tvar camera = new cv.VideoCapture(0);\r\n\tcamera.read(function reading(err, im){\r\n                //do some image processing here.\r\n\t\tcamera.read(reading);\r\n\t});\r\nFor a while everything runs just fine but after a while I get the following error:\r\n\r\nOpenCV Error: Insufficient memory (Failed to allocate 921604 bytes) in OutOfMemoryError, file /home/pi/opencv-2.4.10/modules/core/src/alloc.cpp, line 52\r\nterminate called after throwing an instance of 'cv::Exception'\r\n  what():  /home/pi/opencv-2.4.10/modules/core/src/alloc.cpp:52: error: (-4) Failed to allocate 921604 bytes in function OutOfMemoryError\r\n\r\nIs there a way to free memory? I thought the Carbage Collector should take care of that.\r\n\r\nThanks for your help.\r\nKind regards Thomas \r\n"},"comment":{"url":"https://api.github.com/repos/peterbraden/node-opencv/issues/comments/75958577","html_url":"https://github.com/peterbraden/node-opencv/issues/209#issuecomment-75958577","issue_url":"https://api.github.com/repos/peterbraden/node-opencv/issues/209","id":75958577,"user":{"login":"redspike","id":2664854,"avatar_url":"https://avatars.githubusercontent.com/u/2664854?v=3","gravatar_id":"","url":"https://api.github.com/users/redspike","html_url":"https://github.com/redspike","followers_url":"https://api.github.com/users/redspike/followers","following_url":"https://api.github.com/users/redspike/following{/other_user}","gists_url":"https://api.github.com/users/redspike/gists{/gist_id}","starred_url":"https://api.github.com/users/redspike/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/redspike/subscriptions","organizations_url":"https://api.github.com/users/redspike/orgs","repos_url":"https://api.github.com/users/redspike/repos","events_url":"https://api.github.com/users/redspike/events{/privacy}","received_events_url":"https://api.github.com/users/redspike/received_events","type":"User","site_admin":false},"created_at":"2015-02-25T13:24:16Z","updated_at":"2015-02-25T13:24:16Z","body":"Has anyone managed to make any changes that help this?"}}