[QGIS-trac] Re: [Quantum GIS] #1945: [Vista] Qgis crashes removing GRASS raster layer from map canvas

Quantum GIS qgis at qgis.org
Fri Feb 5 14:29:13 EST 2010


#1945: [Vista] Qgis crashes removing GRASS raster layer from map canvas
--------------------------------------------------------------+-------------
        Reporter:  juanelz                                    |         Owner:  rugginoso    
            Type:  bug                                        |        Status:  closed       
        Priority:  critical: causes crash or data corruption  |     Milestone:  Version 1.5.0
       Component:  GRASS                                      |       Version:  HEAD         
      Resolution:  fixed                                      |      Keywords:  GRASS rasters
Platform_version:  Vista                                      |      Platform:  Windows      
        Must_fix:  Yes                                        |   Status_info:  0            
--------------------------------------------------------------+-------------
Comment (by rblazek):

 Replying to [comment:17 lutra]:
 > After having compiled trunk, when I open the grass mapset in the qgis
 demo dataset -and then I add the raster that is in there (gtopo30)- qgis
 (the "value tool" plugin to be precise) throws the following
 >
 >
 > {{{
 > Traceback (most recent call last):
 >   File "/home/vania/.qgis//python/plugins/valuetool/valuewidget.py",
 line 134, in printValue
 >     self.ymin=min(self.ymin,cstr.minimumValue())
 > AttributeError: 'NoneType' object has no attribute 'minimumValue'
 > }}}

 Isn't it bug in the plugin? Should not they check 'if cstr'? Where can I
 find the plugin?! I cannot find it on internet. The installer in QGIS is
 currently disabled. I have to see which values it reads and if they can be
 passed from the provider with current raster providers implementation.

 Does it work with WMS layer?


 > then qgis also throws this
 >
 >
 > {{{
 > Cannot query raster
 > Cannot start module
 > command: /usr/share/qgis/grass/modules/qgis.g.info info=query
 rast=gtopo30 at demo coor=-1.43995e+06,8.38359e+06<br><br>
 > GRASS_INFO_WARNING(5191,1): Reading raster map <gtopo30 at demo> request
 for row -174 is outside region
 > GRASS_INFO_END(5191,1)
 >
 > GRASS_INFO_ERROR(5191,2): Unable to read raster map <gtopo30 at demo> row
 -174
 > GRASS_INFO_END(5191,2)
 > }}}
 > in both cases when passing the mouse over the raster in the canvas.

 I have fixed it in the module so that it returns null. It is also called
 by valuetool?
 The provider method is called by  QgsRasterLayer::identify and the results
 map does not seem to be expected to contain any particular data, just
 readable info.

-- 
Ticket URL: <https://trac.osgeo.org/qgis/ticket/1945#comment:21>
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