[cairo] (no subject)
Alex Shulgin
alex.shulgin at gmail.com
Thu Feb 9 05:17:51 PST 2012
On Thu, Feb 9, 2012 at 14:16, Mj Mendoza IV <mjmendoza at konsolscript.org> wrote:
> Hi all,
>
> I'm having problem with cairo_surface_free. My app crashes with this
> message:
>
> Assertion failed!
> Program: ...
> File: cairo-surface.c
> Line: 637
> Expression: CAIRO_REFERENCE_COUNT_HAS_REFERENCE(&surface->ref_count)
> What my app does is LOAD some textures (via
> cairo_image_surface_create_from_png), then FREEs them up just fine,
> then LOAD other textures, then FREEs them up again but this time I get a
> crash.
>
> I tried using cairo_surface_get_reference_count to determine how many are
> referencing on the surface. Everytime the value is 0, I get a crash.
>
> Can someone enlighten me with this crash and how to fix it?
Yes, if you post a stripped-down test case source file for others to
look at or reproduce your problem.
More information about the cairo
mailing list