[GRASS-windows] WinGRASS not deleting temp ppm files from map display

Isaac Ullah isaac.ullah at asu.edu
Fri Apr 17 00:13:55 EDT 2009


Glynn, I tried your tests with no replication of the error. Then I had an
epiphany. I realized that all the mapsets that had the extra ppm files are
mapsets where I was digitizing vectors from features in raster images using
the tcltk v.digit module in RC3. I did a test using spearfish, and I was
able to replicate the problem. When v.digit loads, it creates it's own ppm
and ppg files for the background of the v.digit display (seperate from the
ppm and ppg files created for the regular tcltk map display). When one exits
from v.digit, those ppm and ppg stay. When one exits from grass, the ppm and
ppg files for the map display are erased, but NOT those created by the
v.digit display. I don't have access to my linux box at the moment, but this
could potentially be a cross-platform issue with the tcltk v.digit. I assume
the issue will be fixed in the forthcoming wxpython v.digit as AFAIK the wx
gui does not write ppm files for it's display... Shall I submit a bug ticket
on this?

Cheers
Isaac
On Thu, Apr 16, 2009 at 8:00 PM, Glynn Clements <glynn at gclements.plus.com>wrote:

>
> Isaac Ullah wrote:
>
> > Before I submitted this as abug, I wanted to run it past the list first.
> > I've been doing  lot of zooming, panning, etc. with WinGRASS map display
> > lately, and I just noticed that my remaining 5gigs of free disk space had
> > been eaten up in the last few days. I haven't downloaded anything, and
> have
> > mainly just been woring in grass. I checked the size of the mapsets I've
> > been working in and I discovered that the main one is 4.5 gig! It only
> has a
> > few maps in it, so I checked the size of cell, and it is small. I check
> all
> > the other folders and they were all small except for ".tmp" which was
> more
> > than 4Gigs! When I looked inside, I noticed that ALL the ppm files from
> the
> > map display from the last three days were still in there! I checked other
> > mapsets that I have used in that time frame, and all of them have ppm
> files
> > in them. mapsets I have not used have empty .tmp folders. Three days ago
> is
> > when I installed RC4 binaries. Is this an issue with RC4 for anyone else?
> Is
> > it a Windows thing? I'm using XP, on a laptop. I HAVE gone into
> hibernation
> > with GRASS still up. Does dong so cause GRASS to "forget" the current
> PID,
> > and therefore not be able to find the old ppm files to flush? Or is this
> > just a bug in RC4?
>
> AFAICT, the GUI removes the PPM/PGM files for a layer when you remove
> the layer from the display, or when you close the map window.
>
> One possibility is that the close event doesn't get handled on Windows
> for whatever reason.
>
> Can you conduct some tests:
>
> 1. Start the GUI from the command prompt, display a map, then quit.
> Report any error message and whether any PPM/PGM files are left
> behind.
>
> 2. Start the GUI, add some maps to the list, display them, remove some
> maps from the list, check whether the PPM/PGM files are deleted as the
> maps are removed.
>
> --
> Glynn Clements <glynn at gclements.plus.com>
>



-- 

Isaac I Ullah, M.A.

Archaeology PhD Student,
ASU School of Evolution and Social Change

Research Assistant,
Mediterranean Landscape Dynamics Project
***************************************************
isaac.ullah at asu.edu
ullah at archaeologist.com

http://www.public.asu.edu/~iullah
***************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-windows/attachments/20090416/8e67840a/attachment-0001.html


More information about the grass-windows mailing list