Memory allocation problem in CvSVM (Bug #887)
Description
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. But I am using code which includes the fix in r4119 and I still get the error. Perhaps the fix didn't work?
My own code which called the library was compiled using g++.
History
Updated by Maria Dimashova almost 14 years ago
Thanks for the bug report and for the sample. The problem was fixed in r5003.
- Status changed from Open to Done
- (deleted custom field) set to fixed
Updated by Andrey Kamaev almost 13 years ago
- Description changed from When the training data matrix input to [[CvSVM]]'s train_auto has more th... to When the training data matrix input to [[CvSVM]]'s train_auto has more th... More