[QGIS-trac] Re: [Quantum GIS] #1272: adding a GRASS raster crashes QGIS

Quantum GIS qgis at qgis.org
Wed Sep 3 14:08:21 EDT 2008


#1272: adding a GRASS raster crashes QGIS
--------------------------------------------------------------+-------------
        Reporter:  msieczka                                   |         Owner:  nobody       
            Type:  bug                                        |        Status:  reopened     
        Priority:  critical: causes crash or data corruption  |     Milestone:  Version 1.0.0
       Component:  GRASS                                      |       Version:  HEAD         
      Resolution:                                             |      Keywords:               
Platform_version:                                             |      Platform:  Debian       
        Must_fix:  Yes                                        |   Status_info:  0            
--------------------------------------------------------------+-------------
Changes (by msieczka):

  * status:  closed => reopened
  * resolution:  fixed =>

Comment:

 Replying to [comment:1 msieczka]:
 > In r9253 no crash anymore.

 Not really. Still crashes but not with all GRASS rasters. Easy to
 reproduce though:

 1. Download the Spearfish 6 [1] sample dataset.

 2. Load the 'slope' raster into QGIS - crash.

 Last debug words right after loading 'slope':

 {{{
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 53:
 (QgsMapLayer) lyrname is 'slope'
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 59:
 (QgsMapLayer) layerName is 'slope'
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrastershader.cpp: 25: (QgsRasterShader) called.
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrastershaderfunction.cpp: 24:
 (QgsRasterShaderFunction) entered.
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 488:
 (loadNamedStyle) project fileName: /home/shoofi
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 437:
 (loadNamedStyleFromDb) Trying to load style for
 "/home/grassdata/spearfish60/PERMANENT/cellhd/slope.qml" from
 "/home/shoofi/.qgis/qgis.qmldb"
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 437:
 (loadNamedStyleFromDb) Trying to load style for
 "/home/grassdata/spearfish60/PERMANENT/cellhd/slope.qml" from
 "/usr/local/qgis/share/qgis/resources/qgis.qmldb"
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 99:
 (setLayerName) new name is 'slope'

 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 663: (lastModified)
 name=/home/grassdata/spearfish60/PERMANENT/cellhd/slope
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 725: (lastModified) last
 modified = pon. lis 5 10:55:57 2001
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3571: (buildRasterPyramidList)
 Building initial pyramid list
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 2
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 1073741824
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 1073741824
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 4
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 536870912
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 536870912
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 8
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 268435456
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 268435456
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 16
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 134217728
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 134217728
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 32
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 67108864
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 67108864
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 64
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 33554432
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 33554432
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 128
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 16777216
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 16777216
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 256
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 8388608
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 8388608
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 512
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 4194304
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 4194304
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 1024
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 2097152
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 2097152
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 2048
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 1048576
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 1048576
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 4096
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 524288
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 524288
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 8192
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 262144
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 262144
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 16384
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 131072
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 131072
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 32768
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 65536
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 65536
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 65536
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 32768
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 32768
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 131072
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 16384
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 16384
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 262144
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 8192
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 8192
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 524288
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 4096
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 4096
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 1048576
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 2048
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 2048
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 2097152
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 1024
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 1024
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 4194304
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 512
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 512
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 8388608
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 256
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 256
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 16777216
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 128
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 128
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3581: (buildRasterPyramidList),
 Pyramid: 33554432
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3582: (buildRasterPyramidList),
 xDim: 64
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3583: (buildRasterPyramidList),
 yDim: 64
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 447: (readFile) Raster initial
 CRS
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1104: (debugPrint)
 ***SpatialRefSystem***
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1105: (debugPrint) *
 Valid : false
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1106: (debugPrint) *
 SrsId : 140715124959872
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1107: (debugPrint) *
 Proj4 :
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1108: (debugPrint) *
 Desc. :
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 253: (createFromWkt)
 QgsCoordinateReferenceSystem::createFromWkt(QString theWkt) using:
 PROJCS["UTM Zone 13, Northern
 Hemisphere",GEOGCS["clark66",DATUM["North_American_Datum_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["meter",1]]
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 357: (createFromProj4)
 wholetext match on name failed, trying proj4string match
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 443: (getRecord) running
 query: select * from tbl_srs where parameters='+proj=utm +zone=13
 +ellps=clrk66 +datum=NAD27 +units=m +no_defs'
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1078: (openDb) path =
 /usr/local/qgis/share/qgis/resources/srs.db
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 465: (getRecord) trying
 system srs.db
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 520: (getRecord)
 retrieved:  select * from tbl_srs where parameters='+proj=utm +zone=13
 +ellps=clrk66 +datum=NAD27 +units=m +no_defs'
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 362: (createFromProj4)
 proj4string match search for srsid returned srsid: 2093
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 184: (loadFromDb) load
 CRS from /usr/local/qgis/share/qgis/resources/srs.db where srs_id is 2093
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1078: (openDb) path =
 /usr/local/qgis/share/qgis/resources/srs.db
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 714: (setMapUnits)
 Projection has linear units of Meter
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 452: (readFile)
 --------------------------------------------------------------------------------------
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 453: (readFile) using wkt:
 PROJCS["UTM Zone 13, Northern
 Hemisphere",GEOGCS["clark66",DATUM["North_American_Datum_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["meter",1]]
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 454: (readFile)
 --------------------------------------------------------------------------------------
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 253: (createFromWkt)
 QgsCoordinateReferenceSystem::createFromWkt(QString theWkt) using:
 PROJCS["UTM Zone 13, Northern
 Hemisphere",GEOGCS["clark66",DATUM["North_American_Datum_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0],UNIT["degree",0.0174532925199433]],PROJECTION["Transverse_Mercator"],PARAMETER["latitude_of_origin",0],PARAMETER["central_meridian",-105],PARAMETER["scale_factor",0.9996],PARAMETER["false_easting",500000],PARAMETER["false_northing",0],UNIT["meter",1]]
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 357: (createFromProj4)
 wholetext match on name failed, trying proj4string match
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 443: (getRecord) running
 query: select * from tbl_srs where parameters='+proj=utm +zone=13
 +ellps=clrk66 +datum=NAD27 +units=m +no_defs'
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1078: (openDb) path =
 /usr/local/qgis/share/qgis/resources/srs.db
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 465: (getRecord) trying
 system srs.db
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 520: (getRecord)
 retrieved:  select * from tbl_srs where parameters='+proj=utm +zone=13
 +ellps=clrk66 +datum=NAD27 +units=m +no_defs'
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 362: (createFromProj4)
 proj4string match search for srsid returned srsid: 2093
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 184: (loadFromDb) load
 CRS from /usr/local/qgis/share/qgis/resources/srs.db where srs_id is 2093
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1078: (openDb) path =
 /usr/local/qgis/share/qgis/resources/srs.db
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 714: (setMapUnits)
 Projection has linear units of Meter
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 463: (readFile) Raster
 determined to have the following CRS
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1104: (debugPrint)
 ***SpatialRefSystem***
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1105: (debugPrint) *
 Valid : true
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1106: (debugPrint) *
 SrsId : 2093
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1107: (debugPrint) *
 Proj4 : +proj=utm +zone=13 +ellps=clrk66 +datum=NAD27 +units=m +no_defs
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/qgscoordinatereferencesystem.cpp: 1108: (debugPrint) *
 Desc. : NAD27 / UTM zone 13N
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 469: (readFile) Layer registry
 has 0layers
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3150: (getMetadata) dataset has
 no metadata
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3178: (getMetadata) band 1 has
 no categories
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3429: (getMetadata) <p
 class="glossy">Sterownik:</p>
 <p>GRASS<br>GRASS Database Rasters (5.7+)</p>
 <p class="glossy">Dataset Description</p>
 <p>/home/grassdata/spearfish60/PERMANENT/cellhd/slope</p>
 <p class="glossy">Band 1</p>
 <tr><p>
 COLOR_TABLE_RULES_COUNT=0</p>
 </tr><p class="glossy">Wymiar:</p>
 <p>X: 634 Y: 478Kanały:1</p>
 <p class="glossy">No Data Value</p>
 <p>1.1711e-316</p>
 </p>
 <p class="glossy">Typ danych:</p>
 <p>GDT_Float32 - Thirty two bit floating point </p>
 <p class="glossy">Pyramid overviews:</p>
 <p></p>
 <p class="glossy">Layer Spatial Reference System: </p>
 <p>+proj=utm +zone=13 +ellps=clrk66 +datum=NAD27 +units=m +no_defs </p>
 <p class="glossy">Początek:</p>
 <p>589980,4.92803e+06</p>
 <p class="glossy">Rozmiar piksela:</p>
 <p>30,-30</p>

 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3649: (readColorTable) entered.
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3723: (readColorTable) No color
 table found for band 1
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 5000:
 (setContrastEnhancementAlgorithm) called with [NO_STRETCH] and flag=1
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgscontrastenhancement.cpp: 216:
 (setContrastEnhancementAlgorithm) called algorithm: 0 generate lookup
 table: 1
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 830: (hasBand) Looking for band
 : Palette
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 837: (hasBand) band = 1
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 2113: (getRasterBandName)
 entered.
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 107:
 (name) returning name 'slope'
 Debug: /home/shoofi/src/straight/qgis-trunk/src/core/qgsmaplayer.cpp: 323:
 (connectNotify) QgsMapLayer connected to 2layerNameChanged()
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 1185: (draw)  3 arguments
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 2093: (getRasterBandNumber)
 myRasterBandStats.bandName: Band 1  :: theBandName: Band 1
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 2098: (getRasterBandNumber)
 ********** band 1 was found in getRasterBandNumber Band 1
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 1338: (drawSingleBandGray)
 layer=1
 Debug: /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp: 3748: (readData) calling
 RasterIO with , source NW corner: 0, 0, source size: 634, 478, dest size:
 32, 32

 Program received signal SIGSEGV, Segmentation fault.
 [Switching to Thread 0x7ffaced167a0 (LWP 30449)]
 0x00007ffabd259cfc in G_close_gdal_link (gdal=0x50) at gdal.c:121
 121         GDALClose(gdal->data);
 Current language:  auto; currently c
 }}}

 Backtrace:

 {{{
 (gdb) bt
 #0  0x00007ffabd259cfc in G_close_gdal_link (gdal=0x50) at gdal.c:121
 #1  0x00007ffabd24c8e3 in close_old (fd=19) at closecell.c:137
 #2  0x00007ffabd24c7f7 in G_close_cell (fd=19) at closecell.c:86
 #3  0x00007ffab6592b50 in GRASSRasterBand::ResetReading () from
 /usr/local/lib/gdalplugins/gdal_GRASS.so
 #4  0x00007ffab6592edc in GRASSRasterBand::IRasterIO () from
 /usr/local/lib/gdalplugins/gdal_GRASS.so
 #5  0x00007ffacbf0678b in GDALRasterBand::RasterIO (this=0x168a8d0,
 eRWFlag=GF_Read, nXOff=0, nYOff=0, nXSize=634, nYSize=478,
 pData=0x16a1970, nBufXSize=32, nBufYSize=32,
     eBufType=GDT_Float32, nPixelSpace=4, nLineSpace=128) at
 gdalrasterband.cpp:237
 #6  0x00007ffacbf06851 in GDALRasterIO (hBand=0x168a8d0, eRWFlag=GF_Read,
 nXOff=0, nYOff=0, nXSize=634, nYSize=478, pData=0x16a1970, nBufXSize=32,
 nBufYSize=32,
     eBufType=GDT_Float32, nPixelSpace=0, nLineSpace=0) at
 gdalrasterband.cpp:262
 #7  0x00007fface68e511 in QgsRasterLayer::readData (this=0x1627be0,
 gdalBand=0x168a8d0, viewPort=0x16883e0)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp:3767
 #8  0x00007fface69c681 in QgsRasterLayer::drawSingleBandGray
 (this=0x1627be0, theQPainter=0x1688450, theRasterViewPort=0x16883e0,
 theQgsMapToPixel=0x0, theBandNo=1)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp:1347
 #9  0x00007fface69e2df in QgsRasterLayer::draw (this=0x1627be0,
 theQPainter=0x1688450, theRasterViewPort=0x16883e0, theQgsMapToPixel=0x0)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp:1205
 #10 0x00007fface69e9bb in QgsRasterLayer::drawThumbnail (this=0x1627be0,
 theQPixmap=0x7fffd6e4ea50) at /home/shoofi/src/straight/qgis-
 trunk/src/core/raster/qgsrasterlayer.cpp:876
 #11 0x000000000066c400 in QgsLegendLayer::getOriginalPixmap
 (this=0x168a5b0) at /home/shoofi/src/straight/qgis-
 trunk/src/app/legend/qgslegendlayer.cpp:461
 #12 0x000000000066c500 in QgsLegendLayer::setLayerTypeIcon
 (this=0x168a5b0) at /home/shoofi/src/straight/qgis-
 trunk/src/app/legend/qgslegendlayer.cpp:89
 #13 0x000000000065f659 in QgsLegend::addLayer (this=0xf575e0,
 layer=0x1627be0) at /home/shoofi/src/straight/qgis-
 trunk/src/app/legend/qgslegend.cpp:477
 #14 0x0000000000699228 in QgsLegend::qt_metacall (this=0xf575e0,
 _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fffd6e4ee70)
     at /home/shoofi/src/straight/qgis-
 trunk/build/src/app/legend/moc_qgslegend.cxx:116
 #15 0x00007fface1f9764 in QMetaObject::activate () from
 /usr/lib/libQtCore.so.4
 #16 0x00007fface6d2717 in QgsMapLayerRegistry::layerWasAdded
 (this=0xeef730, _t1=0x1627be0) at /home/shoofi/src/straight/qgis-
 trunk/build/src/core/moc_qgsmaplayerregistry.cxx:89
 #17 0x00007fface5f6f40 in QgsMapLayerRegistry::addMapLayer (this=0xeef730,
 theMapLayer=0x1627be0, theEmitSignal=true)
     at /home/shoofi/src/straight/qgis-
 trunk/src/core/qgsmaplayerregistry.cpp:83
 #18 0x00000000004b5981 in QgisApp::addRasterLayer (this=0xecfae0,
 theRasterLayer=0x1627be0) at /home/shoofi/src/straight/qgis-
 trunk/src/app/qgisapp.cpp:5297
 #19 0x00000000004b6ffd in QgisApp::addRasterLayer (this=0xecfae0,
 rasterFile=@0x7fffd6e4f270, baseName=@0x7fffd6e4f260, guiWarning=true)
     at /home/shoofi/src/straight/qgis-trunk/src/app/qgisapp.cpp:5335
 #20 0x00000000004ed8f4 in QgisAppInterface::addRasterLayer (this=0xf19510,
 rasterLayerPath=
       {static null = {<No data fields>}, static shared_null = {ref =
 {_q_value = 2942}, alloc = 0, size = 0, data = 0x9363da, clean = 0,
 simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
 0, array = {0}}, static shared_empty = {ref = {_q_value = 55}, alloc = 0,
 size = 0, data = 0x7fface4cc85a, clean = 0, simpletext = 0, righttoleft =
 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
 0x7fffd6e4f270, static codecForCStrings = 0x0}, baseName=
       {static null = {<No data fields>}, static shared_null = {ref =
 {_q_value = 2942}, alloc = 0, size = 0, data = 0x9363da, clean = 0,
 simpletext = 0, righttoleft = 0, asciiCache = 0, capacity = 0, reserved =
 0, array = {0}}, static shared_empty = {ref = {_q_value = 55}, alloc = 0,
 size = 0, data = 0x7fface4cc85a, clean = 0, simpletext = 0, righttoleft =
 0, asciiCache = 0, capacity = 0, reserved = 0, array = {0}}, d =
 0x7fffd6e4f260, static codecForCStrings = 0x0})
     at /home/shoofi/src/straight/qgis-
 trunk/src/app/qgisappinterface.cpp:77
 #21 0x00007ffabdc860c8 in QgsGrassPlugin::addRaster (this=0x148e2b0) at
 /home/shoofi/src/straight/qgis-
 trunk/src/plugins/grass/qgsgrassplugin.cpp:413
 #22 0x00007ffabdd8680c in QgsGrassPlugin::qt_metacall (this=0x148e2b0,
 _c=QMetaObject::InvokeMetaMethod, _id=2, _a=0x7fffd6e4f3c0)
     at /home/shoofi/src/straight/qgis-
 trunk/build/src/plugins/grass/moc_qgsgrassplugin.cxx:98
 #23 0x00007fface1f9764 in QMetaObject::activate () from
 /usr/lib/libQtCore.so.4
 #24 0x00007ffacd70e1c7 in QAction::triggered () from
 /usr/lib/libQtGui.so.4
 #25 0x00007ffacd70e990 in QAction::activate () from /usr/lib/libQtGui.so.4
 #26 0x00007ffacda1a03a in ?? () from /usr/lib/libQtGui.so.4
 #27 0x00007ffacda1a2d5 in QAbstractButton::mouseReleaseEvent () from
 /usr/lib/libQtGui.so.4
 #28 0x00007ffacdae14aa in QToolButton::mouseReleaseEvent () from
 /usr/lib/libQtGui.so.4
 ---Type <return> to continue, or q <return> to quit---
 #29 0x00007ffacd7663af in QWidget::event () from /usr/lib/libQtGui.so.4
 #30 0x00007ffacd713e5d in QApplicationPrivate::notify_helper () from
 /usr/lib/libQtGui.so.4
 #31 0x00007ffacd71c39a in QApplication::notify () from
 /usr/lib/libQtGui.so.4
 #32 0x00007fface1e5411 in QCoreApplication::notifyInternal () from
 /usr/lib/libQtCore.so.4
 #33 0x00007ffacd71b738 in QApplicationPrivate::sendMouseEvent () from
 /usr/lib/libQtGui.so.4
 #34 0x00007ffacd77f719 in ?? () from /usr/lib/libQtGui.so.4
 #35 0x00007ffacd77e5ef in QApplication::x11ProcessEvent () from
 /usr/lib/libQtGui.so.4
 #36 0x00007ffacd7a59cc in ?? () from /usr/lib/libQtGui.so.4
 #37 0x00007ffaca29b892 in g_main_context_dispatch () from
 /usr/lib/libglib-2.0.so.0
 #38 0x00007ffaca29f01d in ?? () from /usr/lib/libglib-2.0.so.0
 #39 0x00007ffaca29f1db in g_main_context_iteration () from
 /usr/lib/libglib-2.0.so.0
 #40 0x00007fface20d83f in QEventDispatcherGlib::processEvents () from
 /usr/lib/libQtCore.so.4
 #41 0x00007ffacd7a516f in ?? () from /usr/lib/libQtGui.so.4
 #42 0x00007fface1e3d22 in QEventLoop::processEvents () from
 /usr/lib/libQtCore.so.4
 #43 0x00007fface1e3ead in QEventLoop::exec () from /usr/lib/libQtCore.so.4
 #44 0x00007fface1e637d in QCoreApplication::exec () from
 /usr/lib/libQtCore.so.4
 #45 0x00000000004b28a9 in main (argc=1, argv=0x7fffd6e512a8) at
 /home/shoofi/src/straight/qgis-trunk/src/app/main.cpp:683
 }}}

 [1]http://grass.osgeo.org/sampledata/spearfish_grass60data-0.3.tar.gz

-- 
Ticket URL: <http://trac.osgeo.org/qgis/ticket/1272#comment:2>
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