Details Ticket 3057


Comment | Reply | Take | Open


Serial Number 3057
Subject ps.map: CELLs without cat file to fclrtbl
Area wish6
Queue grass
Requestors werchowyna@pf.pl
Owner none
Status resolved
Last User Contact Wed Mar 2 21:59:46 2005 (3 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Wed May 11 15:21:18 2005 (3 yr ago)
Created Tue Mar 1 17:20:18 2005 (3 yr ago)

Transaction History Ticket 3057


Tue, Mar 1 2005 17:20:18    Request created by guest  
Subject: ps.map segfaults with CELL rasters withouth cat file

Platform: GNU/Linux/i386
grass obtained from: Mirror of Trento site
grass binary for platform: Compiled from Sources
GRASS Version: grass-6.0.cvs_src_snapshot_2005_02_12

When the raster has an empty catfile like:

---
# 255 categories


0.00 0.00 0.00 0.00 
---

and in section "colortable" the "nodata n" is specified, ps.map segfaults as
following:

GRASS 6.0.cvs:~ > ps.map input=ps2.txt output=map1.ps
PS-PAINT: scale set to 1 : 347440.
PS-PAINT: reading raster file <gminy in robot> ...
PS-PAINT: outlining areas in raster file <gminy in robot> ...
PS-PAINT: creating color table for <gminy in robot> ...Segmentation fault

It doesn't segfault when the "no data n" is not specified.

I think that in both cases an info should be printed like "WARNING: Your catfile
is invalid. A catfile with categories and labels is required for colortable in
case of CELL rasters. No colortable will be assigned to this output postscript
file."

Maciek
Wed, Mar 2 2005 04:35:43    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 2 Mar 2005 16:35:23 +1300
From Hamish <hamish_nospam@yahoo.com>
To Request Tracker <grass-bugs@intevation.de>
Cc grass5@grass.itc.it
Subject Re: [GRASS5] [bug #3057] (grass) ps.map segfaults with CELL rasters withouth cat file
Message-Id <20050302163523.0e7ea670.hamish_nospam@yahoo.com>
In-Reply-To <20050301162019.02DFA1005B7@lists.intevation.de>
References <20050301162019.02DFA1005B7@lists.intevation.de>
X-Mailer Sylpheed version 1.0.0 (GTK+ 1.2.10; i386-pc-linux-gnu)
X-Face M<EoB)"*Z~u!,vFhXmw}R_KbdBta*P_=T|rbBL'e1/CQ9;/1g\BU3&!=y8ria$2Uk!HT&BB 8i?|X_+7~1jsy}F~g$2va%3fV`*=L(*cem[@3\yg,G,@rg6/QMJ
Mime-Version 1.0
Content-Type text/plain; charset=US-ASCII
Content-Transfer-Encoding 7bit
X-Spam-Status No, hits=-4.0 tagged_above=-999.0 required=3.0 tests=BAYES_00, FORGED_YAHOO_RCVD
X-Spam-Level
> this bug's URL: http://intevation.de/rt/webrt?serial_num=3057
> ---------------------------------------------------------------------
> 
> Subject: ps.map segfaults with CELL rasters withouth cat file
..
> GRASS Version: grass-6.0.cvs_src_snapshot_2005_02_12
> 
> When the raster has an empty catfile like:
> 
> ---
> # 255 categories
> 
> 
> 0.00 0.00 0.00 0.00 
> ---
> 
> and in section "colortable" the "nodata n" is specified, ps.map
> segfaults as following:
> 
> GRASS 6.0.cvs:~ > ps.map input=ps2.txt output=map1.ps
> PS-PAINT: scale set to 1 : 347440.
> PS-PAINT: reading raster file <gminy in robot> ...
> PS-PAINT: outlining areas in raster file <gminy in robot> ...
> PS-PAINT: creating color table for <gminy in robot> ...Segmentation
> fault
> 
> It doesn't segfault when the "no data n" is not specified.
> 
> I think that in both cases an info should be printed like "WARNING:
> Your catfile is invalid. A catfile with categories and labels is
> required for colortable in case of CELL rasters. No colortable will be
> assigned to this output postscript file."


fixed in CVS, warning added.


Hamish


Wed, Mar 2 2005 21:59:46    Mail sent by hbowman  
I guess we should be spawning the floating point color table code if the
category based one fails?


this bug resolved; changed to wish6.1 & renamed.


Hamish
Wed, Mar 2 2005 21:59:58    Area changed to wish6 by hbowman  
Wed, Mar 2 2005 22:00:44    Subject changed to ps.map: CELLs without cat file to fclrtbl by hbowman  
Wed, May 11 2005 15:21:18    Status changed to resolved by msieczka  
Comment | Reply | Take | Open

You are currently authenticated as guest.
[Show Configuration] [Login as another user]

Users Guide - Mail Commands - Homepage of RequestTracker 1.0.7 - list any request