ObjectCounting segfault
Mantis Issue 60, reported by echristophe, assigned to cvalladeau, created: 2008-12-23
To reproduce:
- Open image
- click somewhere
- press "Run Preview"
=> segfault
Tried to add the test: otbObjectCountingApplicationRunPreview to illustrate that, but something is missing as the test is working.
1230025884 - C ValladeauCorrected.
1230060711 - ingladaIt happens to me too, but :
- The image file name is passed on the command line
- The first counting works OK
- only when changing to another area an exception is thrown when the 2nd point of the polygon is entered:
terminate called after throwing an instance of 'itk::ExceptionObject' what(): /opt/stok/src/OTB/Code/Common/otbObjectList.txx:116: itk::ERROR: ObjectList(0x830aa58): Impossible to GetNthElement with the index element 2 ; this element don't exist, the size of the list is 1.
1231338472 - C Valladeaucorrected. Problem with current polygon index solved.
1231513225 - C ValladeauCorrected by Cyrille.