[QGIS-trac] [Quantum GIS] #3592: qgis 1.7 trunk: loading project
made with qgis1.6 with raster in it crash with segfault
Quantum GIS
qgis at qgis.org
Fri Mar 11 07:02:32 EST 2011
#3592: qgis 1.7 trunk: loading project made with qgis1.6 with raster in it crash
with segfault
---------------------------------------------------------+------------------
Reporter: marcobra | Owner: nobody
Type: bug | Status: new
Priority: critical: causes crash or data corruption | Milestone: Version 1.7.0
Component: Build/Install | Version: Trunk
Keywords: | Platform_version:
Platform: All | Must_fix: Yes
Status_info: 0 |
---------------------------------------------------------+------------------
Sysop Ubuntu 10.04.2 32 bits
Load 1.6 project made qgis 15429 crash with segfault
Loaded : MapServer Export (package: mapserver_export)
Warning: QgsRasterLayer::setDataProvider: Data provider is invalid.
ERROR 10: Pointer 'hDS' is NULL in 'GDALGetRasterCount'.
Then i get a segfault
So checking the project xml i see i have the
Checking the project xml i see i have the
<provider></provider>
into raster files
-----------------------
...
<id>21313020080131153612340</id>
<datasource>/home/ubuntu/sit/mapserver/tif/213130.tif</datasource>
<layername>213130</layername>
<srs>
...
<customproperties/>
<provider></provider>
....
Solved by replacing all occurences of
<provider></provider>
with
<provider>gdal</provider>
Now old 1.6 project with raster are opened with success.
Thank you
Marco Braida
--
Ticket URL: <https://trac.osgeo.org/qgis/ticket/3592>
Quantum GIS <http://qgis.org>
Quantum GIS is an Open Source GIS viewer/editor supporting OGR, PostGIS, and GRASS formats
More information about the QGIS-trac
mailing list