[QGIS-trac] [Quantum GIS] #2347: GRASS error routin conflict

Quantum GIS qgis at qgis.org
Thu Jan 7 07:37:20 EST 2010


#2347: GRASS error routin conflict
---------------------------------------------------------+------------------
   Reporter:  rblazek                                    |              Owner:  rugginoso    
       Type:  bug                                        |             Status:  new          
   Priority:  critical: causes crash or data corruption  |          Milestone:  Version 2.0.0
  Component:  GRASS                                      |            Version:  HEAD         
   Keywords:                                             |   Platform_version:               
   Platform:  All                                        |           Must_fix:  No           
Status_info:  0                                          |  
---------------------------------------------------------+------------------
 It is possible to set a routine which handles GRASS errors with
 G_set_error_routine. The problem is, that both QGIS GRASS plugin and GDAL
 GRASS driver do it. GDAL sets Grass2CPLErrorHook while GRASS
 QgsGrass::error_routine. When an error happens in GDAL it does not call
 the Grass2CPLErrorHook but QgsGrass::error_routine because the routine was
 reset in the mean time by QGIS GRASS plugin. QgsGrass::error_routine
 throws QgsGrass::Exception but that is not caught by raster layer renderer
 (right, it is expecting error from GDAL) and thus qgis crashes. Isn't it
 nice!?

 This was discovered when fixing #1900

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