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@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
--
Paolo Cavallini
cavallini@faunalia.it www.faunalia.it www.faunalia.com
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953
On Sat, 26 Feb 2005, Paolo Cavallini wrote:
3. dumping to IRIS RGB crashes X badly (BTW, is this an useful command? Could
be safely removed?).
If you removed it then you could remove the copy of the libimage library in the GRASS source code (AFAIK only used for producing RGB files,but
perhaps it is outdated and simply needs upgraded?). If it was to be removed then the makefiles could be changed to make RGB output only
possible on systems that already havelibimage (like IRIX).
Paul
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@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
If the problem is reproducible (please test it), and the command is not
particularly useful, as it appears to be the case, could you please remove it
before 6.0? It gives a very bad crash.
Thanks.
pc
At 20:00, sabato 26 febbraio 2005, Paul Kelly has probably written:
On Sat, 26 Feb 2005, Paolo Cavallini wrote:
> 3. dumping to IRIS RGB crashes X badly (BTW, is this an useful command?
> Could be safely removed?).
If you removed it then you could remove the copy of the libimage library
in the GRASS source code (AFAIK only used for producing RGB files,but
perhaps it is outdated and simply needs upgraded?). If it was to be
removed then the makefiles could be changed to make RGB output only
possible on systems that already havelibimage (like IRIX).
Paul
--
Paolo Cavallini
cavallini@faunalia.it www.faunalia.it www.faunalia.com
Piazza Garibaldi 5 - 56025 Pontedera (PI), Italy Tel: (+39)348-3801953