[cairo] problem in _cairo_gstate_glyph_extent today?

John Ellson ellson at research.att.com
Fri Jan 14 10:14:12 PST 2005


I updated from CVS this morning and now my code is SIGFPE in the depths 
of cairo.

The problem seems to be an invalid double for dy, but I can't tell how 
it got there.

Has there been a change to the cairo_text_extents API that I need to 
catch up on?




Program received signal SIGFPE, Arithmetic exception.
*INT_cairo_matrix_transform_distance (matrix=0x9aaac7c, dx=0xbff586c0, 
dy=0xbff586b8)
    at cairo_matrix.c:237
237         new_y = (matrix->m[0][1] * *dx
(gdb) where
#0  *INT_cairo_matrix_transform_distance (matrix=0x9aaac7c, 
dx=0xbff586c0, dy=0xbff586b8)
    at cairo_matrix.c:237
#1  0x0091023d in *INT_cairo_matrix_transform_point (matrix=0x9aaac7c, 
x=0xbff586c0,
    y=0xbff586b8) at cairo_matrix.c:250
#2  0x0090ed03 in _cairo_gstate_glyph_extents (gstate=0x9aaac10, 
glyphs=0x9aaaee0,
    num_glyphs=5, extents=0xbff58738) at cairo_gstate.c:2436
#3  0x00908265 in cairo_text_extents (cr=0x9aa61b0, utf8=0x9a46290 "hello",
    extents=0xbff58738) at cairo.c:928

....

(gdb) p *dx
$1 = -0.76663972479270071
(gdb) p *dy
$2 = 1.5251824510634041e-314
(gdb)


John Ellson




John



More information about the cairo mailing list