Bug 452378 - Sound devices disconnect and reconnect when the applet is switched to the Applications tab
Summary: Sound devices disconnect and reconnect when the applet is switched to the App...
Status: RESOLVED UPSTREAM
Alias: None
Product: plasma-pa
Classification: Plasma
Component: applet (show other bugs)
Version: 5.24.4
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-07 18:30 UTC by H.G.Blob
Modified: 2022-08-01 19:33 UTC (History)
5 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description H.G.Blob 2022-04-07 18:30:44 UTC
SUMMARY
When an application is recording sound, when selecting the application tab Plasma starts thinking all the audio was disconnected and connected in a loop. When I switch back to the Devices tab everything is back to normal. See this, quite poor, video to better understand what is going on: https://gfycat.com/accurateimprobabledutchshepherddog

STEPS TO REPRODUCE
1.  Start an application that records audio
2.  Open the Sound panel and switch to the Applications Tab

OBSERVED RESULT
Plasma is showing as if all the audio devices have disconnected and then after a few seconds connected back up again.  This happens in a loop until you switch back to the Devices tab or close the applet. Then everything is back to normal.

EXPECTED RESULT
Just be able to see the list of applications that are playing and recording sound.

This started happening around plasma 5.23~5.24 I think, I haven't seen this behavior before.

For completeness I'm using pipewire and Wayland. There is no problem with the sound while this is happening, it just looks like a display issue.
Comment 1 Alex Barrero 2022-07-25 12:38:44 UTC
I am suffering this bug for a while, if I recall correctly even before Plasma 5.25. For me, when I open the devices tab, if I am using the microphone, I see the panel flicker between and empty device with the "There are not apps playing or recording sound" message, and the current apps doing it.

The loop is so fast than I can hardly see the apps for tenths of a second.

I am using the X11 session in my main computer but I think that this happens also in the wayland session in my work laptop
Comment 2 postix 2022-07-31 13:06:14 UTC
I could not reproduce it with Audacity 3.1.3-beta-20220626 on openSUSE TW using Plasma 5.25.3 Wayland.
Comment 3 H.G.Blob 2022-08-01 06:55:26 UTC
(In reply to postix from comment #2)
> I could not reproduce it with Audacity 3.1.3-beta-20220626 on openSUSE TW
> using Plasma 5.25.3 Wayland.

I think this was a issue in pipewire, I have upgraded to a newer version from the PPA and it went away. In any case didn't seem related to KDE. So as far as I'm concerned we can close this.
Comment 4 Alex Barrero 2022-08-01 09:19:13 UTC
Indeed update to latest version of pipewire from PPA solved the issue.

Thanks for the info!
Comment 5 Nate Graham 2022-08-01 19:33:13 UTC
Seems like this was  (unsurprisingly) caused by a bug deeper in the audio stack.