[GRASS-dev] gis.m crashes on zoom to map existing in more than one mapset

Michael Barton michael.barton at asu.edu
Sat Jan 6 11:07:43 EST 2007


Thanks much Paul.

The problem with the warning about duplicate map names, especially, was a
long-standing bug that I previously saw no way around.

This seems fixed very nicely now.

Michael


On 1/6/07 2:22 AM, "Paul Kelly" <paul-grass at stjohnspoint.co.uk> wrote:

> On Sat, 6 Jan 2007, Glynn Clements wrote:
> 
>> Merging stdout and stderr is purely a workaround for a Tcl misfeature
>> (treating anything written to stderr as an error). In the case where
>> you're actually parsing the output (rather than just dumping it to the
>> "gronsole" widget), it's the wrong workaround. In that case, stderr
>> should be redirected to a file or discarded (redirected to /dev/null
>> or NUL).
> 
> Of course. That's the simple and more obvious fix for the recent g.region
> issues. I've updated gui/tcltk/gis.m/mapcanvas.tcl (after Michael's fixes
> last night) to just discard stderr after all those g.region calls instead
> of merging it with stdout. So the calls to g.region should be tripley
> robust now (catch, discarding stderr, and checking the output lines match
> a regexp).

__________________________________________
Michael Barton, Professor of Anthropology
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton





More information about the grass-dev mailing list