Applications TrainImagesClassifier and ImageClassifier crash ; 3.18-rc1
Mantis Issue 734, reported by sdinot, assigned to jmalik, created: 2013-07-03
When I try to use TrainImagesClassifier, the application crashes, and the same goes for ImageClassifier. (Maybe ImageClassifier crashes because the model is not computed correctly by TrainImagesClassifier) Theses functions worked properly in revision 15872. The issue happens with both the cli and gui applications. I tried to change some settings but I didn't manage to get it working.
An archive is joined, containing all the files to test if necessary(138MB): https://melanissimo.developpement-durable.gouv.fr/lecture.jsf?uuid=07961291cce1e1005d9223d1e87ab557 Files are available until 07/16/2013 included.
If you do not encounter the issue with the files provided, maybe it's a problem in our installation/configuration
TRAINING:
2013 Jul 03 14:42:00 : Application.logger (DEBUG) Entering DoExecute
2013 Jul 03 14:42:23 : Application.logger (INFO) Elevation management: setting default height above ellipsoid to 0 meters
2013 Jul 03 14:43:50 : Application.logger (WARNING) No validation samples.
2013 Jul 03 14:43:50 : Application.logger (INFO) Number of training samples: 19524
2013 Jul 03 14:43:50 : Application.logger (INFO) Size of training set: 19524
2013 Jul 03 14:43:50 : Application.logger (INFO) Size of validation set: 0
2013 Jul 03 14:43:50 : Application.logger (INFO) Size of labeled training set: 19524
2013 Jul 03 14:43:50 : Application.logger (INFO) Size of labeled validation set: 0
2013 Jul 03 14:44:21 : Application.logger (WARNING) The validation set is empty. The performance estimation is done using the input training set in this case.
/usr/local/bin/otbcli: line 29: 28325 Segmentation fault (core dumped) OTB_CLI_LAUNCHER "
@"
CLASSIFICATION:
2013 Jul 03 14:57:56 : Application.logger (INFO) Loading model
/usr/local/bin/otbcli: line 29: 28430 Segmentation fault (core dumped) OTB_CLI_LAUNCHER "
@"
1372859753 - grizonnetmHi,
just download you're dataset and I can not reproduce the segmentation fault with the same command line (for training and classification).
Think that it is more related with a configuration issue. Do you remove your build directory before you've updated to 3.18?
1372864870 - MorganI removed the build directory (OTB-Binary), plus: usr/local/bin/* usr/local/lib/otb usr/local/include/otb
Then I run:
cmake ../OTB -DBUILD_APPLICATIONS=ON -DOTB_WRAP_QT=ON make -j16 #Installation de l'OTB sudo make install sudo ldconfig -v
Note: The machine where I tested was pretty clean. I first installed the latest version of OTB, then the 3.18-rc1 (following the step above). No previous version were ever installed on this machine.
We tested other applications, only these two caused problems. Example of applications tested successfully: Rasterization BandMath KmeansClassification ComputeConfusionMatrix
1372867639 - julienmmany thanks for the f