ORB feature detector crashes with AccessViolationException (Bug #4423)
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.
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