Public bug reported:
## Summary
On Ubuntu 26.04.1 with GNOME Shell 50.1 on Wayland and an NVIDIA RTX
5060 Ti, gnome-shell's resident memory grows without bound:
1. **Steady creep of ~4–6 MiB/h while completely idle.** This continues with
the screen locked, with the session inactive (switched away), and in a
brand-new user account with stock settings and no apps.
2. **Step increases of 30–200 MiB that are never released.** These happen
around screen lock / display idle and on Switch User (VT handover).
Over 2.5 days, RSS went from 440 MiB to 1053 MiB. GPU memory used by
gnome-shell does **not** grow. The journal shows nothing unusual.
## Environment
| | |
|---|---|
| Distro | Ubuntu 26.04.1 LTS |
| gnome-shell | 50.1-0ubuntu1.5 |
| mutter | 50.1-0ubuntu2.5 (libmutter-18-0) |
| mozjs | 140.8.0-4 |
| GLib | 2.88.0-1ubuntu0.1 |
| Xwayland | 24.1.10-1 |
| Kernel | 7.0.0-44-generic (also seen on 7.0.0-43) |
| GPU | NVIDIA GeForce RTX 5060 Ti |
| Driver | 615.71.09 open kernel module (also seen on 595.99.02 open) |
| nvidia_drm | modeset=Y, fbdev=Y |
| Session | Wayland, single display (a TV over HDMI/DP) |
| mutter experimental-features | scale-monitor-framebuffer,
xwayland-native-scaling |
## Measurements
These were sampled every 10 minutes from `/proc/<pid>/smaps` (split by
mapping) and `/proc/<pid>/status`.
### Long-term trend (driver 595.99, kernel 7.0.0-43)
- 2026-11-21 22:24: 440 MiB RSS.
- 2026-11-24 11:16: 1053 MiB RSS.
- Average rate: ~8.4 MiB/h overall, ~10 MiB/h in daytime use, ~4.3 MiB/h
overnight idle.
### After a reboot onto driver 615.71.09 and kernel 7.0.0-44: rate
unchanged
| time | [heap] | unnamed anon | js-gc-heap | total RSS (MiB) |
|---|---|---|---|---|
| 11:28 (login) | 134 | 35 | 9 | 398 |
| 12:08 | 239 | 36 | 9 | 505 |
| 14:08 | 239 | 41 | 14 | 515 |
- The idle creep from 12:08 to 14:08 is **5 MiB/h**. It is in unnamed anonymous
mappings (~2.5 MiB/h) and the JS GC heap (~2.5 MiB/h).
- `[heap]` (brk) stays flat between steps. It jumped +41 MiB between 11:58 and
12:08, unattended, shortly after the screen auto-locked (idle-delay 900 s,
lock-delay 0). At 12:06:07 the only journal line was `gnome-shell: Cursor
update failed: drmModeAtomicCommit: Invalid argument`.
- Earlier, similar unattended `[heap]` steps of +31 MiB and +82 MiB occurred.
### Fresh user account (stock settings, no apps opened, default Ubuntu
extensions)
The second user was logged in via Switch User and left idle. RssAnon
from `/proc/<pid>/status`:
| account | 15:12 | 17:02 | rate |
|---|---|---|---|
| new user `leaktest` (active VT) | 278 MiB | 289 MiB | ~6 MiB/h |
| original user (inactive, switched away) | 531 MiB | 544 MiB | ~6.5 MiB/h |
### Switch User retains a large step
When the original user switched to the second account, the original
session's gnome-shell grew from 537 to 742 MiB RSS within a few minutes:
`[heap]` 244 → 286 MiB, unnamed anon 51 → 214 MiB. After switching back
about 2 hours later it was **758 MiB**, so the memory was not released.
## Ruled out
- **Extensions.** All user extensions were disabled for an overnight run, with
an identical idle slope (4.0 vs 4.3 MiB/h). A brand-new account also creeps.
- **Third-party apps.** The fresh account had no apps open. The only
third-party autostarted app on the main account (a Qt cooler-LCD tool) was
stopped for 3 hours, with no change in slope.
- **NVIDIA driver version.** 595.99.02 and 615.71.09 show the same slope.
- **Display power save.** Five DPMS off/on cycles via
`org.gnome.Mutter.DisplayConfig.PowerSaveMode`, and three monitor power-button
cycles, showed no change.
- **Closing a large client window.** Chrome, open 4 minutes with a 1.4 GB peak:
+1 MiB.
- **D-Bus clients.** A 10-minute header-only `dbus-monitor` capture while idle
and locked showed **zero** method calls to or from gnome-shell. Only broadcast
signals arrived (systemd PropertiesChanged ×78, Tracker ×16).
- **Wayland clients.** Only light clients were connected: terminal, ibus,
evolution-alarm-notify, update-notifier, snapd-desktop-integration,
xdg-desktop-portal.
- **Lazy GC.** `imports.system.gc()` in Looking Glass did not reduce js-gc-heap
RSS (16 → 16 MiB). This is inconclusive, since SpiderMonkey may retain freed
chunks.
- **GPU memory.** gnome-shell VRAM stays flat at ~175 MiB.
- **Kernel memory.** SUnreclaim is ~0.5 GiB and stable. This is not a VM; there
is no balloon driver or ZFS.
## Steps to reproduce
1. Ubuntu 26.04.1 with an NVIDIA RTX 50-series GPU, proprietary/open driver 595
or 615, and a GNOME Wayland session.
2. Log in and leave the session idle (or locked) for several hours. Sample
`RssAnon` in `/proc/$(pgrep -u $USER -x gnome-shell)/status`: it rises ~5 MiB/h
indefinitely.
3. To see the step: note RSS, use Switch User to log in as another user, then
check the first user's gnome-shell RSS. It jumps by ~150–200 MiB and does not
return after switching back.
## Expected
gnome-shell memory should plateau when the session is idle, and memory
allocated during a VT/session handover should be freed afterwards.
## Attachments available
- 10-minute RSS/VRAM series for 2.5 days (`gpu-mem.csv`)
- Per-region series (`heap.csv`)
- Per-user series (`users-shell.csv`)
ProblemType: Bug
DistroRelease: Ubuntu 26.04
Package: gnome-shell 50.1-0ubuntu1.5
ProcVersionSignature: Ubuntu 7.0.0-44.44-generic 7.0.14
Uname: Linux 7.0.0-44-generic x86_64
ApportVersion: 2.34.1-0ubuntu0.1
Architecture: amd64
CasperMD5CheckResult: unknown
Date: Tue Nov 24 17:30:18 2026
DisplayManager: gdm3
InstallationDate: Installed on 2026-07-19 (129 days ago)
InstallationMedia: Ubuntu 26.04 "Resolute Raccoon" - Release amd64 (20260423.1)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
RelatedPackageVersions: mutter-common 50.1-0ubuntu2.5
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)
** Affects: gnome-shell (Ubuntu)
Importance: Undecided
Status: New
** Tags: amd64 apport-bug resolute
** Attachment added: "10 minute memory log and full report"
https://bugs.launchpad.net/bugs/2175800/+attachment/6020753/+files/leak-data.zip
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2175800
Title:
gnome-shell 50.1 Wayland/NVIDIA: memory grows ~5 MiB/h while idle, and
Switch User/lock adds ~30–200 MiB never released
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-shell/+bug/2175800/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs