{"action":"opened","issue":{"url":"https://api.github.com/repos/mshabunin/test2/issues/498","labels_url":"https://api.github.com/repos/mshabunin/test2/issues/498/labels{/name}","comments_url":"https://api.github.com/repos/mshabunin/test2/issues/498/comments","events_url":"https://api.github.com/repos/mshabunin/test2/issues/498/events","html_url":"https://github.com/mshabunin/test2/issues/498","id":95195444,"number":498,"title":"lk_homogrraphy.py sample leaks memory","user":{"login":"mshabunin","id":3304494,"avatar_url":"https://avatars.githubusercontent.com/u/3304494?v=3","gravatar_id":"","url":"https://api.github.com/users/mshabunin","html_url":"https://github.com/mshabunin","followers_url":"https://api.github.com/users/mshabunin/followers","following_url":"https://api.github.com/users/mshabunin/following{/other_user}","gists_url":"https://api.github.com/users/mshabunin/gists{/gist_id}","starred_url":"https://api.github.com/users/mshabunin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mshabunin/subscriptions","organizations_url":"https://api.github.com/users/mshabunin/orgs","repos_url":"https://api.github.com/users/mshabunin/repos","events_url":"https://api.github.com/users/mshabunin/events{/privacy}","received_events_url":"https://api.github.com/users/mshabunin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mshabunin/test2/labels/affected:%20master","name":"affected: master","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/auto-transferred","name":"auto-transferred","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/category:%20python%20bindings","name":"category: python bindings","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/priority:%20normal","name":"priority: normal","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/status:%20incomplete","name":"status: incomplete","color":"ededed"},{"url":"https://api.github.com/repos/mshabunin/test2/labels/target:%203.0","name":"target: 3.0","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-15T13:32:44Z","updated_at":"2015-07-15T13:32:44Z","closed_at":null,"body":"Converted from http://code.opencv.org/issues/3457\r\n```\n|| by Dominique M. on 2013-12-24 08:28\n|| Status: Incomplete\n|| Priority: Normal\n|| Affected: branch 'master' (3.0-dev)\n|| Target: 3.0\n|| Category: python bindings\n|| Tracker: bug\n```\n\nlk_homogrraphy.py sample leaks memory\n-----------\n```\nthe lk_homography.py sample leaks memory with both camera stream or\nvideo input.   \nI commented out all visualisation and did not start tracking and it\nstill leaks.  \nThat leads me to believe that the leak occurs either in\ngoodFeaturesToTrack or reading from VideoCapture.  \nI only tried with the current git version.\n```\n\nHistory\n-------\n##### by Dominique M. on 2013-12-27 11:32\n```\nI tried to narrow down the issue and I think the leak occurs in\ncvtColor:\n\nthis does not run out of memory (at least not that fast):  \n\n    while(True):                                                                                \n        p = cv2.goodFeaturesToTrack(gray, maxCorners=2000, minDistance=8, blockSize=19, qualityLevel=0.01)\n\nbut this does (even faster without goodFeaturesToTrack):\n\n    while(True):                                                                                  \n        gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)\n        p = cv2.goodFeaturesToTrack(gray, maxCorners=2000, minDistance=8, blockSize=19, qualityLevel=0.01)\n```\n##### by Dominique M. on 2013-12-30 03:17\n```\nThe leak does not occur in 2.4.7\n```\n##### by Anna Kogan on 2014-01-13 09:30\n```\nHello Dominique,\n\nThank you for reporting the problem. If you could work on a solution on\nyour, a contribution to the OpenCV repo(see How_to_contribute) would be\nvery appreciated!\n-   Status changed from New to Open\n```\n##### by Alexander Smorkalov on 2014-01-19 12:16\n```\n-   Difficulty set to Medium\n-   Target version set to 3.0-alpha\n-   Category set to python bindings\n```\n##### by Maksim Shabunin on 2015-04-27 09:11\n```\n-   Target version changed from 3.0-alpha to 3.0\n```\n##### by Maksim Shabunin on 2015-04-28 01:07\n```\nDominique M. wrote:\n\n  I tried to narrow down the issue and I think the leak occurs in\n  cvtColor:\n\n  this does not run out of memory (at least not that fast):  \n  [...]\n\n  but this does (even faster without goodFeaturesToTrack):\n\n  [...]\n\nI've tried to reproduce this issue with the latest 3.0-rc1 release, and\nit does not leak with this minimal example.\n\nCan you, please, try to reproduce it with 3.0-rc1 version?\n-   Assignee set to Maksim Shabunin\n-   Status changed from Open to Incomplete\n```"}}