[cairo] Question regarding cairo-trace for map-to-image and unmap-image

Dongyeon Kim dy5.kim at samsung.com
Wed Nov 28 01:04:21 PST 2012

Here is the script,


------- Original Message -------
Sender : Chris Wilson<chris at chris-wilson.co.uk>
Date : 2012-11-28 17:59 (GMT+09:00)
Title : Re: Re: [cairo] Question regarding cairo-trace for map-to-image and unmap-image

On Wed, 28 Nov 2012 02:46:41 +0000 (GMT), Dongyeon Kim 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 mailing list