[cairo] getting assertions [cairo_cache.c:143: _entry_destroy:
Assertion `cache->used_memory > entry->memory' failed]
Ned Konz
ned at squeakland.org
Mon Nov 22 17:57:35 PST 2004
On Thursday 04 November 2004 2:29 pm, Carl Worth wrote:
> It doesn't look to me like you are doing anything wrong. The assertion
> is all our fault (by definition of course).
>
> I was able to whittle your test case down to something quite small and
> reasonable looking that still tickles cairo the wrong way:
>
> cairo_select_font(cr, "sans", 0, 0);
> cairo_scale_font(cr, 40.0);
>
> cairo_select_font(cr, "sans", 0, 0);
> cairo_scale_font(cr, 40.0);
> cairo_move_to(cr, 10, 50);
> cairo_show_text(cr, "hello");
I'm still getting similar crashes.
The attached is a slightly different test case that gets the assertion in the
latest CVS.
If you comment out the cairo_text_extents() call you get a different
assertion.
Thanks,
--
Ned Konz
MetaMagix
Stanwood WA
(360) 629-1091
-------------- next part --------------
A non-text attachment was scrubbed...
Name: testCrash3.c
Type: text/x-csrc
Size: 1512 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/cairo/attachments/20041122/d1b67086/testCrash3.c
More information about the cairo
mailing list