[QGIS-trac] Re: [Quantum GIS] #2028: [Vista] GRASS plugin crashes QGIS when running the r.colors, r.null, v.dissolve modules

Quantum GIS qgis at qgis.org
Thu Jan 7 08:47:19 EST 2010


#2028: [Vista] GRASS plugin crashes QGIS when running the r.colors, r.null,
v.dissolve modules
--------------------------------------------------------------+-------------
        Reporter:  pcav                                       |         Owner:  rugginoso    
            Type:  bug                                        |        Status:  new          
        Priority:  critical: causes crash or data corruption  |     Milestone:  Version 1.5.0
       Component:  GRASS                                      |       Version:  HEAD         
      Resolution:                                             |      Keywords:               
Platform_version:                                             |      Platform:  Windows      
        Must_fix:  No                                         |   Status_info:  0            
--------------------------------------------------------------+-------------
Changes (by rblazek):

 * cc: rblazek (added)

Comment:

 Am I right if I say: "QGIS crashes when a modified (rewritten) GRASS
 raster (previously added to canvas) is redrawn"?

 The reason why it happens from GUI probably is, that when GRASS tool
 finishes, the canvas is automaticaly refreshed.

 I guess the problem could be the difference between unix and windows file
 management which may have also changed in Vista. On unix it is possible
 remove a file which is opened by another program (OS keeps the old file
 (without name) until it is closed by the program it was using). On windows
 (XP) it is impossible AFAIR to delete a file opened by another
 application, it is possible however to move it!

 Could you try some more precise tests? Just open a raster map in QGIS and
 redraw after each of following tests done in a file manager, don't resize
 etc. the QGIS window during the modifications of data so that you have
 control over when the map is redrawn:

 1) update the 'last modified' file attribute of the colr/map file and
 redraw in QGIS

 2) make a backup of your map, and try to overwrite all elemets (files -
 colr/map, cellhd/map ...) of the map with the backup version using copy.
 Try to redraw after each copy and see if QGIS crashes or if you can even
 overwrite the file.

 3) another exercise like 2) but try to move to a temporary directory each
 map file before you make a copy from backup

 4) try 2) and 3) but doing also 1) after a file was copied, that will
 force QGIS to reload the map instead of just reading

 Please report if/when it is crashing doing that test.

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