Updated by Andrey Kamaev almost 13 years ago

When the training data matrix input to [[CvSVM]]'s train_auto has more than 2730 rows, I get

[[OpenCV]] Error: One of arguments' values is out of range (requested size is negative or too big) in cvMemStorageAlloc, file [omitted]/opencv/OpenCV-2.2.0/modules/core/src/datastructs.cpp, line 332
terminate called after throwing an instance of 'cv::Exception'
what(): [omitted]/opencv/OpenCV-2.2.0/modules/core/src/datastructs.cpp:332: error: (-211) requested size is negative or too big in function cvMemStorageAlloc

I'm using [[OpenCV]]-2.2.0 compiled on Mac OSX 10.6 64 bit using cmake. Bug reproduced both with debug and release build. Used default options for cmake, i.e. SSE2, without IPP and without TBB etc.

This appears to be a replica of ticket #511. 511: https://code.ros.org/trac/opencv/ticket/511. But I am using code which includes the fix in r4119 https://code.ros.org/trac/opencv/changeset/4119 and I still get the error. Perhaps the fix didn't work?

My own code which called the library was compiled using g++.

Back