GUI freeze when trying to change legend

6 messages Options
Embed this post
Permalink
Michael Denslow-2

GUI freeze when trying to change legend

Reply Threaded More More options
Print post
Permalink
Dear Grass,

I am having a problem when I try to change the legend for my raster
file using to GUI. This happens even if I select a new legend to add.
As soon as I select the raster map from the list Grass freezes for
several minutes.

Perhaps it is a problem with the raster file or the rules file,
however it runs fine when I run the command in the terminal. I would
like to do this in the GUI since I am not sure how to do all of my map
resizing and saving as .tif from the command line.

Can someone please advise me on this?

I am using Grass 6.4 with standard GUI (not Python)
System is Mac OS 10.6.1

Thanks in advance for your time,

Michael

--
Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Markus Neteler

Re: GUI freeze when trying to change legend

Reply Threaded More More options
Print post
Permalink
On Tue, Sep 29, 2009 at 1:07 PM, Michael Denslow
<[hidden email]> wrote:

> Dear Grass,
>
> I am having a problem when I try to change the legend for my raster
> file using to GUI. This happens even if I select a new legend to add.
> As soon as I select the raster map from the list Grass freezes for
> several minutes.
>
> Perhaps it is a problem with the raster file or the rules file,
> however it runs fine when I run the command in the terminal. I would
> like to do this in the GUI since I am not sure how to do all of my map
> resizing and saving as .tif from the command line.
>
> Can someone please advise me on this?
>
> I am using Grass 6.4 with standard GUI (not Python)
> System is Mac OS 10.6.1

Hi Michael.

idea:
a problem could be that the color table of the map has more than 8000
entries. In that case the X Window system becomes very slow.

Suggestion: make a copy of the map (g.copy) and apply a gyr colortable
or likewise to see if the behaviour changes. If not, the problem is elsewhere
and to be investigated. If yes, you may post more details about the map
in order to suggest an optimized color table.

Markus
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Michael Denslow-2

Re: GUI freeze when trying to change legend

Reply Threaded More More options
Print post
Permalink
Hi Markus,

>> Dear Grass,
>>
>> I am having a problem when I try to change the legend for my raster
>> file using to GUI. This happens even if I select a new legend to add.
>> As soon as I select the raster map from the list Grass freezes for
>> several minutes.
>>
>> Perhaps it is a problem with the raster file or the rules file,
>> however it runs fine when I run the command in the terminal. I would
>> like to do this in the GUI since I am not sure how to do all of my map
>> resizing and saving as .tif from the command line.
>>
>> Can someone please advise me on this?
>>
>> I am using Grass 6.4 with standard GUI (not Python)
>> System is Mac OS 10.6.1
>
> Hi Michael.
>
> idea:
> a problem could be that the color table of the map has more than 8000
> entries. In that case the X Window system becomes very slow.
>
> Suggestion: make a copy of the map (g.copy) and apply a gyr colortable
> or likewise to see if the behaviour changes. If not, the problem is elsewhere
> and to be investigated. If yes, you may post more details about the map
> in order to suggest an optimized color table.
>
> Markus
>

I did what you suggested (g.copy of raster, r.color with gyr). The
color table was actually already set to gyr so the map looked
essentially the same and it also took 5 or so minutes to load the
legend file as before.

About the file:
The raster file is a reclassed raster with 7 or so categories that it
based off of the elev_state_500m file from the North Carolina dataset.
I did some r.mapcalc on the original raster and then reclassed it. It
is a large file and r.stats and r.report also take several minutes to
compute. Is it possible that the slowness is cause by it being a big
file? Also I read somewhere in your book about making a copy of a
reclassed raster so that it does not depend on the original file
(can't find the page right now!). Is this suggested?

The only thing is that the legend command does run fast when put
through the command line...

Bottom line, all is working in the GUI just very slow.
Thanks for your quick response,
Michael



--
Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Michael Barton

Re: GUI freeze when trying to change legend

Reply Threaded More More options
Print post
Permalink
In reply to this post by Michael Denslow-2


On Sep 29, 2009, at 5:14 AM, [hidden email] wrote:

> Date: Tue, 29 Sep 2009 07:07:24 -0400
> From: Michael Denslow <[hidden email]>
> Subject: [GRASS-user] GUI freeze when trying to change legend
> To: [hidden email]
> Message-ID:
>        <[hidden email]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Dear Grass,
>
> I am having a problem when I try to change the legend for my raster
> file using to GUI. This happens even if I select a new legend to add.
> As soon as I select the raster map from the list Grass freezes for
> several minutes.
>
> Perhaps it is a problem with the raster file or the rules file,
> however it runs fine when I run the command in the terminal. I would
> like to do this in the GUI since I am not sure how to do all of my map
> resizing and saving as .tif from the command line.
>
> Can someone please advise me on this?
>
> I am using Grass 6.4 with standard GUI (not Python)
> System is Mac OS 10.6.1
>
> Thanks in advance for your time,
>
> Michael


  I see that you are using Snow Leopard, which has Python 2.5.1 and  
2.6 on it. It can also have a couple different wxpython versions.  
William Kyngesburye has worked out special instructions for compiling  
on Snow Leopard.

If you are not using a recently compiled binary (after mid-September),  
you will have problems.

My guess is that this is related to ticket: http://trac.osgeo.org/grass/ticket/753 
. This is caused when you compile GRASS with more than one version of  
python on your Mac. In these circumstances, there is an error in a  
display widget (PseudoDC). The whole issue is complicated but I can  
explain more if you are interested in the intricacies of the code.

The fixes are to either
1) find the second version of Python and any vestiges of a second  
wxpython and delete them (sometimes harder than it seems, and  
especially complicated with Snow Leopard with needs 2 official Python  
versions), make distclean, and recompile. Or
2) bundle wxpython with GRASS.

The second option guarantees that you are running with the version of  
wxpython that you compiled with and that all parts of GRASS are using  
the same wxpython. I'm recommending bundling wxpython with all Mac  
binaries to avoid this and other problems.

Michael
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Michael Denslow-2

Re: GUI freeze when trying to change legend

Reply Threaded More More options
Print post
Permalink
Thanks Michael,

>> Dear Grass,
>>
>> I am having a problem when I try to change the legend for my raster
>> file using to GUI. This happens even if I select a new legend to add.
>> As soon as I select the raster map from the list Grass freezes for
>> several minutes.
>>
>> Perhaps it is a problem with the raster file or the rules file,
>> however it runs fine when I run the command in the terminal. I would
>> like to do this in the GUI since I am not sure how to do all of my map
>> resizing and saving as .tif from the command line.
>>
>> Can someone please advise me on this?
>>
>> I am using Grass 6.4 with standard GUI (not Python)
>> System is Mac OS 10.6.1
>>
>> Thanks in advance for your time,
>>
>> Michael
>
>
>  I see that you are using Snow Leopard, which has Python 2.5.1 and 2.6 on
> it. It can also have a couple different wxpython versions. William
> Kyngesburye has worked out special instructions for compiling on Snow
> Leopard.

I installed GRASS on my new computer from this page a week or so ago.
http://www.kyngchaos.com/software:grass/

>
> If you are not using a recently compiled binary (after mid-September), you
> will have problems.
>
> My guess is that this is related to ticket:
> http://trac.osgeo.org/grass/ticket/753. This is caused when you compile
> GRASS with more than one version of python on your Mac. In these
> circumstances, there is an error in a display widget (PseudoDC). The whole
> issue is complicated but I can explain more if you are interested in the
> intricacies of the code.

As far as I can tell this seems to be a similar problem.

>
> The fixes are to either
> 1) find the second version of Python and any vestiges of a second wxpython
> and delete them (sometimes harder than it seems, and especially complicated
> with Snow Leopard with needs 2 official Python versions), make distclean,
> and recompile. Or

Indeed! I have no idea how to find these files and I fear that I will
really mess something up here.

> 2) bundle wxpython with GRASS.

Unfortunately I don't know how to do this. On the page I listed above
it says that wxpython is included in the GRASS install. I didn't think
that I was using the Python GUI but perhaps I am misunderstanding
something here.
When I open GRASS I hit return to load the GUI I don't run "g.gui wxpython".
Is there an idiots guide to on how to bundle wxpython?

> The second option guarantees that you are running with the version of
> wxpython that you compiled with and that all parts of GRASS are using the
> same wxpython. I'm recommending bundling wxpython with all Mac binaries to
> avoid this and other problems.

Thanks for this,
Michael




--
Michael Denslow

Graduate Student
I.W. Carpenter Jr. Herbarium [BOON]
Department of Biology
Appalachian State University
Boone, North Carolina U.S.A.

-- AND --

Communications Manager
Southeast Regional Network of Expertise and Collections
sernec.org
_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user
Michael Barton

Re: GUI freeze when trying to change legend

Reply Threaded More More options
Print post
Permalink
Perhaps a stupid question on my part. Did you download the Snow  
Leopard version of GRASS from William Kyngesburye's site? Did you  
download all of his current frameworks?

Bundling is something you do when you compile it. Compiling is not  
hard but you shouldn't need to do it. You can download versions that  
should work on your system from my site too. It's not official but I  
try to produce regular binaries.

http://www.public.asu.edu/~cmbarton/files/grass_mac

Try the 6.4 binary.

Michael
______________________________
C. Michael Barton
Director, Center for Social Dynamics & Complexity
Professor of Anthropology, School of Human Evolution & Social Change
Arizona State University
Tempe, AZ  85287-2402
USA

voice: 480-965-6262; fax: 480-965-7671
www: http://csdc.asu.edu, http://shesc.asu.edu
                http://www.public.asu.edu/~cmbarton

On Sep 29, 2009, at 9:40 AM, Michael Denslow wrote:

> Thanks Michael,
>
>>> Dear Grass,
>>>
>>> I am having a problem when I try to change the legend for my raster
>>> file using to GUI. This happens even if I select a new legend to  
>>> add.
>>> As soon as I select the raster map from the list Grass freezes for
>>> several minutes.
>>>
>>> Perhaps it is a problem with the raster file or the rules file,
>>> however it runs fine when I run the command in the terminal. I would
>>> like to do this in the GUI since I am not sure how to do all of my  
>>> map
>>> resizing and saving as .tif from the command line.
>>>
>>> Can someone please advise me on this?
>>>
>>> I am using Grass 6.4 with standard GUI (not Python)
>>> System is Mac OS 10.6.1
>>>
>>> Thanks in advance for your time,
>>>
>>> Michael
>>
>>
>>  I see that you are using Snow Leopard, which has Python 2.5.1 and  
>> 2.6 on
>> it. It can also have a couple different wxpython versions. William
>> Kyngesburye has worked out special instructions for compiling on Snow
>> Leopard.
>
> I installed GRASS on my new computer from this page a week or so ago.
> http://www.kyngchaos.com/software:grass/
>
>>
>> If you are not using a recently compiled binary (after mid-
>> September), you
>> will have problems.
>>
>> My guess is that this is related to ticket:
>> http://trac.osgeo.org/grass/ticket/753. This is caused when you  
>> compile
>> GRASS with more than one version of python on your Mac. In these
>> circumstances, there is an error in a display widget (PseudoDC).  
>> The whole
>> issue is complicated but I can explain more if you are interested  
>> in the
>> intricacies of the code.
>
> As far as I can tell this seems to be a similar problem.
>
>>
>> The fixes are to either
>> 1) find the second version of Python and any vestiges of a second  
>> wxpython
>> and delete them (sometimes harder than it seems, and especially  
>> complicated
>> with Snow Leopard with needs 2 official Python versions), make  
>> distclean,
>> and recompile. Or
>
> Indeed! I have no idea how to find these files and I fear that I will
> really mess something up here.
>
>> 2) bundle wxpython with GRASS.
>
> Unfortunately I don't know how to do this. On the page I listed above
> it says that wxpython is included in the GRASS install. I didn't think
> that I was using the Python GUI but perhaps I am misunderstanding
> something here.
> When I open GRASS I hit return to load the GUI I don't run "g.gui  
> wxpython".
> Is there an idiots guide to on how to bundle wxpython?
>
>> The second option guarantees that you are running with the version of
>> wxpython that you compiled with and that all parts of GRASS are  
>> using the
>> same wxpython. I'm recommending bundling wxpython with all Mac  
>> binaries to
>> avoid this and other problems.
>
> Thanks for this,
> Michael
>
>
>
>
> --
> Michael Denslow
>
> Graduate Student
> I.W. Carpenter Jr. Herbarium [BOON]
> Department of Biology
> Appalachian State University
> Boone, North Carolina U.S.A.
>
> -- AND --
>
> Communications Manager
> Southeast Regional Network of Expertise and Collections
> sernec.org

_______________________________________________
grass-user mailing list
[hidden email]
http://lists.osgeo.org/mailman/listinfo/grass-user