SIFT memory leak (Bug #1288)


Added by Pavel Zykán over 13 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Maria Dimashova % Done:

0%

Category:features2d
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Sift feature extractor/descriptor seems to have a memory leak. The problem manifests even in a simple program, where I just load an image and then perform SIFT feature detection and extraction in a loop. Memory consumption is growing steadily with each iteration. On larger images I detect a leak of approx. 1,5 MB per processed image, which is quite noticable. Maybe I'm just not releasing the memory correctly - if this is the case, please let me know.

Platform Windows XP 32
IDE MS Visual Studio 2010 - I'm using C++/CLI projects
OpenCV 2.3 - no IPP


siftmemleak.bmp - Screenshot from Process Explorer (641.3 kB) Pavel Zykán, 2011-08-09 03:25 pm

SIFTMemLeakTest.cpp - CPP for mem leak test (1.2 kB) Pavel Zykán, 2011-08-09 03:26 pm


Associated revisions

Revision 99948127
Added by Maria Dimashova over 13 years ago

fixed memory leak in SIFT wrapper (#1288)

Revision bed3512d
Added by Roman Donchenko over 11 years ago

Merge pull request #1288 from nghiaho12:haar

History

Updated by Maria Dimashova over 13 years ago

Many thanks for the report! There was memory leak in my wrapper of Rob Hess's Sift implementation (in descriptors extraction). Is has been fixed in r6395.

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Updated by Pavel Zykán over 13 years ago

Awesome! Thanks!

Updated by Alexandre Benoit about 13 years ago

Maria Dimashova wrote:

Many thanks for the report! There was memory leak in my wrapper of Rob Hess's Sift implementation (in descriptors extraction). Is has been fixed in r6395.

Hi,
Is this problem also related to bug report Bug #1588 (http://code.opencv.org/issues/1588) ?
Thanks in advance.
Alex

Updated by Andrey Kamaev almost 13 years ago

  • Target version set to 2.4.0

Also available in: Atom PDF