Re: Question regarding cairo-trace for map-to-image and unmap-image
Chris Wilson <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <[email protected]> |
On Wed, 28 Nov 2012 02:46:41 +0000 (GMT), Dongyeon Kim <[email protected]> wrote: > Thanks for the quick fix. > > However, after applying the patch I now get assert fails in cairo_surface_destroy. > > [ 0] egl cairo_gl_map_to_image.3249 cairo-perf-trace: cairo-surface.c:957: cairo_surface_destroy: Assertion `((*&(&surface->ref_count)->ref_count) > 0)' failed. > > The unmapped image surface gets destroyed automatically in cairo_surface_unmap_image, but the script puts the surface in the dictionary, and mistakenly calls cairo_surface_destroy again. Can you attach the script? cairo-trace uses the destroy notification on the user-data to emit the cleanup, if it has added it to the dictionary. So something has gone wrong. -Chris -- Chris Wilson, Intel Open Source Technology Centre -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo