Bug 489553 - org.kde.pulseaudio: context kaput in case of empty pipewire.conf file: Firefox and Thunderbird Freeze on Wayland
Summary: org.kde.pulseaudio: context kaput in case of empty pipewire.conf file: Firefo...
Status: REPORTED
Alias: None
Product: kwin
Classification: Plasma
Component: wayland-generic (other bugs)
Version First Reported In: 6.1.1
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-01 15:42 UTC by postix
Modified: 2024-07-03 22:49 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2024-07-01 15:42:15 UTC
SUMMARY

Since very recently, Firefox and Thunderbird freeze after a few seconds in the Wayland session, they both run in Wayland mode. I cannot test X unfortunately as the session won't start. 

Other apps, seem to work fine, such as Chromium, Kate, Konsole, Gwenview.

I see some interesting logs in journalctl which may be related:

```
17:32:03 plasmashell[2744]: QUnifiedTimer::stopAnimationDriver: driver is not running
17:32:11 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:32:14 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:32:21 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:32:24 kded6[2567]: org.kde.pulseaudio: context kaput
17:32:46 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:32:49 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:32:56 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:32:59 kded6[2567]: org.kde.pulseaudio: context kaput
17:33:21 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:33:24 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:33:31 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:33:34 kded6[2567]: org.kde.pulseaudio: context kaput
17:33:52 plasmashell[2744]: org.kde.klipper: Invalid or non-local url for preview:  QUrl("qunifiedtimer::stopAnimationDriver:")
17:33:52 plasmashell[2744]: org.kde.klipper: Invalid or non-local url for preview:  QUrl("driver")
17:33:56 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:33:57 systemd[2322]: Started Firefox.
17:33:58 kmozillahelper[12808]: kf.i18n: KLocalizedString: Using an empty domain, fix the code. msgid: "Mozilla Firefox" msgid_plural: "" msgctxt: ""
17:33:59 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:34:06 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:34:09 kded6[2567]: org.kde.pulseaudio: context kaput
17:34:31 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:34:34 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:34:41 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:34:44 kded6[2567]: org.kde.pulseaudio: context kaput
17:35:06 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:35:09 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:35:13 kwin_wayland[2416]: kwin_scene_opengl: 0x2: GL_INVALID_VALUE in glTexStorage2D(width, height or depth < 1)
17:35:13 kwin_wayland[2416]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
17:35:13 kwin_wayland[2416]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glBindFramebuffer(non-gen name)
17:35:16 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:35:19 kded6[2567]: org.kde.pulseaudio: context kaput
17:35:41 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:35:44 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:35:51 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:35:54 kded6[2567]: org.kde.pulseaudio: context kaput
17:36:16 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:36:19 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:36:26 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:36:29 kded6[2567]: org.kde.pulseaudio: context kaput
17:36:51 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:36:54 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:37:01 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:37:04 kded6[2567]: org.kde.pulseaudio: context kaput
17:37:26 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:37:29 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:37:36 plasmashell[2744]: org.kde.pulseaudio: context kaput
17:37:39 kded6[2567]: org.kde.pulseaudio: context kaput
17:38:01 plasmashell[2744]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:38:04 kded6[2567]: org.kde.pulseaudio: Giving up after 5 tries to connect
17:38:11 plasmashell[2744]: org.kde.pulseaudio: context kaput
```


From above there are interesting lines about kwin:
```
17:35:13 kwin_wayland[2416]: kwin_scene_opengl: 0x2: GL_INVALID_VALUE in glTexStorage2D(width, height or depth < 1)
17:35:13 kwin_wayland[2416]: kwin_scene_opengl: Invalid framebuffer status:  "GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT"
17:35:13 kwin_wayland[2416]: kwin_scene_opengl: 0x2: GL_INVALID_OPERATION in glBindFramebuffer(non-gen name)
```


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20240629
KDE Plasma Version: 6.1.1
KDE Frameworks Version: 6.3.0
Qt Version: 6.7.2
Kernel Version: 6.9.7-1-default (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 580 Series
Comment 1 postix 2024-07-01 15:44:23 UTC
There's no coredump written or so.
Comment 2 postix 2024-07-01 15:51:59 UTC
I believe this issue has been triggered due to an empty config file I created: 

```
touch $HOME/.config/pipewire/pipewire.conf
```

followed by a reboot. Are the errors in the log and the freezing somehow expected in this case?
Works as intended or something which can and should be fixed?