Bug 485616 - Audio devices suddenly stop working.
Summary: Audio devices suddenly stop working.
Status: RESOLVED UPSTREAM
Alias: None
Product: kde
Classification: I don't know
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-16 01:53 UTC by Konstantin
Modified: 2024-07-26 18:13 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:
osobukoman: performance+


Attachments
vid (775.57 KB, video/webm)
2024-04-16 01:54 UTC, Konstantin
Details
Icons-only Task Manager Pipewire Crash (359.88 KB, video/mp4)
2024-04-16 17:09 UTC, ben
Details
log (853.32 KB, text/x-log)
2024-05-10 16:24 UTC, Konstantin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Konstantin 2024-04-16 01:53:46 UTC
Suddenly, audio devices begin to disappear and immediately appear. The devices disappear for a few seconds and appear (I recorded a video using Spectacle and because of the dynamic frame rate it is not so noticeable).

Along with this, all audio devices stop working. only a reboot helps.

It happens most often when I stream in OBS and play games. What is the reason is unclear.

The sound is set like this:
paru -S pipewire lib32-pipewire pipewire-pulse pipewire-alsa pipewire-jack wireplumber
systemctl --user enable --now pipewire pipewire-pulse wireplumber

Sound Card: Creative Sound Blaster Z

Operating System: Arch Linux 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.5-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 32 × Intel® Core™ i9-14900KF
Memory: 62.6 ГиБ of RAM
Graphics Processor: NVIDIA GeForce RTX 4080/PCIe/SSE2
Manufacturer: ASUS
Comment 1 Konstantin 2024-04-16 01:54:17 UTC
Created attachment 168574 [details]
vid
Comment 2 ben 2024-04-16 17:08:43 UTC
Also experiencing a similar problem, however I can make it occur by hovering over icons in the Icons-only task manager while OBS is accessing audio devices via Pipewire.

When using the native OBS audio capture, the audio input sources will not return after this disconnect. If using the Audio Capture (Pipewire) plugin, it will be restored after the disconnect.

Video attached.
Comment 3 ben 2024-04-16 17:09:22 UTC
Created attachment 168584 [details]
Icons-only Task Manager Pipewire Crash
Comment 4 ben 2024-04-16 17:55:18 UTC
Might be helpful to have my system info: 

Operating System: EndeavourOS 
KDE Plasma Version: 6.0.3
KDE Frameworks Version: 6.1.0
Qt Version: 6.7.0
Kernel Version: 6.8.6-2-cachyos (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7800X3D 8-Core Processor
Memory: 62.0 GiB of RAM
Graphics Processor: AMD Radeon RX 6800
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: B650 GAMING X AX
Comment 5 Konstantin 2024-04-26 23:38:58 UTC
I have found a solution to the problem. Please find the reason for this and fix it, because sooner or later everyone will have it if SDDM switches to wayland.

And so, the description.

A few years ago, I switched to GDM because it works on wayland itself and I had problems with SDDM. After the transition, audio devices began to fall off. I couldn't find the reason.

Then I went back to SDDM and started it in wayland mode.

In /etc/sddm.conf.d/10-wayland.conf we write:

[General]
DisplayServer=wayland
GreeterEnvironment=QT_WAYLAND_SHELL_INTEGRATION=layer-shell

[Wayland]
CompositorCommand=kwin_wayland --drm --no-lockscreen --no-global-shortcuts --locale 1

I had no idea that was the case.

It's been about 3 days since I returned SDDM to x11 operation mode and there have never been any problems with audio devices during these days.

Do not confuse the SDDM x11 operation mode with the x11 session. I am using SDDM in x11 operation mode, and the system is running under Wayland. The SDDM wayland operating mode and the Wayland system session are different things.

All my friends say that the operation of audio devices cannot depend on SDDM or GDM. but! There has been no audio issue for almost 3 days now.

Conclusion.

In a Wayland session, when using GDM or SDDM Wayland mode, audio problems occur, audio devices suddenly disappear and appear (described in more detail above).

But if I use SDDM in x11 mode and a Wayland system session, everything works. During the 3 days of testing, there was no problem with audio devices
Comment 6 Konstantin 2024-04-30 02:34:42 UTC
I was wrong. The solution I came up with doesn't work. I have no idea what the problem is.
Comment 7 Konstantin 2024-05-10 16:24:23 UTC
Created attachment 169364 [details]
log

I've already written wherever I can, but no one knows what the problem is. I'm attaching logs.

Help me, this problem does not allow me to live normally.