Re: OTB segfault
On 01/19/2018 09:26 AM, Paolo Cavallini wrote:
> Hi all,
>
> Il 19/01/2018 08:43, Paolo Cavallini ha scritto:
>> Il 19/01/2018 08:17, Sebastiaan Couwenberg ha scritto:
>
>>> Please install the dbgsym packages and provide a gdb backtrace.
>>
>> will do ASAP and report here.
>
> one step further:
> ===
> /usr/bin/otbcli_Segmentation -in "land.tif" -filter meanshift
> -filter.meanshift.spatialr 5 -filter.meanshift.ranger 15
> -filter.meanshift.thres 0.1 -filter.meanshift.maxiter 100
> -filter.meanshift.minsize 100 -mode vector -mode.vector.outmode ulco
> -mode.vector.neighbor true -mode.vector.stitch true -mode.vector.minsize
> 1 -mode.vector.simplify 0.1 -mode.vector.layername layer
> -mode.vector.fieldname DN -mode.vector.tilesize 1024
> -mode.vector.startlabel 1 -mode.vector.out "mode.vector.out.shp"
> 2018-01-19 09:22:25 (INFO): Use threaded Mean-shift segmentation.
>
> 2018-01-19 09:22:25 (INFO): Use 8 connected neighborhood.
>
> 2018-01-19 09:22:25 (INFO): Simplify the geometry.
>
> 2018-01-19 09:22:25 (INFO): Large scale segmentation mode which output
> vector data
>
> Segmentation fault
> ===
> I have added
> deb http://debug.mirrors.debian.org/debian-debug/ unstable-debug main
> but I do not know which dbgsym package to install (I would like to avoid
> blindly installing all otb dbgsym). Any hint would be appreciated.
> All the best.
The otbcli executables are provided by the otb-bin package:
$ apt-file search /usr/bin/otbcli_Segmentation
otb-bin: /usr/bin/otbcli_Segmentation
The otb-bin-dbgsym is the corresponding debug package:
$ apt-cache search otb-bin-dbgsym
otb-bin-dbgsym - debug symbols for otb-bin
After installing the -dbgsym package, you can get a backtrace by running
the otbcli command with all its arguments via gdb:
$ OTB_APPLICATION_PATH=/usr/lib/otb/applications gdb -args \
/usr/bin/otbApplicationLauncherCommandLine Segmentation \
-in "land.tif" ...
You need to translate the otbcli_Segmentation command to the
otbApplicationLauncherCommandLine command because the former is only a
shell script wrapper just like otbcli.
In the gdb prompt you type:
run
After you get the segfault type:
bt full
Kind Regards,
Bas
Reply to: