From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 60FA7158015 for ; Mon, 18 Dec 2023 10:19:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1D06B2BC068; Mon, 18 Dec 2023 10:19:51 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id F0CC62BC057 for ; Mon, 18 Dec 2023 10:19:50 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A2A2833CEF2 for ; Mon, 18 Dec 2023 10:19:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E81B614BE for ; Mon, 18 Dec 2023 10:19:46 +0000 (UTC) From: "Pacho Ramos" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Pacho Ramos" Message-ID: <1702894751.002602af135042ef47020a2b22478f82c9e1031a.pacho@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: x11-wm/mutter/, x11-wm/mutter/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: x11-wm/mutter/files/mutter-45.2-fullscreen-leak.patch x11-wm/mutter/mutter-45.2.ebuild X-VCS-Directories: x11-wm/mutter/files/ x11-wm/mutter/ X-VCS-Committer: pacho X-VCS-Committer-Name: Pacho Ramos X-VCS-Revision: 002602af135042ef47020a2b22478f82c9e1031a X-VCS-Branch: master Date: Mon, 18 Dec 2023 10:19:46 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 57e46b40-9b19-4d54-9f31-ccde6ad59bbe X-Archives-Hash: 23545194b58afc8de6111bad5c074bd4 commit: 002602af135042ef47020a2b22478f82c9e1031a Author: Pacho Ramos gentoo org> AuthorDate: Mon Dec 18 10:04:08 2023 +0000 Commit: Pacho Ramos gentoo org> CommitDate: Mon Dec 18 10:19:11 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=002602af x11-wm/mutter: Fix memory leak in fullscreen mode Apply upstream patch to fix a leak when running apps in fullscreen. It will be included in the next point release. Signed-off-by: Pacho Ramos gentoo.org> .../mutter/files/mutter-45.2-fullscreen-leak.patch | 37 ++++++++++++++++++++++ x11-wm/mutter/mutter-45.2.ebuild | 1 + 2 files changed, 38 insertions(+) diff --git a/x11-wm/mutter/files/mutter-45.2-fullscreen-leak.patch b/x11-wm/mutter/files/mutter-45.2-fullscreen-leak.patch new file mode 100644 index 000000000000..adbd309c1b7c --- /dev/null +++ b/x11-wm/mutter/files/mutter-45.2-fullscreen-leak.patch @@ -0,0 +1,37 @@ +From bedf8df88f41c34c9824dccba507c8e333dd9ba6 Mon Sep 17 00:00:00 2001 +From: Robert Balas +Date: Mon, 4 Dec 2023 00:27:49 +0100 +Subject: [PATCH] clutter: Fix memory leak when running in fullscreen + +`clutter_stage_do_paint_view()` only gets called when leaving fullscreen +and by that time enough calls to +`clutter_actor_get_transformed_paint_volume()` can make the underlying +GArray grow to a large size. + +To fix this, we call call the cleanup function in +`clutter_stage_finish_layout()` to make it happen every frame. + +Co-authored-by: Sebastian Keller + +Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/3191 +Part-of: +--- + clutter/clutter/clutter-stage.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c +index 55bb81c2b46..deb383fe216 100644 +--- a/clutter/clutter/clutter-stage.c ++++ b/clutter/clutter/clutter-stage.c +@@ -970,6 +970,8 @@ clutter_stage_finish_layout (ClutterStage *stage) + } + + g_warn_if_fail (!priv->actor_needs_immediate_relayout); ++ ++ _clutter_stage_paint_volume_stack_free_all (stage); + } + + void +-- +GitLab + diff --git a/x11-wm/mutter/mutter-45.2.ebuild b/x11-wm/mutter/mutter-45.2.ebuild index f6f42162b174..40a5b53d810c 100644 --- a/x11-wm/mutter/mutter-45.2.ebuild +++ b/x11-wm/mutter/mutter-45.2.ebuild @@ -141,6 +141,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}"/${PN}-43.0-Disable-anonymous-file-test.patch + "${FILESDIR}"/${P}-fullscreen-leak.patch ) python_check_deps() {