Re: cairo_debug_reset_static_data() and pango crashing.

Uli Schlachter <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <[email protected]>
Hi,

Am 02.07.2016 um 11:14 schrieb mike e:
[...]
> The API warns that using the reset call may cause such an error if there are active cairo objects in use, but the code works perfectly without the pango calls in place.

Sounds like there are still cairo objects alive and that Pango is keeping a
reference to something, right? :-)

[...]
> Here's the bare-bones code, the program runs fine if both lines are commented.  If either are not commented, the error will occur:
[...]

Add a call to pango_cairo_font_map_set_default(NULL); before calling
cairo_debug_reset_static_data();. That makes PangoCairo unreference the fonts
that it still has alive.

Cheers,
Uli
-- 
"Because I'm in pain," he says. "That's the only way I get your attention."
He picks up the box. "Don't worry, Katniss. It'll pass."
He leaves before I can answer.
-- 
cairo mailing list
[email protected]
https://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.