Applications end up in session scope, rather than per .desktop scope

Bug #1959596 reported by Julian Andres Klode
16
This bug affects 2 people
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Fix Released
High
Marco Trevisan (Treviño)
Jammy
Fix Released
High
Marco Trevisan (Treviño)

Bug Description

During systemd-oomd install in jammy (w/ GNOME session) today, I noticed that applications ended up in the wrong control group - in the session scope, rather than per .desktop one:

Control group /:
-.slice
├─user.slice
│ └─user-1000.slice
│ ├─user@1000.service
│ │ ├─session.slice
│ │ │ ├─xdg-document-portal.service
│ │ │ │ ├─4514 /usr/libexec/xdg-document-portal
│ │ │ │ └─4556 fusermount3 -o rw,nosuid,nodev,fsname=portal,auto_unmount,subt…
│ │ │ ├─xdg-desktop-portal.service
│ │ │ │ └─6186 /usr/libexec/xdg-desktop-portal
│ │ │ ├─pipewire-pulse.service
│ │ │ │ └─4473 /usr/bin/pipewire-pulse
│ │ │ ├─wireplumber.service
│ │ │ │ └─4472 /usr/bin/wireplumber
│ │ │ └─pipewire.service
│ │ │ └─4461 /usr/bin/pipewire
│ │ ├─background.slice
│ │ │ └─tracker-miner-fs-3.service
│ │ │ └─4940 /usr/libexec/tracker-miner-fs-3
│ │ ├─user.slice
│ │ │ └─podman-pause-6313308764925138924.scope
│ │ │ └─4602 /usr/bin/podman
│ │ ├─app.slice
│ │ │ ├─gvfs-goa-volume-monitor.service
│ │ │ │ └─5417 /usr/libexec/gvfs-goa-volume-monitor
│ │ │ ├─snap.syncthing.syncthing.908e68e0-47a9-47b6-80b0-a6a3afdd4f24.scope
│ │ │ │ ├─4470 /snap/syncthing/501/syncthing
│ │ │ │ └─5510 /snap/syncthing/501/syncthing
│ │ │ ├─xdg-permission-store.service
│ │ │ │ └─4527 /usr/libexec/xdg-permission-store
│ │ │ ├─snap.spotify.spotify.b3c54917-38c3-473b-8774-b90e1d30a8c3.scope
│ │ │ │ ├─198100 /snap/spotify/57/usr/share/spotify/spotify
│ │ │ │ ├─198169 /snap/spotify/57/usr/share/spotify/spotify --type=zygote --n…
│ │ │ │ ├─198170 /snap/spotify/57/usr/share/spotify/spotify --type=zygote --n…
│ │ │ │ ├─198188 /snap/spotify/57/usr/share/spotify/spotify --type=gpu-proces…
│ │ │ │ ├─198205 /snap/spotify/57/usr/share/spotify/spotify --type=utility --…
│ │ │ │ ├─198208 /snap/spotify/57/usr/share/spotify/spotify --type=utility --…
│ │ │ │ └─198235 /snap/spotify/57/usr/share/spotify/spotify --type=renderer -…
│ │ │ ├─evolution-calendar-factory.service
│ │ │ │ └─6018 /usr/libexec/evolution-calendar-factory
│ │ │ ├─xdg-desktop-portal-gnome.service
│ │ │ │ └─6193 /usr/libexec/xdg-desktop-portal-gnome
│ │ │ ├─dconf.service
│ │ │ │ └─5837 /usr/libexec/dconf-service
│ │ │ ├─gvfs-daemon.service
│ │ │ │ ├─ 4515 /usr/libexec/gvfsd
│ │ │ │ ├─ 4531 /usr/libexec/gvfsd-fuse /run/user/1000/gvfs -f
│ │ │ │ ├─ 8485 /usr/libexec/gvfsd-http --spawner :1.4 /org/gtk/gvfs/exec_spa…
│ │ │ │ ├─29658 /usr/libexec/gvfsd-trash --spawner :1.4 /org/gtk/gvfs/exec_sp…
│ │ │ │ └─29990 /usr/libexec/gvfsd-burn --spawner :1.4 /org/gtk/gvfs/exec_spa…
│ │ │ ├─evolution-source-registry.service
│ │ │ │ └─5820 /usr/libexec/evolution-source-registry
│ │ │ ├─gvfs-udisks2-volume-monitor.service
│ │ │ │ └─5202 /usr/libexec/gvfs-udisks2-volume-monitor
│ │ │ ├─app-org.gnome.Terminal.slice
│ │ │ │ ├─gnome-terminal-server.service
│ │ │ │ │ └─8577 /usr/libexec/gnome-terminal-server
│ │ │ │ └─vte-spawn-e31cc856-c6d7-4247-935c-6d28706ab542.scope
│ │ │ │ ├─ 8595 -bash
│ │ │ │ ├─ 8617 tmux -u -2 -f /usr/share/byobu/profiles/tmuxrc new-session…
│ │ │ │ ├─ 8648 tmux -u -2 -f /usr/share/byobu/profiles/tmuxrc new-session…
│ │ │ │ ├─ 8655 /bin/bash
│ │ │ │ ├─ 8749 journalctl -f
│ │ │ │ ├─ 25429 /bin/bash
│ │ │ │ ├─179012 /bin/bash
│ │ │ │ ├─208170 systemd-cgls
│ │ │ │ └─208171 xclip
│ │ │ ├─gpg-agent.service
│ │ │ │ ├─29718 /usr/bin/gpg-agent --supervised
│ │ │ │ └─70766 scdaemon --multi-server
│ │ │ ├─gvfs-gphoto2-volume-monitor.service
│ │ │ │ └─5403 /usr/libexec/gvfs-gphoto2-volume-monitor
│ │ │ ├─xdg-desktop-portal-gtk.service
│ │ │ │ └─7143 /usr/libexec/xdg-desktop-portal-gtk
│ │ │ ├─obex.service
│ │ │ │ └─63426 /usr/lib/bluetooth/obexd
│ │ │ ├─at-spi-dbus-bus.service
│ │ │ │ ├─5443 /usr/libexec/at-spi-bus-launcher
│ │ │ │ ├─5457 /usr/bin/dbus-daemon --config-file=/usr/share/defaults/at-spi2…
│ │ │ │ └─5886 /usr/libexec/at-spi2-registryd --use-gnome-session
│ │ │ ├─gvfs-metadata.service
│ │ │ │ └─5931 /usr/libexec/gvfsd-metadata
│ │ │ ├─dbus.service
│ │ │ │ ├─ 4508 /usr/bin/dbus-daemon --session --address=systemd: --nofork --…
│ │ │ │ ├─ 5431 /usr/libexec/goa-daemon
│ │ │ │ ├─ 5513 /usr/libexec/goa-identity-service
│ │ │ │ ├─ 5804 /usr/libexec/gnome-shell-calendar-server
│ │ │ │ ├─ 5888 /usr/bin/gjs /usr/share/gnome-shell/org.gnome.Shell.Notificat
│ │ │ │ ├─ 6073 /usr/bin/gjs /usr/share/gnome-shell/org.gnome.ScreenSaver
│ │ │ │ ├─ 6426 /usr/libexec/ibus-portal
│ │ │ │ └─29631 /usr/bin/gnome-calendar --gapplication-service
│ │ │ ├─evolution-addressbook-factory.service
│ │ │ │ └─7198 /usr/libexec/evolution-addressbook-factory
│ │ │ ├─gvfs-mtp-volume-monitor.service
│ │ │ │ └─5384 /usr/libexec/gvfs-mtp-volume-monitor
│ │ │ └─gvfs-afc-volume-monitor.service
│ │ │ └─5524 /usr/libexec/gvfs-afc-volume-monitor
│ │ └─init.scope
│ │ ├─4347 /lib/systemd/systemd --user
│ │ └─4354 (sd-pam)
│ └─session-2.scope
│ ├─ 3920 gdm-session-worker [pam/gdm-password]
│ ├─ 4496 /usr/bin/gnome-keyring-daemon --daemonize --login
│ ├─ 4755 /usr/libexec/gdm-wayland-session /usr/bin/gnome-session --sessio…
│ ├─ 4801 /usr/libexec/gnome-session-binary --session=gnome
│ ├─ 4979 /usr/bin/gnome-shell
│ ├─ 5526 /usr/bin/Xwayland :0 -rootless -noreset -accessx -core -auth /ru…
│ ├─ 5902 /usr/libexec/gsd-usb-protection
│ ├─ 5910 /usr/libexec/gsd-media-keys
│ ├─ 5925 /usr/libexec/gsd-rfkill
│ ├─ 5938 /usr/libexec/gsd-a11y-settings
│ ├─ 5947 /usr/libexec/gsd-wacom
│ ├─ 5953 /usr/libexec/gsd-power
│ ├─ 5956 /usr/libexec/gsd-screensaver-proxy
│ ├─ 5959 /usr/libexec/gsd-color
│ ├─ 5961 /usr/libexec/gsd-xsettings
│ ├─ 5970 /usr/libexec/gsd-print-notifications
│ ├─ 5999 /usr/libexec/gsd-sharing
│ ├─ 6002 /usr/libexec/gsd-datetime
│ ├─ 6007 /usr/libexec/gsd-smartcard
│ ├─ 6008 /usr/libexec/gsd-wwan
│ ├─ 6022 /usr/libexec/gsd-housekeeping
│ ├─ 6030 /usr/libexec/gsd-sound
│ ├─ 6040 /usr/libexec/gsd-keyboard
│ ├─ 6081 /usr/libexec/gsd-printer
│ ├─ 6214 ibus-daemon --panel disable -r --xim
│ ├─ 6280 /usr/libexec/ibus-dconf
│ ├─ 6281 /usr/libexec/ibus-extension-gtk3
│ ├─ 6302 /usr/libexec/ibus-x11 --kill-daemon
│ ├─ 6393 /usr/libexec/gsd-disk-utility-notify
│ ├─ 6417 /usr/libexec/evolution-data-server/evolution-alarm-notify
│ ├─ 7036 /usr/libexec/ibus-engine-simple
│ ├─ 9457 update-notifier
│ ├─ 63408 gnome-control-center bluetooth
│ ├─150311 /usr/bin/python3 /usr/bin/gnome-terminal --disable-factory --cla…
│ ├─150316 /usr/libexec/gnome-terminal-server --app-id org.weechat.weechat-
│ ├─150340 ssh -oControlMaster=no -i /home/jak/.ssh/weechat_ssh_id_rsa -o I…
│ ├─188547 /opt/google/chrome/chrome --enable-features=VaapiVideoDecoder --…
│ ├─188552 cat
│ ├─188553 cat
│ ├─188555 /opt/google/chrome/chrome_crashpad_handler --monitor-self --moni…
│ ├─188557 /opt/google/chrome/chrome_crashpad_handler --no-periodic-tasks -…
│ ├─188563 /opt/google/chrome/chrome --type=zygote --no-zygote-sandbox --en…
│ ├─188564 /opt/google/chrome/chrome --type=zygote --enable-crashpad --cras…
│ ├─188565 /opt/google/chrome/nacl_helper
│ ├─188568 /opt/google/chrome/chrome --type=zygote --enable-crashpad --cras…
│ ├─188590 /opt/google/chrome/chrome --type=gpu-process --field-trial-handl…
│ ├─188592 /opt/google/chrome/chrome --type=utility --utility-sub-type=netw…
│ ├─188605 /opt/google/chrome/chrome --type=utility --utility-sub-type=stor…
│ ├─188643 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188685 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188726 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188749 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188759 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188785 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188799 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188812 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188825 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188831 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188844 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188852 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─188878 /opt/google/chrome/chrome --type=utility --utility-sub-type=prox…
│ ├─188904 /opt/google/chrome/chrome --type=utility --utility-sub-type=audi…
│ ├─189006 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─189789 /usr/bin/java -XX:+IgnoreUnrecognizedVMOptions --add-modules=ALL…
│ ├─194297 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─194769 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…
│ ├─198806 dino-im
│ └─207351 /opt/google/chrome/chrome --type=renderer --enable-crashpad --cr…

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: gnome-shell 41.3-1ubuntu1
ProcVersionSignature: Ubuntu 5.15.0-18.18-generic 5.15.12
Uname: Linux 5.15.0-18-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu76
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: GNOME
Date: Mon Jan 31 16:54:28 2022
DisplayManager: gdm3
InstallationDate: Installed on 2018-03-14 (1418 days ago)
InstallationMedia: Ubuntu 18.04 LTS "Bionic Beaver" - Alpha amd64 (20180313)
RelatedPackageVersions: mutter-common 41.3-1ubuntu1
SourcePackage: gnome-shell
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Julian Andres Klode (juliank) wrote :
tags: added: rls-jj-incoming
description: updated
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

This might also explain why Chrome's log messages are prefixed as gnome-shell...

Regardless, please report the issue to gnome-shell at: https://gitlab.gnome.org/GNOME/gnome-shell/issues

Revision history for this message
Sebastien Bacher (seb128) wrote :

Marco, could you work on this one? It's kind of important with oomd installed by default

Changed in gnome-shell (Ubuntu):
importance: Undecided → High
tags: removed: rls-jj-incoming
Changed in gnome-shell (Ubuntu Jammy):
assignee: nobody → Marco Trevisan (Treviño) (3v1n0)
Revision history for this message
Marco Trevisan (Treviño) (3v1n0) wrote :

I feel the way we launch applications from the dock also may imapct... Just to be clear, do we have a difference here?

App launched from overview VS app launched from dock

Revision history for this message
Julian Andres Klode (juliank) wrote :

That did not make a difference, no

Revision history for this message
Paride Legovini (paride) wrote :

Possibly related: the user graphical-session.target unit is never reached in Jammy. From Impish and Jammy we have for `systemctl --user is-active graphical-session.target`:

 - Impish clean install: active
 - Jammy clean install: inactive

Note that this means that the .service units under /usr/lib/systemd/user/graphical-session-pre.target.wants/ are not being executed. These are:

  gnome-keyring-ssh.service
  gnome-keyring.service
  session-migration.service
  ssh-agent.service

(Initially reported in https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/1743366)

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in gnome-shell (Ubuntu):
status: New → Confirmed
Revision history for this message
Jeremy Bícha (jbicha) wrote :

Maybe updating gnome-session should help too?

Revision history for this message
Jeremy Bícha (jbicha) wrote :

Oh, gnome-session was already updated yesterday.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Was fixed in

https://launchpad.net/ubuntu/+source/gnome-session/41.3-1ubuntu1

    - Ensure that systemd is preferred on startup (LP: #1959596)

affects: gnome-shell (Ubuntu Jammy) → gnome-session (Ubuntu Jammy)
Changed in gnome-session (Ubuntu Jammy):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.