You are not logged in.

#1 2022-09-09 08:50:22

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 239

org.kde.plasma.pulseaudio slows down GTK+ windows startup

For a long time, I've been noticing a problem with myself starting Fifefox, Terminator after turning on the computer.

The window frame opens and you have to wait ~40 seconds for the window body to appear.

I launched

journalctl -f                                            
wrz 09 10:37:42 saad systemd[795]: Starting KRunner provider for baloo file indexer...
wrz 09 10:37:42 saad dbus-daemon[808]: [session uid=1000 pid=808] Successfully activated service 'org.kde.runners.baloo'
wrz 09 10:37:42 saad systemd[795]: Started KRunner provider for baloo file indexer.
wrz 09 10:37:42 saad systemd[795]: Started Kontrola PulseAudio - Kontrola głośności.
wrz 09 10:37:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: context kaput
wrz 09 10:37:48 saad kded5[903]: kf.kio.core: Malformed JSON protocol file for protocol: "trash" , number of the ExtraNames fields should match the number of ExtraTypes fields
wrz 09 10:38:06 saad kernel: [UFW BLOCK] IN=enp13s0 OUT= MAC=01:00:5e:00:00:01:70:0b:01:ab:6c:b0:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x80 TTL=1 ID=0 DF PROTO=2 
wrz 09 10:38:06 saad kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:01:70:0b:01:ab:6c:b0:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x80 TTL=1 ID=0 DF PROTO=2 
wrz 09 10:38:14 saad plasmashell[1046]: org.kde.plasma.pulseaudio: context kaput
wrz 09 10:38:16 saad systemd[795]: Started Konsola - Terminal.
wrz 09 10:38:26 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "@DEFAULT_SINK@"
wrz 09 10:38:26 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "@DEFAULT_SOURCE@"
wrz 09 10:38:30 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "@DEFAULT_SINK@"
wrz 09 10:38:30 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "@DEFAULT_SOURCE@"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "@DEFAULT_SINK@"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "@DEFAULT_SOURCE@"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor"
wrz 09 10:38:43 saad plasmashell[1046]: org.kde.plasma.pulseaudio: No object for name "alsa_output.pci-0000_00_1b.0.iec958-stereo.monitor"
wrz 09 10:38:46 saad kernel: [UFW BLOCK] IN=eno1 OUT= MAC=01:00:5e:00:00:01:70:0b:01:ab:6c:b0:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x80 TTL=1 ID=0 DF PROTO=2 
wrz 09 10:38:46 saad kernel: [UFW BLOCK] IN=enp13s0 OUT= MAC=01:00:5e:00:00:01:70:0b:01:ab:6c:b0:08:00 SRC=192.168.1.1 DST=224.0.0.1 LEN=32 TOS=0x00 PREC=0x80 TTL=1 ID=0 DF PROTO=2 
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:38:54 saad pipewire[1416]: spa.alsa: iec958:0: snd_pcm_avail after recover: Przerwany potok
wrz 09 10:39:10 saad systemd[795]: Started Firefox Developer Edition - Przeglądarka WWW.
wrz 09 10:39:10 saad plasmashell[1613]: [GFX1-]: glxtest: VA-API test failed: failed to initialise VAAPI connection.
wrz 09 10:39:10 saad plasmashell[1613]: [GFX1-]: More than 2 GPUs detected via PCI, secondary GPU is arbitrary
wrz 09 10:39:10 saad dbus-daemon[808]: [session uid=1000 pid=808] Activating via systemd: service name='org.a11y.Bus' unit='at-spi-dbus-bus.service' requested by ':1.44' (uid=1000 pid=1613 comm="/usr/lib/firefox-developer-edition/firefox --class")
wrz 09 10:39:10 saad systemd[795]: Starting Accessibility services bus...
wrz 09 10:39:10 saad dbus-daemon[808]: [session uid=1000 pid=808] Successfully activated service 'org.a11y.Bus'
wrz 09 10:39:10 saad systemd[795]: Started Accessibility services bus.
wrz 09 10:39:10 saad rtkit-daemon[1419]: Supervising 3 threads of 3 processes of 1 users.
wrz 09 10:39:10 saad rtkit-daemon[1419]: Supervising 3 threads of 3 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 3 threads of 3 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 3 threads of 3 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 3 threads of 3 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 3 threads of 3 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Successfully made thread 1718 of process 1613 owned by '1000' RT at priority 10.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 4 threads of 4 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 4 threads of 4 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 4 threads of 4 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 4 threads of 4 processes of 1 users.
wrz 09 10:39:11 saad rtkit-daemon[1419]: Supervising 4 threads of 4 processes of 1 users.
wrz 09 10:39:11 saad plasmashell[1613]: Missing chrome or resource URL: resource://gre/modules/UpdateListener.sys.mjs
wrz 09 10:39:13 saad rtkit-daemon[1419]: Supervising 4 threads of 4 processes of 1 users.
wrz 09 10:39:13 saad rtkit-daemon[1419]: Supervising 4 threads of 4 processes of 1 users.

I noticed that I have to wait for the sound-related processes to start up. Why is this happening? Obviously, early on I did not have this.

Edit:
I think the topic is linked to my other topic → https://bbs.archlinux.org/viewtopic.php … 9#p2056489

Last edited by thommen (2022-09-09 09:10:11)

Offline

#2 2022-09-09 08:59:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

How are you starting your session? What's your output of

systemctl --user status pipewire pipewire-pulse wireplumber pulseaudio

Migh also be a red hering and your issue being related to the portal implementations.

Offline

#3 2022-09-09 09:32:59

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 239

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

I edited the topic add the last sentence (it may be important for this thread)..

systemctl --user status pipewire pipewire-pulse wireplumber pulseaudio
● pipewire.service - PipeWire Multimedia Service
     Loaded: loaded (/usr/lib/systemd/user/pipewire.service; disabled; preset: enabled)
     Active: active (running) since Fri 2022-09-09 11:30:46 CEST; 1min 8s ago
TriggeredBy: ● pipewire.socket
   Main PID: 1303 (pipewire)
      Tasks: 2 (limit: 57599)
     Memory: 3.5M
        CPU: 16ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire.service
             └─1303 /usr/bin/pipewire

Sep 09 11:30:46 los systemd[768]: Started PipeWire Multimedia Service.
Sep 09 11:30:46 los pipewire[1303]: mod.rt: Can't find xdg-portal: (null)
Sep 09 11:30:46 los pipewire[1303]: mod.rt: found session bus but no portal
Sep 09 11:30:46 los pipewire[1303]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Sep 09 11:30:46 los pipewire[1303]: mod.rt: could not make thread 1311 realtime using RTKit: Permission denied

● pipewire-pulse.service - PipeWire PulseAudio
     Loaded: loaded (/usr/lib/systemd/user/pipewire-pulse.service; disabled; preset: enabled)
     Active: active (running) since Fri 2022-09-09 11:30:46 CEST; 1min 8s ago
TriggeredBy: ● pipewire-pulse.socket
   Main PID: 1305 (pipewire-pulse)
      Tasks: 2 (limit: 57599)
     Memory: 2.5M
        CPU: 18ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/pipewire-pulse.service
             └─1305 /usr/bin/pipewire-pulse

Sep 09 11:30:46 los systemd[768]: Started PipeWire PulseAudio.
Sep 09 11:30:46 los pipewire-pulse[1305]: mod.rt: Can't find xdg-portal: (null)
Sep 09 11:30:46 los pipewire-pulse[1305]: mod.rt: found session bus but no portal
Sep 09 11:30:46 los pipewire-pulse[1305]: mod.rt: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Sep 09 11:30:46 los pipewire-pulse[1305]: mod.rt: could not make thread 1316 realtime using RTKit: Permission denied
Sep 09 11:30:46 los pipewire-pulse[1315]: 536870912

● wireplumber.service - Multimedia Service Session Manager
     Loaded: loaded (/usr/lib/systemd/user/wireplumber.service; enabled; preset: enabled)
     Active: active (running) since Fri 2022-09-09 11:30:46 CEST; 1min 8s ago
   Main PID: 1304 (wireplumber)
      Tasks: 4 (limit: 57599)
     Memory: 13.3M
        CPU: 157ms
     CGroup: /user.slice/user-1000.slice/user@1000.service/session.slice/wireplumber.service
             └─1304 /usr/bin/wireplumber

Sep 09 11:30:46 los systemd[768]: Started Multimedia Service Session Manager.
Sep 09 11:30:46 los wireplumber[1304]: Can't find xdg-portal: (null)
Sep 09 11:30:46 los wireplumber[1304]: found session bus but no portal
Sep 09 11:30:46 los wireplumber[1304]: RTKit error: org.freedesktop.DBus.Error.AccessDenied
Sep 09 11:30:46 los wireplumber[1304]: could not make thread 1313 realtime using RTKit: Permission denied
Sep 09 11:30:46 los wireplumber[1304]: Failed to set scheduler settings: Operation not permitted
Sep 09 11:30:46 los wireplumber[1304]: SPA handle 'api.libcamera.enum.manager' could not be loaded; is it installed?
Sep 09 11:30:46 los wireplumber[1304]: PipeWire's libcamera SPA missing or broken. Unit pulseaudio.service could not be found.
libcamera not supported.
Sep 09 11:30:46 los wireplumber[1304]: reserve-device plugin is not connected to D-Bus, disabling device reservation

Offline

#4 2022-09-09 10:56:09

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

I don't think this and the other topic are related. From this you probably want to install rtkit so that the device priorities don't fail, and by the lack of portals, do you not have any implementations of xdg-desktop-portal/did you intentionally remove those at some point? I'd assume this latter point to be more relevant to the freezing issues you experience here. Output of

pacman -Qs desktop-portal

?

Offline

#5 2022-09-09 11:14:08

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 239

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

I have

pacman -Qs desktop-portal
local/xdg-desktop-portal-kde 5.25.5-1 (plasma)
    A backend implementation for xdg-desktop-portal using Qt/KF

Offline

#6 2022-09-09 11:18:48

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

Is there a reason that is installed but it's base requirement xdg-desktop-portal isnt't ? does installing xdg-desktop-portal help?

Offline

#7 2022-09-09 11:42:11

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 239

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

I installed the package. Now I have:

pacman -Qs desktop-portal                                 
local/xdg-desktop-portal 1.15.0-1
    Desktop integration portals for sandboxed apps
local/xdg-desktop-portal-kde 5.25.5-1 (plasma)
    A backend implementation for xdg-desktop-portal using Qt/KF5

Installed package did not help.

V1del wrote:

Is there a reason that is installed but it's base requirement xdg-desktop-portal isnt't ?

No. I have not uninstalled this package. It simply wasn't there.

Offline

#8 2022-09-09 15:38:40

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,263

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

Did you reboot after installing that? or at the very least start them in the user session?

Yes I'm seeing that it's not implicitly included with the implementation from KDE which seems weird. Other than that you can try whether downgrading pipewire-pulse as a stop gap mitigation for this and the other issue helps.

Offline

#9 2022-09-09 18:52:14

thommen
Member
From: Poland
Registered: 2017-12-30
Posts: 239

Re: org.kde.plasma.pulseaudio slows down GTK+ windows startup

V1del wrote:

Did you reboot after installing that? or at the very least start them in the user session?

Of course

V1del wrote:

Yes I'm seeing that it's not implicitly included with the implementation from KDE which seems weird. Other than that you can try whether downgrading pipewire-pulse as a stop gap mitigation for this and the other issue helps.

For example. I have degraded the package

pacaur -Qs pipewire-pulse
local/pipewire-pulse 1:0.3.20-1

And I do not have slowdowns, but now I do not see the ability to switch between audio channels. For example, I can't switch from analog to optical (and vice versa).

Offline

Board footer

Powered by FluxBB