Details Ticket 5200


Comment | Reply | Take | Open


Serial Number 5200
Subject d.what.vect -f: WARNING: Color: can't set color 50331648
Area grass6
Queue grass
Requestors tutey@o2.pl
Owner none
Status resolved
Last User Contact Mon Mar 5 20:35:56 2007 (1 yr ago)
Current Priority 30
Final Priority 70
Due No date assigned
Last Action Mon Mar 5 20:35:56 2007 (1 yr ago)
Created Wed Oct 11 12:30:55 2006 (2 yr ago)

Transaction History Ticket 5200


Wed, Oct 11 2006 12:30:55    Request created by guest  
Subject: d.what.vect: WARNING: Color: can't set color 50331648

Platform: GNU/Linux/x86
grass obtained from: CVS
grass binary for platform: Compiled from Sources
GRASS Version: 2006.10.11

Any query with d.what.vect in GUI mode results in:

WARNING: Color: can't set color 50331648

Maciek
Mon, Oct 23 2006 21:28:24    Mail sent by msieczka  
guest wrote (Wed, Oct 11 2006 12:30:55):

> Any query with d.what.vect in GUI mode results in:
> 
> WARNING: Color: can't set color 50331648

I forgot to add that the WARNING is printed to terminal.

The exact to reproduce this is:

1. d.m
2. display a vector
3. press ? icon in d.m
4. query - you will get the expected output in the tcl/tk window and a
"WARNING: Color: can't set color 50331648" in the terminal

BTW, do we need "Done." message in d.what.vect? d.what.rast doesn't print it...
Maciek
Tue, Oct 24 2006 06:22:56    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 24 Oct 2006 17:22:40 +1300
From Hamish <hamish_nospam@yahoo.com>
To Maciek Sieczka via RT <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5200] (grass) d.what.vect: WARNING: Color: can't set color 50331648
Message-Id <20061024172240.4b09c486.hamish_nospam@yahoo.com>
In-Reply-To <20061023192824.3C7A51006D3@lists.intevation.de>
References <20061023192824.3C7A51006D3@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (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-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-0.961 tagged_above=-999 required=3 tests=[BAYES_00=-5, FORGED_YAHOO_RCVD=2.7, SUBJ_HAS_UNIQ_ID=1.339]
X-Spam-Level
Maciek Sieczka via RT wrote:
> guest wrote (Wed, Oct 11 2006 12:30:55):
> 
> > Any query with d.what.vect in GUI mode results in:
> > 
> > WARNING: Color: can't set color 50331648
> 
> I forgot to add that the WARNING is printed to terminal.
> 
> The exact to reproduce this is:
> 
> 1. d.m
> 2. display a vector
> 3. press ? icon in d.m
> 4. query - you will get the expected output in the tcl/tk window and a
> "WARNING: Color: can't set color 50331648" in the terminal

works for me.
6.3-cvs, d.m + spearfish60 fields (no centroids, rand colors) map, roads
map.


> BTW, do we need "Done." message in d.what.vect? d.what.rast doesn't
> print it...

It's there so when called from d.m, in the terminal window the last text
changes from:

Buttons
 Left:  what's here
 Middle: toggle flash color
 Right: quit

otherwise someone might think they can still click after they've right
clicked.



middle click to change flash color doesn't seem to work for me (?)
Also it doesn't flash if you click where an undisplayed centroid is.


Hamish


Tue, Oct 24 2006 08:47:32    Mail sent by msieczka  
hamish_nospam@yahoo.com wrote (Tue, Oct 24 2006 06:22:56):

> Maciek Sieczka via RT wrote:

>> The exact to reproduce this is:
>> 
>> 1. d.m
>> 2. display a vector
>> 3. press ? icon in d.m
>> 4. query - you will get the expected output in the tcl/tk window and a
>> "WARNING: Color: can't set color 50331648" in the terminal

> works for me.
> 6.3-cvs, d.m + spearfish60 fields (no centroids, rand colors) map, roads
> map.

Strange. For me it still issues the WARNING as I described. Anybody else?

>> BTW, do we need "Done." message in d.what.vect? d.what.rast doesn't
>> print it...

> It's there so when called from d.m, in the terminal window the last text
> changes from:

That is not correct. It is there no matter how you call d.what.vect. Eg. do
d.what.vect -x from terminal - the last module's word is still always: "Done."
> otherwise someone might think they can still click after they've right
> clicked.

I don't agree. The change of the cursor shape and the lack of the window with
query results, if called in d.m, or the GRASS prompt back, if called from
terminal, are enough information. See d.what.rast.

> middle click to change flash color doesn't seem to work for me (?)
> Also it doesn't flash if you click where an undisplayed centroid is.

Ha, so here's the problem: the -f switch. It is hardcoded into d.m
(etc/dm/vector.tcl). While querying vectors it always flashes *black* for me.
The middle switch doesn't change the flash color for me either. This is not a
d.m issue, as this also happens even when I call d.what.vect -f (with or
without -x) from terminal - I keep on getting:

WARNING: Color: can't set color 33554432
WARNING: Color: can't set color 50331648
WARNING: Color: can't set color 50331648

This is not a new issue. It croped up *about* a month ago.

Maciek
Tue, Oct 24 2006 09:41:05    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Tue, 24 Oct 2006 20:40:45 +1300
From Hamish <hamish_nospam@yahoo.com>
To Maciek Sieczka via RT <grass-bugs@intevation.de>
Cc grass-dev@grass.itc.it
Subject Re: [bug #5200] (grass) d.what.vect: WARNING: Color: can't set color 50331648
Message-Id <20061024204045.666737a1.hamish_nospam@yahoo.com>
In-Reply-To <20061024064732.E153D1005A8@lists.intevation.de>
References <20061024064732.E153D1005A8@lists.intevation.de>
X-Mailer Sylpheed version 1.0.4 (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-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-0.961 tagged_above=-999 required=3 tests=[BAYES_00=-5, FORGED_YAHOO_RCVD=2.7, SUBJ_HAS_UNIQ_ID=1.339]
X-Spam-Level
> >> BTW, do we need "Done." message in d.what.vect? d.what.rast doesn't
> >> print it...
> 
> > It's there so when called from d.m, in the terminal window the last
              ^^^^
> > text changes from:
> 
> That is not correct. It is there no matter how you call d.what.vect.
> Eg. do d.what.vect -x from terminal - the last module's word is still
> always: "Done."

It is there no matter how you call d.what.vect, correct.
IIRC, it was put there *because* it isn't clear that d.m has moved on.


> > middle click to change flash color doesn't seem to work for me (?)
..
> Ha, so here's the problem: the -f switch. It is hardcoded into d.m
> (etc/dm/vector.tcl). While querying vectors it always flashes *black*
> for me. The middle switch doesn't change the flash color for me
> either. This is not a d.m issue, as this also happens even when I call
> d.what.vect -f (with or without -x) from terminal - I keep on getting:
> 
> WARNING: Color: can't set color 33554432
> WARNING: Color: can't set color 50331648
> WARNING: Color: can't set color 50331648
> 
> This is not a new issue. It croped up *about* a month ago.


I only get black for flash color as well, in 6.3-cvs. In 6.2 the middle
click to change flash color works ok (and the default is yellow). 


there haven't been big changes to d.what.vect since the 6.2 branch was
created,

http://freegis.org/cgi-bin/viewcvs.cgi/grass6/display/d.what.vect/

so this is probably similar to the d.graph color= bugs that only became
apparent when Glynn reworked the drawing libs. (??)


flash_basecolr in what.c is set to 5 [YELLOW from color.h], and that
gets passed to flash_area() and flash_line() in flash.c. This values
makes it through to R_color(flash_colr) ok, and after the line/area is
drawn R_flush() is called, but no yellow line/area... ??


Hamish


Tue, Oct 24 2006 10:56:27    Subject changed to d.what.vect -f: WARNING: Color: can't set color 50331648 by msieczka  
Tue, Oct 24 2006 16:59:23    Mail sent by epatton@nrcan.gc.ca  
Return-Path <epatton@nrcan.gc.ca>
Delivered-To grass-bugs@lists.intevation.de
Message-ID <0E5A77B55A57D511BB3F0002A537C26208C55C0A@s5-dar-r1.nrn.nrcan.gc.ca>
From "Patton, Eric" <epatton@nrcan.gc.ca>
To 'Maciek Sieczka via RT ' <grass-bugs@intevation.de>
Cc "'grass-dev@grass.itc.it '" <grass-dev@grass.itc.it>, "'hamish_nospam@yahoo.com '" <hamish_nospam@yahoo.com>
Subject RE: [GRASS-dev] [bug #5200] (grass) d.what.vect: WARNING: Color: can'tset color 50331648
Date Tue, 24 Oct 2006 11:59:15 -0300
MIME-Version 1.0
X-Mailer Internet Mail Service (5.5.2657.72)
List-Help <mailto:grass-dev-request@grass.itc.it?subject=help>
List-Subscribe <http://grass.itc.it/mailman/listinfo/grass-dev>,<mailto:grass-dev-request@grass.itc.it?subject=subscribe>
List-Unsubscribe <http://grass.itc.it/mailman/listinfo/grass-dev>,<mailto:grass-dev-request@grass.itc.it?subject=unsubscribe>
x-originalarrivaltime <grass-dev-bounces@grass.itc.it>
x-warning <grass-dev-bounces@grass.itc.it>
x-whitelist <grass-dev-bounces@grass.itc.it>
x-envelope-from <grass-dev-bounces@grass.itc.it>
x-envelope-to <grass-dev-bounces@grass.itc.it>
x-sender <grass-dev-bounces@grass.itc.it>
x-mailman-version <grass-dev-bounces@grass.itc.it>
list-post <grass-dev-bounces@grass.itc.it>
list-id <grass-dev-bounces@grass.itc.it>
x-beenthere <grass-dev-bounces@grass.itc.it>
list-archive <grass-dev-bounces@grass.itc.it>
Errors-To <grass-dev-bounces@grass.itc.it>
x-request-id <grass-dev-bounces@grass.itc.it>
x-rt-loop-prevention <grass-dev-bounces@grass.itc.it>
x-managed-by <grass-dev-bounces@grass.itc.it>
x-bogosity <grass-dev-bounces@grass.itc.it>
Content-Type text/plain; charset="iso-8859-1"
X-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-3.661 tagged_above=-999 required=3 tests=[BAYES_00=-5, SUBJ_HAS_UNIQ_ID=1.339]
X-Spam-Level
I can confirm the problem Maciek is having with d.m in 6.3:

In Spearfish:
1. d.m 
2. add 'quads' vector to GIS manager
3. click query button
4. WARNING: Color: can't set color -1

Actually, most of the interactive tools in d.m are broken for me; such as
the zoom tool, measure, query, geographical position query. 

~ Eric.

-----Original Message-----
From: grass-dev-bounces@grass.itc.it
Cc: grass-dev@grass.itc.it; hamish_nospam@yahoo.com
Sent: 10/24/2006 2:47 AM
Subject: [GRASS-dev] [bug #5200] (grass) d.what.vect: WARNING: Color:
can'tset color 50331648

hamish_nospam@yahoo.com wrote (Tue, Oct 24 2006 06:22:56):

> Maciek Sieczka via RT wrote:

>> The exact to reproduce this is:
>> 
>> 1. d.m
>> 2. display a vector
>> 3. press ? icon in d.m
>> 4. query - you will get the expected output in the tcl/tk window and
a
>> "WARNING: Color: can't set color 50331648" in the terminal

> works for me.
> 6.3-cvs, d.m + spearfish60 fields (no centroids, rand colors) map,
roads
> map.

Strange. For me it still issues the WARNING as I described. Anybody
else?

>> BTW, do we need "Done." message in d.what.vect? d.what.rast doesn't
>> print it...

> It's there so when called from d.m, in the terminal window the last
text
> changes from:

That is not correct. It is there no matter how you call d.what.vect. Eg.
do
d.what.vect -x from terminal - the last module's word is still always:
"Done."

> otherwise someone might think they can still click after they've right
> clicked.

I don't agree. The change of the cursor shape and the lack of the window
with
query results, if called in d.m, or the GRASS prompt back, if called
from
terminal, are enough information. See d.what.rast.

> middle click to change flash color doesn't seem to work for me (?)
> Also it doesn't flash if you click where an undisplayed centroid is.

Ha, so here's the problem: the -f switch. It is hardcoded into d.m
(etc/dm/vector.tcl). While querying vectors it always flashes *black*
for me.
The middle switch doesn't change the flash color for me either. This is
not a
d.m issue, as this also happens even when I call d.what.vect -f (with or
without -x) from terminal - I keep on getting:

WARNING: Color: can't set color 33554432
WARNING: Color: can't set color 50331648
WARNING: Color: can't set color 50331648

This is not a new issue. It croped up *about* a month ago.

Maciek


-------------------------------------------- Managed by Request Tracker

_______________________________________________
grass-dev mailing list
grass-dev@grass.itc.it
http://grass.itc.it/mailman/listinfo/grass-dev


Tue, Oct 24 2006 17:23:17    Mail sent by msieczka  
epatton@nrcan.gc.ca wrote (Tue, Oct 24 2006 16:59:23):

> I can confirm the problem Maciek is having with d.m in 6.3:

It's *not* about d.m. It is about the -f flag in d.what.vect (which d.m
happens to have set in it's query tool).

> In Spearfish:
> 1. d.m 
> 2. add 'quads' vector to GIS manager
> 3. click query button
> 4. WARNING: Color: can't set color -1

My WARNING is different:
WARNING: Color: can't set color 50331648
 
> Actually, most of the interactive tools in d.m are broken for me; such as
> the zoom tool, measure, query, geographical position query.

I don't confirm any of these. All these d.m tools have been working just OK
for me in this regard.

Maciek

P.S.
Please cut posts.
Wed, Oct 25 2006 08:35:35    Mail sent by hamish_nospam@yahoo.com  
Return-Path <hamish_nospam@yahoo.com>
Delivered-To grass-bugs@lists.intevation.de
Date Wed, 25 Oct 2006 19:35:25 +1300
From Hamish <hamish_nospam@yahoo.com>
To "Patton, Eric" <epatton@nrcan.gc.ca>
Cc grass-bugs@intevation.de, grass-dev@grass.itc.it
Subject Re: [GRASS-dev] [bug #5200] (grass) d.what.vect: WARNING: Color: can'tset color 50331648
Message-Id <20061025193525.2a21a504.hamish_nospam@yahoo.com>
In-Reply-To <0E5A77B55A57D511BB3F0002A537C26208C55C0A@s5-dar-r1.nrn.nrcan.gc.ca>
References <0E5A77B55A57D511BB3F0002A537C26208C55C0A@s5-dar-r1.nrn.nrcan.gc.ca>
X-Mailer Sylpheed version 1.0.4 (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-Virus-Scanned by amavisd-new at intevation.de
X-Spam-Status No, hits=-0.961 tagged_above=-999 required=3 tests=[BAYES_00=-5, FORGED_YAHOO_RCVD=2.7, SUBJ_HAS_UNIQ_ID=1.339]
X-Spam-Level
Patton, Eric wrote:
> 
> I can confirm the problem Maciek is having with d.m in 6.3:
> 
> In Spearfish:
> 1. d.m 
> 2. add 'quads' vector to GIS manager
> 3. click query button
> 4. WARNING: Color: can't set color -1
                                    ^^^^
note: the actual number here doesn't matter much, the fact that it
is bogus is the important thing.

> Actually, most of the interactive tools in d.m are broken for me; such
> as the zoom tool, measure, query, geographical position query. 

what about in 6.2?

most of those tools need an xterm to run. Does r.digit from d.m work?

Raster -> Develop map -> Digitize raster

(ie does grass-run.sh work?)


Hamish


Mon, Mar 5 2007 20:35:56    Status changed to resolved by msieczka  
Mon, Mar 5 2007 20:35:56    Mail sent by msieczka  
Must have been fixed in CVS recently. The "can't set color" does not pop up
anymore and the vector features flash nicely. Great.

Maciek
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