[GRASS-dev] [GRASS GIS] #1152: d.out.file + cairo: errors writing the image

GRASS GIS trac at osgeo.org
Thu Sep 9 05:22:46 EDT 2010


#1152: d.out.file + cairo: errors writing the image
-------------------------------+--------------------------------------------
 Reporter:  hamish             |       Owner:  grass-dev@…              
     Type:  defect             |      Status:  new                      
 Priority:  major              |   Milestone:  6.4.1                    
Component:  Display            |     Version:  unspecified              
 Keywords:  d,out.file, cairo  |    Platform:  Linux                    
      Cpu:  x86-64             |  
-------------------------------+--------------------------------------------
 Hi,

 in 6.4/6.5svn d.out.file with -c for the Cairo driver is having problems
 writing to the file. ISTR this was discussed on the ML recently, with the
 explanation something like that `d.mon start=` returns without waiting?

 {{{
 G65> d.out.file -c landsat
 Saving display from Monitor: [x0] to <landsat.png>.
 Image size [1115 x 988]
  100%
 ERROR: Cairo_draw_bitmap: Failed to create source
 WARNING: Socket is already in use or not accepting connections.
 WARNING: Use d.mon to select a monitor
 ERROR: No graphics device selected
 WARNING: Error - Monitor 'cairo' was not running
 Screen export complete. (writing the file may take a small amount of time)
 Image crop [1115 x 987]
 Done.
 }}}

 the image is a large (7000x8000) raster with a d.grid and d.text
 decorations over the top of it. I tried pushing in a `sleep 1` before each
 d.* command from d.save, but no luck.

 on a simple low-res image it does fine, as does running with the regular
 PNG driver. same behavior on multiple machines & different linux distros.
 (deb/ubu)


 perhaps the solution is setting one of the display driver direct rendering
 enviro variables?


 ?

 thanks,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/1152>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list