Opened 14 years ago

Closed 14 years ago

#2347 closed bug (fixed)

GRASS error routin conflict

Reported by: rblazek Owned by: rugginoso
Priority: minor: annoyance Milestone: Version 2.0.0
Component: GRASS Version: Trunk
Keywords: Cc: rblazek
Must Fix for Release: No Platform: All
Platform Version: Awaiting user input: no

Description

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

Change History (2)

comment:1 by rblazek, 14 years ago

Priority: critical: causes crash or data corruptionminor: annoyance

comment:2 by rblazek, 14 years ago

Resolution: fixed
Status: newclosed

Fixed with native GRASS raster provider.

Note: See TracTickets for help on using tickets.