https://issues.qgis.org/https://issues.qgis.org/favicon.ico2013-07-07T06:14:37ZQGIS Issue TrackingQGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=426692013-07-07T06:14:37ZDaniel Vazdanielvaz@gmail.com
<ul></ul><p>This bug was found while attempt to solve the bug <a class="issue tracker-1 status-5 priority-10 priority- closed" href="https://issues.qgis.org/issues/8219" title="fTools "Convex hull(s)" does not work if a input field is specified (Closed)">#8219</a>.</p> QGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=426712013-07-07T13:02:47ZDaniel Vazdanielvaz@gmail.com
<ul><li><strong>File</strong> <a href="/attachments/download/5957/bug8232.cpp">bug8232.cpp</a><a href="/attachments/5957/bug8232.cpp"><img alt="Magnifier" src="/images/magnifier.png" /></a> added</li></ul><p>The main cause is underlying c++ code. The following code attached shows the bug in c++</p> QGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=426722013-07-07T13:30:27ZJürgen Fischerjef@norbit.de
<ul><li><strong>Resolution</strong> set to <i>up-/downstream</i></li></ul><p>apparently a GDAL/OGR problem:</p>
<pre>
$ ogrinfo -sql 'SELECT DISTINCT "name" FROM "polygons" ORDER BY name ASC' .
INFO: Open of `.'
using driver `ESRI Shapefile' successful.
Layer name: polygons
Geometry: Polygon
Segmentation fault (core dumped)
</pre> QGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=426732013-07-07T13:37:19ZJürgen Fischerjef@norbit.de
<ul><li><strong>Subject</strong> changed from <i>Python API QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index field</i> to <i>QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index field</i></li></ul> QGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=426742013-07-07T13:37:40ZJürgen Fischerjef@norbit.de
<ul><li><strong>Category</strong> changed from <i>Python plugins</i> to <i>Vectors</i></li></ul> QGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=426752013-07-07T14:23:05ZJürgen Fischerjef@norbit.de
<ul></ul><p>Reproducable with GDAL 1.9, but not 1.10.</p> QGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=427032013-07-08T10:46:28ZDaniel Vazdanielvaz@gmail.com
<ul></ul><p>I think that bug was fixed in <a href="http://trac.osgeo.org/gdal/ticket/4509" class="external">GDAL #4509</a></p> QGIS Application - Bug report #8232: QgsVectorDataProvider.uniqueValues() crash if there is a NULL value in selected index fieldhttps://issues.qgis.org/issues/8232?journal_id=427072013-07-08T11:35:25ZJürgen Fischerjef@norbit.de
<ul><li><strong>Status</strong> changed from <i>Open</i> to <i>Closed</i></li></ul><p>Fixed in changeset <a class="changeset" href="https://issues.qgis.org/projects/qgis/repository/revisions/bf1d1b0453ba5bc274cc3a960a2cb6de4e061ee4" title="ogr provider: avoid GDAL #4509 (fixes #8232)">bf1d1b0453ba5bc274cc3a960a2cb6de4e061ee4</a>.</p>