Memory allocation problem in CvSVM (Bug #887)


Added by R K about 14 years ago. Updated almost 13 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:Maria Dimashova % Done:

0%

Category:ml
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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++.


MLTrainerDebug.cpp - Source code to reproduce bug. (892 Bytes) R K, 2011-02-14 05:06 pm


Associated revisions

Revision 2f81eb22
Added by Maria Dimashova almost 14 years ago

fixed #887

Revision 7efb2491
Added by Roman Donchenko almost 12 years ago

Merge pull request #887 from LeszekSwirski:fix-glinkedptrmutex

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

Also available in: Atom PDF