[cairo] Memory leak when using cairo_show_text

Luca Bacci luca.bacci982 at gmail.com
Thu Dec 8 11:07:52 UTC 2022


Consider that Cairo internally keeps a glyph cache, so the memory increase
you experience may just be due to internal caching. Can you share the code
and some data? I can make some test

Luca

Il gio 8 dic 2022, 12:01 Rafał Jopek <rafaljopek at hotmail.com> ha scritto:

> MSYS2 was used in the tests
> Version Cairo 1.17.6-3
>
>
> --Rafał
>
> ------------------------------
> *Od:* Luca Bacci <luca.bacci982 at gmail.com>
> *Wysłane:* czwartek, 8 grudnia 2022 11:29
> *Do:* Rafał Jopek <rafaljopek at hotmail.com>
> *DW:* cairo at cairographics.org <cairo at cairographics.org>
> *Temat:* Re: [cairo] Memory leak when using cairo_show_text
>
> Hello Rafał,
>
> Which OS are you using and which Cairo version?
>
> Luca
>
> Il gio 8 dic 2022, 11:02 Rafał Jopek <rafaljopek at hotmail.com> ha scritto:
>
> Hi,
>
> Tests done on function `cairo_show_text` and also other functions that
> draw text cause
> increasing the physical memory used by the active process.
>
> For example if I use function to draw shapes `cairo_rectangle` or other
> Everything is fine, the memory behaves perfectly.
>
> Kind regards,
> --Rafał
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cairographics.org/archives/cairo/attachments/20221208/3208c284/attachment-0001.htm>


More information about the cairo mailing list