[GRASS-dev] Re: [GRASS GIS] #1152: d.out.file + cairo: errors
writing the image
GRASS GIS
trac at osgeo.org
Thu Sep 9 05:35:27 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 |
-------------------------------+--------------------------------------------
Comment(by hamish):
using `sync` instead of `sleep` seems to work, but I doubt it is the best
solution or portable to MSys.
{{{
Index: d.out.file
===================================================================
--- d.out.file (revision 43358)
+++ d.out.file (working copy)
@@ -350,11 +350,21 @@
if [ "$GIS_FLAG_T" -eq 1 ] ; then
# skip flood filling of background
- dsave=`d.save -a | grep -v '^d.erase'`
+ if [ "$GRAPHICS_DRIVER" != "cairo" ] ; then
+ dsave=`d.save -a | grep -v '^d.erase'`
+ else
+ #wait for it to catch up
+ dsave=`d.save -a | grep -v '^d.erase' | sed -e 's/^d\./sync; d./'`
+ fi
else
- dsave=`d.save -a`
+ if [ "$GRAPHICS_DRIVER" != "cairo" ] ; then
+ dsave=`d.save -a`
+ else
+ dsave=`d.save -a | sed -e 's/^d\./sync; d./'`
+ fi
fi
+
d.mon start=$GRAPHICS_DRIVER $BEQUIET
# 'd.info -b' for white band removal
BOX=`d.info -b | cut -f2 -d':'`
}}}
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/1152#comment:1>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list