[cairo] Question regarding cairo-trace for map-to-image and unmap-image
chris at chris-wilson.co.uk
Wed Nov 28 00:59:15 PST 2012
On Wed, 28 Nov 2012 02:46:41 +0000 (GMT), Dongyeon Kim <dy5.kim at samsung.com> 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 Wilson, Intel Open Source Technology Centre
More information about the cairo