[cairo] Issue with Font_Face reference count?

Ian Britten britten at caris.com
Wed Dec 17 05:56:47 PST 2008


Carl Worth wrote:

> So it's useful to call cairo_debug_reset_static_data when you are
> debugging something, (ensuring that there are no memory leaks for
> example), but not really useful at any other time.

I added it as part of the cleanup of my app, then just started+exited
my app, and got this:
        cairo-hash.c:199: _cairo_hash_table_destroy: Assertion
                          `hash_table->live_entries == 0' failed.
coming from _cairo_scaled_font_map_destroy()

All my cairo functionality is in an optional 'Export' code path that
was not executed.  However, it seems there is something in a hash
table that I didn't put in there, and that Cairo isn't happy about.

Hmmm... I wonder if it's coming from the underlying wxGTK code?
If so, does anyone have any suggestions about how to proceed?
Otherwise, this function seems unusable in a (GTK) GUI application
(I'd like to Valgrind my program and get rid of any real leaks, and
cleaning up caches/etc is usually helpful for this)

No problem was seen with a simple console main() 1-liner program.

Thanks for any suggestions,
Ian


More information about the cairo mailing list