Opened 13 years ago
Closed 13 years ago
#1123 closed defect (duplicate)
Cairo driver dies unexpectedly after d.font
|Reported by:||hamish||Owned by:|
working in 6.5svn, the Cairo driver dies unexpectedly a command after I call d.font.
G65> d.mon start=cairo cairo: collecting to file: map.png, GRASS_WIDTH=1026, GRASS_HEIGHT=903 Graphics driver [cairo] started G65> d.font Vera G65> d.barscale at=7.992203,5.862832 bcol=none ERROR: Cairo_draw_bitmap: Failed to create source
sometimes it also gives this error message:
ERROR eof from graphics driver.
and the driver is then closed. without d.font it all works fine.
libcairo2 1.6.4, in debian/stable amd64 haven't tested on other branches yet.
Change History (2)
comment:1 by , 13 years ago
comment:2 by , 13 years ago
|CPU:||x86-64 → All|
|Platform:||Linux → All|
|Status:||new → closed|
Note: See TracTickets for help on using tickets.
Replying to hamish:
lib/cairodriver/Draw_bitmap.c needs sync'ing with 7.0. It can't be merged due to other changes to the driver architecture, but it shouldn't be too hard to take the 7.0 version then tweak it for 6.x.
Cairo typically requires surfaces to be word-aligned. Older versions would create unaligned surfaces which produced garbage when used as a source. Newer versions simply refuse to create them.