[Pkg-utopia-maintainers] Bug#995357: pipewire: rtkit-daemon race condition causes realtime scheduling and nice-level failure

João de Felipe joaodefelipe at gmail.com
Thu Sep 30 10:08:36 BST 2021


Package: pipewire
Version: 0.3.37-2
Severity: normal
X-Debbugs-Cc: joaodefelipe at gmail.com

Dear Maintainer,

on boot, pipewire.service and pipewire-pulse.service can be started by
systemd before rtkit-daemon.service, causing the following errors:

systemd[1302]: Started PipeWire PulseAudio.
pipewire-pulse[1410]: RTKit error: org.freedesktop.DBus.Error.AccessDenied
pipewire-pulse[1410]: could not set nice-level to -11: Permission denied
pipewire-pulse[1410]: RTKit error: org.freedesktop.DBus.Error.AccessDenied
pipewire-pulse[1410]: could not make thread realtime: Permission denied

systemd[1302]: Started Multimedia Service.
pipewire[1408]: RTKit error: org.freedesktop.DBus.Error.AccessDenied
pipewire[1408]: could not set nice-level to -11: Permission denied
pipewire[1408]: RTKit error: org.freedesktop.DBus.Error.AccessDenied
pipewire[1408]: could not make thread realtime: Permission denied

In my case, rtkit-daemon starts, on average, 80ms after the pipewire processes.
Restarting them while making sure rtkit-daemon was running was enough for a
temporary solution.

Perhaps due to the difference in the number of systemd units, I wasn't able to
reproduce the issue on a clean install, but from reading the unit files, it
doesn't look like pipewire needs to wait for multi-user.target to complete or
for rtkit-daemon.service to be started.

-- System Information:
Debian Release: bookworm/sid
  APT prefers testing
  APT policy: (990, 'testing'), (490, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.14.0-1-amd64 (SMP w/8 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages pipewire depends on:
ii  init-system-helpers      1.60
ii  libpipewire-0.3-modules  0.3.37-2
ii  pipewire-bin             0.3.37-2

pipewire recommends no packages.

pipewire suggests no packages.

-- no debconf information



More information about the Pkg-utopia-maintainers mailing list