https://bugzilla.gnome.org/show_bug.cgi?id=775126
Daniel Elstner <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #2 from Daniel Elstner <[email protected]> ---
I see it in 3.22.21 in an application that uses OpenGL for an animation. The
thing is leaking like a sieve.
I investigated a bit, and this code in
gdk_wayland_window_ensure_cairo_surface() looks kinda fishy to me:
/* If we are drawing using OpenGL then we only need a logical 1x1 surface. */
if (impl->display_server.egl_window)
{
if (impl->staging_cairo_surface &&
_gdk_wayland_is_shm_surface (impl->staging_cairo_surface))
cairo_surface_destroy (impl->staging_cairo_surface);
impl->staging_cairo_surface = cairo_image_surface_create
(CAIRO_FORMAT_ARGB32,
impl->scale,
impl->scale);
cairo_surface_set_device_scale (impl->staging_cairo_surface,
impl->scale, impl->scale);
}
else if (!impl->staging_cairo_surface)
Note how cairo_surface_destroy() is only called if
_gdk_wayland_is_shm_surface() is TRUE, but the 1x1 dummy surface is recreated
in every single drawing call.
As I said, the thing really does leak like a sieve. Several megabytes per
minute, so it's pretty serious. I suspect that using GL is a precondition for
reproducing this with GTK+ 3.22.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
wayland-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs