MantisBT

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001442Orfeo Toolbox (OTB)Generalpublic2017-07-21 11:232017-07-26 11:45
Reporternsfaksi 
Assigned To 
PriorityhighSeveritycrashReproducibilityhave not tried
StatusnewResolutionopen 
PlatformLinuxOSUbuntuOS Versionutbuntu 16.10
Summary0001442: TrainImagesClassifier problem
DescriptionI use otb Superbuild 5.10.1
I have had a correted double-linked error which was partially solved by Rashed during the OTB user's days.
The otbcli_TrainImagesClassifier crashed several times during the process, so I tryed differents parametres but still crashed.
here the error message a had:
"""
raining model...: 100% [**************************************************] (8e+04 seconds)
[sen2os:23072] *** Process received signal ***
[sen2os:23072] Signal: Segmentation fault (11)
[sen2os:23072] Signal code: Address not mapped (1)
[sen2os:23072] Failing at address: 0x8
[sen2os:23072] [ 0] /lib/x86_64-linux-gnu/libc.so.6(+0x35860)[0x794f99b55860]
[sen2os:23072] [ 1] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(cvSetAdd+0x19b)[0x794f71d15bcb]
[sen2os:23072] [ 2] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(cvGetFileNode+0x58e)[0x794f71df362e]
[sen2os:23072] [ 3] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x1856fb)[0x794f71df36fb]
[sen2os:23072] [ 4] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x189ebd)[0x794f71df7ebd]
[sen2os:23072] [ 5] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x1896bb)[0x794f71df76bb]
[sen2os:23072] [ 6] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x189781)[0x794f71df7781]
[sen2os:23072] [ 7] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x1896bb)[0x794f71df76bb]
[sen2os:23072] [ 8] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x189781)[0x794f71df7781]
[sen2os:23072] [ 9] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x1896bb)[0x794f71df76bb]
[sen2os:23072] [10] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x189781)[0x794f71df7781]
[sen2os:23072] [11] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(+0x189781)[0x794f71df7781]
[sen2os:23072] [12] /usr/lib/x86_64-linux-gnu/libopencv_core.so.2.4(cvOpenFileStorage+0x761)[0x794f71df9501]
[sen2os:23072] [13] /usr/lib/x86_64-linux-gnu/libopencv_ml.so.2.4(_ZN11CvStatModel4loadEPKcS1_+0x32)[0x794f71a36212]
[sen2os:23072] [14] /usr/local/bin/../lib/otb/applications/otbapp_TrainVectorClassifier.so(_ZN3otb7Wrapper23LearningApplicationBaseIfiE8ClassifyEN3itk12SmartPointerINS3_10Statistics10ListSampleINS3_20VariableLengthVectorIfEEEEEENS4_INS6_INS3_10FixedArrayIiLj1EEEEEEENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x2cb)[0x794f7265cffb]
[sen2os:23072] [15] /usr/local/bin/../lib/otb/applications/otbapp_TrainVectorClassifier.so(_ZN3otb7Wrapper21TrainVectorClassifier9DoExecuteEv+0x25f3)[0x794f7265f973]
[sen2os:23072] [16] /usr/local/lib/libOTBApplicationEngine-5.10.so.1(_ZN3otb7Wrapper11Application7ExecuteEv+0x589)[0x794f9b0a9ce9]
[sen2os:23072] [17] /usr/local/lib/libOTBApplicationEngine-5.10.so.1(_ZN3otb7Wrapper20CompositeApplication15ExecuteInternalENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE+0x5e5)[0x794f9b0bf7d5]
[sen2os:23072] [18] /usr/local/bin/../lib/otb/applications/otbapp_TrainImagesClassifier.so(_ZN3otb7Wrapper21TrainImagesClassifier9DoExecuteEv+0x4b0a)[0x794f795c14ca]
[sen2os:23072] [19] /usr/local/lib/libOTBApplicationEngine-5.10.so.1(_ZN3otb7Wrapper11Application7ExecuteEv+0x589)[0x794f9b0a9ce9]
[sen2os:23072] [20] /usr/local/lib/libOTBApplicationEngine-5.10.so.1(_ZN3otb7Wrapper11Application21ExecuteAndWriteOutputEv+0xc5)[0x794f9b0af225]
[sen2os:23072] [21] /usr/local/lib/libOTBCommandLine-5.10.so.1(_ZN3otb7Wrapper19CommandLineLauncher21ExecuteAndWriteOutputEv+0x61)[0x794f9b59df61]
[sen2os:23072] [22] /usr/local/bin/otbApplicationLauncherCommandLine(main+0x501)[0x621790863c1]
[sen2os:23072] [23] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)[0x794f99b403f1]
[sen2os:23072] [24] /usr/local/bin/otbApplicationLauncherCommandLine(_start+0x2a)[0x6217908689a]
[sen2os:23072] *** End of error message ***
/usr/local/bin/otbcli: line 38: 23072 Segmentation fault $OTB_CLI_LAUNCHER "$@"
"""
Additional InformationThere are some information which can be usefull to resolve or to understand the problem:
the image to train: a temporal serie of sentinel2 of 26 Go (15 dates and 10 bands per date).
The training set is made of 18 classes and about 70 Mo.
The system is under ubuntu 16.10 with RAM of 64 Go and a 64 Go of swap and about 500 Go free disk.
The OTB version is: superbuild 5.10.1.
that is the commande line I run:
/usr/local/bin/otbcli_TrainImagesClassifier -io.il /home/Bureau/Data/NewProcess/TimeSerieGap_mask2.tif -io.vd /home/Bureau/Data/NewProcess/trainingset_18cl_25K.shp -io.imstat /home/Bureau/Data/NewProcess/TimeSerieGap_stat.xml -io.confmatout /home/Bureau/Data/NewProcess/RF_ConfusionMatrix.csv -io.out /home/Bureau/Data/NewProcess/RF1_Model.txt -elev.dem /home/Bureau/Data/srtm/srtm_PNE_32631.tif -sample.vfn code -sample.vtr 0.5 -classifier rf -sample.bm 1 -sample.mt 25000 -sample.mv -1 -classifier.rf.max 25 -classifier.rf.min 10 -classifier.rf.ra 0 -classifier.rf.cat 10 -classifier.rf.var 22 -classifier.rf.nbtrees 1000 -classifier.rf.acc 0.01
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0004245)
rashadkm (developer)
2017-07-25 18:21

can you also explain the installation procedure for OTB?

source build or binary package ?.

In any case, can you also report back if there is multiple installation of OTB in /usr/local/
maybe ls /usr/local/lib/libOTB* will help
(0004246)
nsfaksi (reporter)
2017-07-26 11:42
edited on: 2017-07-26 11:45

I used a build to install OTB
first I cloned the git repository then I installed it using : ccmake (I don't know if it's can help you).

I had servral version of OTB, but I was supposed deleted two version, but finally, using your command line I have 3 versions:
5.10
5.10.1
6.0
here the result of the ls commande:
"""
/usr/local/lib/libOTBApplicationEngine-5.10.so
/usr/local/lib/libOTBApplicationEngine-5.10.so.1
/usr/local/lib/libOTBApplicationEngine-6.1.so
/usr/local/lib/libOTBBioVars-5.10.so
/usr/local/lib/libOTBBioVars-5.10.so.1
/usr/local/lib/libOTBCarto-5.10.so
/usr/local/lib/libOTBCarto-5.10.so.1
/usr/local/lib/libOTBCarto-6.1.so
/usr/local/lib/libOTBCommandLine-5.10.so
/usr/local/lib/libOTBCommandLine-5.10.so.1
/usr/local/lib/libOTBCommandLine-6.1.so
/usr/local/lib/libOTBCommandLineParser-5.10.so
/usr/local/lib/libOTBCommandLineParser-5.10.so.1
/usr/local/lib/libOTBCommandLineParser-6.1.so
/usr/local/lib/libOTBCommon-5.10.so
/usr/local/lib/libOTBCommon-5.10.so.1
/usr/local/lib/libOTBCommon-6.1.so
/usr/local/lib/libOTBCurlAdapters-5.10.so
/usr/local/lib/libOTBCurlAdapters-5.10.so.1
/usr/local/lib/libOTBCurlAdapters-6.1.so
/usr/local/lib/libOTBEdge-5.10.so
/usr/local/lib/libOTBEdge-5.10.so.1
/usr/local/lib/libOTBEdge-6.1.so
/usr/local/lib/libOTBExtendedFilename-5.10.so
/usr/local/lib/libOTBExtendedFilename-5.10.so.1
/usr/local/lib/libOTBExtendedFilename-6.1.so
/usr/local/lib/libOTBFuzzy-5.10.so
/usr/local/lib/libOTBFuzzy-5.10.so.1
/usr/local/lib/libOTBFuzzy-6.1.so
/usr/local/lib/libOTBGdalAdapters-5.10.so
/usr/local/lib/libOTBGdalAdapters-5.10.so.1
/usr/local/lib/libOTBGdalAdapters-6.1.so
/usr/local/lib/libOTBGRM-5.10.so
/usr/local/lib/libOTBGRM-5.10.so.1
/usr/local/lib/libOTBIce-5.10.so
/usr/local/lib/libOTBIce-5.10.so.1
/usr/local/lib/libOTBIceViewer-5.10.so
/usr/local/lib/libOTBIceViewer-5.10.so.1
/usr/local/lib/libOTBImageBase-5.10.so
/usr/local/lib/libOTBImageBase-5.10.so.1
/usr/local/lib/libOTBImageBase-6.1.so
/usr/local/lib/libOTBImageIO-5.10.so
/usr/local/lib/libOTBImageIO-5.10.so.1
/usr/local/lib/libOTBImageIO-6.1.so
/usr/local/lib/libOTBImageManipulation-5.10.so
/usr/local/lib/libOTBImageManipulation-5.10.so.1
/usr/local/lib/libOTBImageManipulation-6.1.so
/usr/local/lib/libOTBIOBSQ-5.10.so
/usr/local/lib/libOTBIOBSQ-5.10.so.1
/usr/local/lib/libOTBIOBSQ-6.1.so
/usr/local/lib/libOTBIOGDAL-5.10.so
/usr/local/lib/libOTBIOGDAL-5.10.so.1
/usr/local/lib/libOTBIOGDAL-6.1.so
/usr/local/lib/libOTBIOKML-5.10.so
/usr/local/lib/libOTBIOKML-5.10.so.1
/usr/local/lib/libOTBIOLUM-5.10.so
/usr/local/lib/libOTBIOLUM-5.10.so.1
/usr/local/lib/libOTBIOLUM-6.1.so
/usr/local/lib/libOTBIOMSTAR-5.10.so
/usr/local/lib/libOTBIOMSTAR-5.10.so.1
/usr/local/lib/libOTBIOMSTAR-6.1.so
/usr/local/lib/libOTBIOMW-5.10.so
/usr/local/lib/libOTBIOMW-5.10.so.1
/usr/local/lib/libOTBIOONERA-5.10.so
/usr/local/lib/libOTBIOONERA-5.10.so.1
/usr/local/lib/libOTBIOONERA-6.1.so
/usr/local/lib/libOTBIORAD-5.10.so
/usr/local/lib/libOTBIORAD-5.10.so.1
/usr/local/lib/libOTBIORAD-6.1.so
/usr/local/lib/libOTBIOTileMap-5.10.so
/usr/local/lib/libOTBIOTileMap-5.10.so.1
/usr/local/lib/libOTBIOTileMap-6.1.so
/usr/local/lib/libOTBMapla-5.10.a
/usr/local/lib/libOTBMathParser-5.10.so
/usr/local/lib/libOTBMathParser-5.10.so.1
/usr/local/lib/libOTBMathParserX-5.10.so
/usr/local/lib/libOTBMathParserX-5.10.so.1
/usr/local/lib/libOTBMetadata-5.10.so
/usr/local/lib/libOTBMetadata-5.10.so.1
/usr/local/lib/libOTBMetadata-6.1.so
/usr/local/lib/libOTBMonteverdi-5.10.a
/usr/local/lib/libOTBMonteverdiCore-5.10.so
/usr/local/lib/libOTBMonteverdiCore-5.10.so.1
/usr/local/lib/libOTBMonteverdiGUI-5.10.so
/usr/local/lib/libOTBMonteverdiGUI-5.10.so.1
/usr/local/lib/libOTBMPIConfig-5.10.so
/usr/local/lib/libOTBMPIConfig-5.10.so.1
/usr/local/lib/libOTBOpenThreadsAdapters-5.10.so
/usr/local/lib/libOTBOpenThreadsAdapters-5.10.so.1
/usr/local/lib/libOTBOpenThreadsAdapters-6.1.so
/usr/local/lib/libOTBOpticalCalibration-5.10.so
/usr/local/lib/libOTBOpticalCalibration-5.10.so.1
/usr/local/lib/libOTBOpticalCalibration-6.1.so
/usr/local/lib/libOTBOSSIMAdapters-5.10.so
/usr/local/lib/libOTBOSSIMAdapters-5.10.so.1
/usr/local/lib/libOTBOSSIMAdapters-6.1.so
/usr/local/lib/libOTBPhenology-5.10.so
/usr/local/lib/libOTBPhenology-5.10.so.1
/usr/local/lib/libOTBPolarimetry-5.10.so
/usr/local/lib/libOTBPolarimetry-5.10.so.1
/usr/local/lib/libOTBPolarimetry-6.1.so
/usr/local/lib/libOTBProjection-5.10.so
/usr/local/lib/libOTBProjection-5.10.so.1
/usr/local/lib/libOTBProjection-6.1.so
/usr/local/lib/libOTBQtAdapters-5.10.so
/usr/local/lib/libOTBQtAdapters-5.10.so.1
/usr/local/lib/libOTBQtWidget-5.10.so
/usr/local/lib/libOTBQtWidget-5.10.so.1
/usr/local/lib/libOTBRCC8-5.10.so
/usr/local/lib/libOTBRCC8-5.10.so.1
/usr/local/lib/libOTBSampling-5.10.so
/usr/local/lib/libOTBSampling-5.10.so.1
/usr/local/lib/libOTBSampling-6.1.so
/usr/local/lib/libOTBSimulation-5.10.so
/usr/local/lib/libOTBSimulation-5.10.so.1
/usr/local/lib/libOTBSimulation-6.1.so
/usr/local/lib/libOTBStatistics-5.10.so
/usr/local/lib/libOTBStatistics-5.10.so.1
/usr/local/lib/libOTBStatistics-6.1.so
/usr/local/lib/libOTBStreaming-5.10.so
/usr/local/lib/libOTBStreaming-5.10.so.1
/usr/local/lib/libOTBStreaming-6.1.so
/usr/local/lib/libOTBSupervised-5.10.so
/usr/local/lib/libOTBSupervised-5.10.so.1
/usr/local/lib/libOTBSupervised-6.1.so
/usr/local/lib/libOTBSVMLearning-5.10.so
/usr/local/lib/libOTBSVMLearning-5.10.so.1
/usr/local/lib/libOTBTemporalGapFilling-5.10.so
/usr/local/lib/libOTBTemporalGapFilling-5.10.so.1
/usr/local/lib/libOTBTestKernel-5.10.so
/usr/local/lib/libOTBTestKernel-5.10.so.1
/usr/local/lib/libOTBTestKernel-6.1.so
/usr/local/lib/libOTBTransform-5.10.so
/usr/local/lib/libOTBTransform-5.10.so.1
/usr/local/lib/libOTBTransform-6.1.so
/usr/local/lib/libOTBVectorDataBase-5.10.so
/usr/local/lib/libOTBVectorDataBase-5.10.so.1
/usr/local/lib/libOTBVectorDataBase-6.1.so
/usr/local/lib/libOTBVectorDataIO-5.10.so
/usr/local/lib/libOTBVectorDataIO-5.10.so.1
/usr/local/lib/libOTBVectorDataIO-6.1.so
/usr/local/lib/libOTBWavelet-5.10.so
/usr/local/lib/libOTBWavelet-5.10.so.1
/usr/local/lib/libOTBWavelet-6.1.so
"""

so I don't what to do to delete the unused versions.


- Issue History
Date Modified Username Field Change
2017-07-21 11:23 nsfaksi New Issue
2017-07-25 18:21 rashadkm Note Added: 0004245
2017-07-26 11:42 nsfaksi Note Added: 0004246
2017-07-26 11:45 nsfaksi Note Edited: 0004246 View Revisions


Copyright © 2000 - 2017 MantisBT Team
Powered by Mantis Bugtracker