[GRASS5] [bug #3041] (grass) NVIZ max PPM dump fails when window is resized

Request Tracker grass-bugs at intevation.de
Mon Feb 28 16:03:19 EST 2005


this bug's URL: http://intevation.de/rt/webrt?serial_num=3041
-------------------------------------------------------------------------

Subject: NVIZ max PPM dump fails when window is resized

Grass 6.0beta2 from Debian testing 
 
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. 
 
======================= 
Help from Bob Covill: 
 
It appears from the output 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.  
  
 

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




More information about the grass-dev mailing list