[GRASS5] nviz bug
Bob Covill
bcovill at tekmap.ns.ca
Sun Feb 27 19:08:30 EST 2005
Hi Paolo,
It appears from the output below that your system could not alocate
enough memory to combine the tile images. With the max size image, a
seies of tiles are saved and then pasted together into a sinle image.
From the files below this would be done with ...
pnmcat -lr provamax2_1_1.ppm provamax2_1_2.ppm provamax2_1_3.ppm >
provamax2tmp1.ppm
These left to right (-lr) strips are then combined into the final image.
From the comments below it looks like pnmcat could not malloc enough
memory. If possible try combining the images on another system or with a
different (less memory intensive) software package. It would probably be
helpful in the future to add an option that allows the user to choose
the ouput image size up to the maximum allowable. The curent default is
to automatically draw the maximum allowable size the the OpenGL
configuration supports.
As for other windows polluting the output images, try minimizing the
main (visible) window before creating the off-screen context. Because of
callbacks to the main window it can sometimes replace the off-screen
context by simply moving the mouse across it. Try this and see what
happens. A pop-up window would probably be helpful in this case inform
the user to first minmize the main window.
Hope this helps.
--
Bob
Paolo Cavallini wrote:
> Hi all.
>
> While revising old bugs, I tried NVIZ, and I found a few problems:
> 1. dumping at max resolution does not work if I resize NVIZ monitor; it
> produces a number of files:
>
> -rw-r--r-- 1 paolo paolo 3133457 2005-02-26 11:05 provamax2_1_1.ppm
> -rw-r--r-- 1 paolo paolo 3133457 2005-02-26 11:05 provamax2_1_2.ppm
> -rw-r--r-- 1 paolo paolo 14 2005-02-26 11:05 provamax2_1_3.ppm
> -rw-r--r-- 1 paolo paolo 3130385 2005-02-26 11:05 provamax2_2_1.ppm
> -rw-r--r-- 1 paolo paolo 3130385 2005-02-26 11:05 provamax2_2_2.ppm
> -rw-r--r-- 1 paolo paolo 14 2005-02-26 11:05 provamax2_2_3.ppm
> -rw-r--r-- 1 paolo paolo 15 2005-02-26 11:05 provamax2_3_1.ppm
> -rw-r--r-- 1 paolo paolo 15 2005-02-26 11:05 provamax2_3_2.ppm
> -rw-r--r-- 1 paolo paolo 12 2005-02-26 11:05 provamax2_3_3.ppm
> -rw-r--r-- 1 paolo paolo 0 2005-02-26 11:05 provamax2.ppm
> -rw-r--r-- 1 paolo paolo 0 2005-02-26 11:05 provamax2tmp1.ppm
> -rw-r--r-- 1 paolo paolo 0 2005-02-26 11:05 provamax2tmp2.ppm
> -rw-r--r-- 1 paolo paolo 0 2005-02-26 11:05 provamax2tmp3.ppm
>
> Of these, the largest are cuts from the whole image.
>
> This is the error output:
> nviz elevation=t_dtm at PERMANENT
> Loading Data
>
> Update elev null mask
> Loading Data
> translating colors from fp
> Xlib: extension "XFree86-DRI" missing on display ":0.0".
> recalculating normals...
> Row 100
> Row 200
> Creating PBuffer Using GLX 1.3
> Create PixMap Using GLX 1.1
> Final Assembled Image will be 1673 x 2048
> Writing Tile 1 of 9
> Writing Tile 2 of 9
> Writing Tile 3 of 9
> Writing Tile 4 of 9
> Writing Tile 5 of 9
> Writing Tile 6 of 9
> Writing Tile 7 of 9
> Writing Tile 8 of 9
> Writing Tile 9 of 9
> Assembling Tiles
> Destroy Pixmap and GLXPixmap
> Creating PBuffer Using GLX 1.3
> Create PixMap Using GLX 1.1
> Final Assembled Image will be 2048 x 2039
> Writing Tile 1 of 9
> Writing Tile 2 of 9
> Writing Tile 3 of 9
> Writing Tile 4 of 9
> Writing Tile 5 of 9
> Writing Tile 6 of 9
> Writing Tile 7 of 9
> MALLOC Failed
> Writing Tile 8 of 9
> MALLOC Failed
> Writing Tile 9 of 9
> Assembling Tiles
> pnmcat: Zero byte allocation
> pnmcat failed to create assembled image
> Check that pnmcat is installed and path is set
> pnmcat: Zero byte allocation
> pnmcat failed to create assembled image
> Check that pnmcat is installed and path is set
> pnmcat: junk in file where an integer should be
> pnmcat failed to create assembled image
> Check that pnmcat is installed and path is set
> pnmcat: EOF / read error reading magic number
> pnmcat failed to create assembled images
> Check that pnmcat is installed and path is set
> Destroy Pixmap and GLXPixmap
>
> I also get an error window:
> invalid command name ".dialog0.pw.f1.frame.win.text"
>
> If it's a resize problem only, it should be easy to fix it by making the
> monitor of fixed size.
>
> 2. if I switch to another window when dumping, the dump reflects the new
> window instead of the NVIZ monitor. This should be made clear to the user
> "Don't move" message).
>
> 3. dumping to IRIS RGB crashes X badly (BTW, is this an useful command? Could
> be safely removed?).
>
> 4. when clicking on "nviz" (bottom of "d.nviz" help page) I get an error (does
> not find file:/usr/lib/grass/docs/html/nviz.html).
>
> Grass6.0beta2 from debian testing.
>
> All the best.
> pc
More information about the grass-dev
mailing list