This bug was fixed in the package gjs - 1.72.4-0ubuntu0.22.04.4 --------------- gjs (1.72.4-0ubuntu0.22.04.4) jammy; urgency=medium
* Use the latest upstream release as base again (LP: #2023572): - Revert "debian/patches: Restore ubuntu patches of 1.72.2-0ubuntu2" - Revert "debian/patches: Revert tree to 1.72.2" - Main leak fixes are still included in the changes (LP: #2012978) * debian/patches: Revert upstream fixes that may potentially lead to crashes As per previous upload we had some random crashes happening with newer gjs, so let's remove more complex patches that may have caused them. -- Marco Trevisan (Treviño) <ma...@ubuntu.com> Fri, 24 May 2024 14:29:08 +0200 ** Changed in: gjs (Ubuntu Jammy) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gjs in Ubuntu. https://bugs.launchpad.net/bugs/2012978 Title: Memory leak Status in gjs package in Ubuntu: Fix Released Status in gjs source package in Jammy: Fix Released Status in gjs source package in Kinetic: Won't Fix Bug description: [ Impact ] High Memory Usage 3.1gb in 2h after reboot [ Test case ] Run: env G_SLICE=always-malloc valgrind --leak-check=full \ --suppressions=/usr/share/glib-2.0/valgrind/glib.supp \ gjs -c "const GLib=imports.gi['GLib'];function leak(){const l=GLib.Variant['new']('i',1)};leak();imports.system.gc();" No leak should be detected Running more installed tests under valgrind should output no leaks (unless those caused by gobject-introspection): sudo apt install gjs-tests env GJS_DEBUG_TOPICS= valgrind --leak-check=full \ --suppressions=/usr/share/glib-2.0/valgrind/glib.supp \ /usr/libexec/installed-tests/gjs/minijasmine \ /usr/libexec/installed-tests/gjs/js/testGIMarshalling.js There may be only two leaks caused by gi_marshalling_tests_garray_boxed_struct_full_return and a gbytes one after a ObjectInstance::prop_setter_impl call (these are leaks in the test library that are expected with gobject-introspection 42, but fixed in later versions). env GJS_DEBUG_TOPICS= valgrind --leak-check=full \ --suppressions=/usr/share/glib-2.0/valgrind/glib.supp \ /usr/libexec/installed-tests/gjs/minijasmine \ /usr/libexec/installed-tests/gjs/js/testRegress.js No leak expected [ Regression potential ] Gjs applications (including gnome Shell) using GVariant may misbehave --- ProblemType: BugDistroRelease: Ubuntu 22.04 Package: gnome-shell 42.5-0ubuntu1 Uname: Linux 6.2.8-060208-generic x86_64 ApportVersion: 2.20.11-0ubuntu82.3 Architecture: amd64 CasperMD5CheckResult: unknown CurrentDesktop: ubuntu:GNOME Date: Mon Mar 27 22:46:07 2023 DisplayManager: gdm3 InstallationDate: Installed on 2022-03-25 (366 days ago) InstallationMedia: Ubuntu 20.04.4 LTS "Focal Fossa" - Release amd64 (20220223) RelatedPackageVersions: mutter-common 42.5-0ubuntu1SourcePackage: gnome-shell UpgradeStatus: Upgraded to jammy on 2022-09-03 (205 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gjs/+bug/2012978/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp