# VectorClassifier - update mode - segmentation fault

**URL:** <https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468>\
**Category:** OTB Usage\
**Created:** [November 7, 2019, 10:46am UTC](https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468 "2019-11-07T10:46:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArthurV](https://forum.orfeo-toolbox.org/letter_avatar_proxy/v4/letter/a/b9bd4f/32.png) [@ArthurV](https://forum.orfeo-toolbox.org/u/ArthurV)\
**Post date:** [November 7, 2019, 10:46am UTC](https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468/1 "2019-11-07T10:46:57Z")

</div>

I’m using the `VectorClassifier` [7.0.0 binary](https://www.orfeo-toolbox.org/download/) this way

```bash
otbcli_VectorClassifier -in T31TCJ_region_2_seed0_Samples_SP.sqlite -feat sentinel2_b2_20151130 sentinel2_b3_20151130 sentinel2_b4_20151130 sentinel2_b5_20151130 sentinel2_b6_20151130 sentinel2_b7_20151130 sentinel2_b8_20151130 sentinel2_b8a_20151130 sentinel2_b11_20151130 sentinel2_b12_20151130 sentinel2_ndwi_20151130 sentinel2_brightness_20151130 -model model_2_it_0.rf

```

and I get the following errors :

```bash
ERROR 6: WriteBlock() not supported for this dataset.
/mnt/data/home/vincenta/OTB-7.0.0-Linux64/bin/otbcli : ligne 55 : 31454 Erreur de segmentation (core dumped)$OTB_CLI_LAUNCHER "$@"

```

[model\_2\_it\_0.rf](https://forum.orfeo-toolbox.org/uploads/short-url/3A6VANrWn99UKzF0V2gCclYfzlE.rf) (20.0 KB)

[T31TCJ\_region\_2\_seed0\_Samples\_SP.sqlite](https://forum.orfeo-toolbox.org/uploads/short-url/jJzYX4za1zig0ujNs5jsibdb0yd.sqlite) (172 KB)

Is something is wrong with the input dataBase ?

If the parameter `-out` is provided, everything works.

The same command (in update mode) works properly with 6.6.2 binaries.

Thanks,

---

<div class="post-metadata">

**Author:** ![yannick](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/yannick/32/24_2.png) [@yannick](https://forum.orfeo-toolbox.org/u/yannick)\
**Post date:** [November 20, 2019, 10:43am UTC](https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468/2 "2019-11-20T10:43:56Z")

</div>

Hi Arthur,  
I can reproduce your problem but do not understand yet what is going wrong… Your database seems ok.  
Thank for your [bug report](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/issues/1993) in Gitlab  
best regards,  
Yannick

---

<div class="post-metadata">

**Author:** ![rdzur](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/rdzur/32/386_2.png) [@rdzur](https://forum.orfeo-toolbox.org/u/rdzur)\
**Post date:** [March 20, 2021, 12:55am UTC](https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468/3 "2021-03-20T00:55:45Z")

</div>

Hello Yannick,

I have a failure on macOS (v7.2.0) with VectorClassifier which appears to be related to this post where the command is trying to interact with an sqlite vector database. I also experienced update issues working with sqlite using Large Scale Meanshift ([LargeScaleMeanShift - sqlite / gpkg fatal error](https://forum.orfeo-toolbox.org/t/largescalemeanshift-sqlite-gpkg-fatal-error/943)). I realize this thread corresponds to a prior version and is somewhat dated, however, I was wondering if SQLite update capabilities or additional GDAL/OGR capable vector datasets (I will plan on attempting this operations with GPKG) may be in the planning and something that may be addressed with the upcoming work on v8.0? I am using SQLite due to the file size limitations shapefiles.

2021-03-19 18:14:34 (INFO) VectorClassifier: Update input vector data.  
ERROR 1: SpatiaLite v4 DB found, but updating tables disabled because no linking against spatialite library !  
/Applications/OTB-7.2.0-Darwin64/bin/otbcli: line 55: 63648 Segmentation fault: 11 OTB\_CLI\_LAUNCHER "@"

Thank you.

## Rob

---

<div class="post-metadata">

**Author:** ![rdzur](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/rdzur/32/386_2.png) [@rdzur](https://forum.orfeo-toolbox.org/u/rdzur)\
**Post date:** [March 20, 2021, 4:06pm UTC](https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468/4 "2021-03-20T16:06:14Z")

</div>

Just a quick update. No issues with otbcli\_VectorClassifier and updating using GeoPackage. Still, would be interested in the operations with SQLite. I imagine this may be part of the ongoing effort with the open issue [Available drivers in Datasource and VectorData (#2061) · Issues · Main Repositories / otb · GitLab](https://gitlab.orfeo-toolbox.org/orfeotoolbox/otb/-/issues/2061) ?

Thank you again.

Rob

---

<div class="post-metadata">

**Author:** ![yannick](https://forum.orfeo-toolbox.org/user_avatar/forum.orfeo-toolbox.org/yannick/32/24_2.png) [@yannick](https://forum.orfeo-toolbox.org/u/yannick)\
**Post date:** [March 22, 2021, 9:57am UTC](https://forum.orfeo-toolbox.org/t/vectorclassifier-update-mode-segmentation-fault/468/5 "2021-03-22T09:57:09Z")

</div>

Hello Robert,

Thank you for your message.  
We have to analyze these problems and give a clear status for next OTB version…

Best regards,

Yannick
