Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contourFinder crash with setSortBySize #249

Open
davidlemarechal opened this issue Jun 25, 2018 · 1 comment
Open

contourFinder crash with setSortBySize #249

davidlemarechal opened this issue Jun 25, 2018 · 1 comment

Comments

@davidlemarechal
Copy link

Hello,

On Windows 10, OF 0.10, ofxCv master branch, VS 2017, I can build and run the example contour-tracking without problem.
But adding:
contourFinder.setSortBySize(true) in the setup will make the app run for a few seconds and crash with this message :

Debug Assertion Failed
Program : C:\WINDOWS\SYSTEM32\MSVCP140D.dll
File : c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.14.26428\include\vector
Line : 1818

Expression : vector subscript out of range

And Visual Studio 2017 points to ofxCv::CompareContourArea in line 18 and says:
Unhandled exception at 0x03CFED76 (ucrtbased.dll) in exampleContourTracking_debug.exe: An invalid parameter was passed to a function that considers invalid parameters fatal.

However, this doesn't happen when I build and run in Release mode.

Any ideas ?

@davidlemarechal davidlemarechal changed the title contourFinder crash with setOrderBySize contourFinder crash with setSortBySize Jun 25, 2018
@ofZach
Copy link

ofZach commented Sep 27, 2018

I am seeing a similar crash in CompareContourArea on android

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants