[QGIS-trac] [Quantum GIS] #2457: qgis (1.4, trunk) crashes if reprojecting with a raster active in the legend

Quantum GIS qgis at qgis.org
Sun Feb 21 14:31:10 EST 2010


#2457: qgis (1.4, trunk) crashes if reprojecting with a raster active in the
legend
---------------------------------------------------------+------------------
   Reporter:  lutra                                      |              Owner:  nobody       
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 1.5.0
  Component:  Projection Support                         |            Version:  HEAD         
   Keywords:                                             |   Platform_version:               
   Platform:  All                                        |           Must_fix:  Yes          
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 The following has been tested with data from the QGIS sample dataset (plus
 the small shapefile attached to this ticket) but also with data from other
 geographic regions/projections.

 When the problem occurs qgis freezes, starts to eat memory/cpu and
 eventually crashes (in the 1.4 version the crash is immediate). It has
 been proved on ubuntu 9.04, 9.10, Debian testing and Windows XP.

 [[BR]]
 [[BR]]

 Steps:

 *) add the "alaska.shp" shapefile from the qgis sample dataset.

 *) set the project crs as the one of the above vector, EPSG:2964 and
 '''enable''' on the fly reprojection

 *) add the "landcover.img" raster from the qgis sample dataset (it is
 defined in the the EPSG:2964 crs)

 *) add to the project the attached shapefile ("alaska_clipped.shp"): it
 was obtained by clipping the Alaska region from the "world borders"
 shapefile, that is defined in the WGS84 crs (EPSG:4326)


 everything align OK, because the last vector is correctly reprojected in
 the EPSG:2964 coordinate system


 *) uncheck from the legend the raster layer

 *) go in the project properties and change the project crs from EPSG:2964
 to EPSG:4326

 *) at this stage the two vectors still align perfectly as the first one is
 reprojected in the EPSG:4326 coordinate system

 *) now check the raster layer in the legend (I KNOW THAT WON'T BE
 REPROJECTED IN ANY CASE): qgis freezes, starts to eat memory/cpu and
 eventually crashes


 [[BR]]
 [[BR]]

 The counter test '''DOES NOT CAUSE''' qgis to crash. Steps:

 [[BR]]


 *) Use the gdal_warp utility to reproject the "landcover.img" raster from
 EPSG:2964 to EPSG:4326

 *) Add the obtained raster to a new project defined in the EPSG:4326
 coordinate system and enable on the fly reprojection

 *) add the attached shapefile ("alaska_clipped.shp")

 *) add the shapefile "alaska.shp" from the qgis sample dataset

 everything align OK, because the last vector is correctly reprojected in
 the EPSG:4326 coordinate system

 *) uncheck from the legend the raster layer

 *) go in the project properties and change the project crs from EPSG:4326
 to EPSG:2964

 *) at this stage the two vectors still align perfectly as the first one is
 reprojected in the EPSG:2964 coordinate system

 *) now check the raster layer in the legend (I KNOW THAT WON'T BE
 REPROJECTED IN ANY CASE): qgis does not freeze nor crash, it simple does
 not show the raster as expected.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/2457>
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