ORB feature detector crashes with AccessViolationException (Bug #4423)


Added by Robert Schwede over 9 years ago. Updated over 9 years ago.


Status:New Start date:2015-06-19
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:features2d
Target version:3.0
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty: HW Platform:x64
Pull request:

Description

When trying to to detect features on a large number of images, Orb::detectAndCompute() crashes from time to time with an AccessViolationException.
All my images are of the same size (256x256 pixels), it makes no difference if they contain random data or meaningful images.

I use Emgu.CV to call opencv from my c# program.

For the ORB detector, I use the following parameters:

nfeatures=1000, scaleFactor=1.2f, nlevels=1, edgeThreshold=0, firstLevel=0, WTA_K=2, scoreType=ORB::HARRIS_SCORE, patchSize=32

I was not able to reproduce the crash when I changed the patchSize to 31.

The crash happens after processing ~1000 images when processing the images in a sequential for-loop, but much faster (~20 images) when I try to process several images in parallel.

I was able to catch the exception in the VisualStudio debugger, but i have no experience in debugging unmanaged code. Please give me instructions how to extract additional information from the debugger, if neccessary.
Attached are screenshots from the debugger, showing the part of the code where the exception happens, and the local variables.


orb_dbg1.png - Debugger screenshot 1 (121.7 kB) Robert Schwede, 2015-06-19 09:40 am

orb_dbg2.png - Debugger screenshot 2 (32.4 kB) Robert Schwede, 2015-06-19 09:40 am


History

Updated by Robert Schwede over 9 years ago

  • Assignee deleted (Maria Dimashova)

Updated by Maksim Shabunin over 9 years ago

Issue has been transferred to GitHub: https://github.com/Itseez/opencv/issues/5031

Also available in: Atom PDF