Re: Question regarding cairo-trace for map-to-image and unmap-image

Dongyeon Kim <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <30378613.82361354093460541.JavaMail.weblogic@epml04>
Here is the script,
http://pastebin.com/ByyrParx

Thanks
Dongyeon

------- Original Message -------
Sender : Chris Wilson<[email protected]>
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

-- 
Chris Wilson, Intel Open Source Technology Centre
-- 
cairo mailing list
[email protected]
http://lists.cairographics.org/mailman/listinfo/cairo
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.