Bug 473177

Summary: Re-plugging USB headphones creates duplicate output devices in tray applet
Product: [Plasma] plasma-pa Reporter: pete <hayyash>
Component: appletAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED DUPLICATE    
Severity: normal CC: haagch.christoph, hayyash, isma.af, me, nowrep
Priority: NOR    
Version: 5.27.7   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Image of extra output devices
another screenshot

Description pete 2023-08-08 21:39:14 UTC
Created attachment 160844 [details]
Image of extra output devices

SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

STEPS TO REPRODUCE
1. Plug in USB headphones.
2. Unplug headphones.
3. Plug them in again.

OBSERVED RESULT
Plugging in USB headphones creates a new, matching USB output device in the applet. When the headphones are unplugged, the output device remains and a new one is created when the headphones are plugged in again - filling the menu as shown in the attached image. This happens in the settings menu as well, but appears to reset when closed while the tray applet does not.

EXPECTED RESULT
The output device in the tray should either disappear when unplugged.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Christoph Haag 2023-08-09 13:41:36 UTC
Created attachment 160863 [details]
another screenshot

Switching between two different sessions of different users seems to be affected too. On every switch + switch back a new set of duplicate devices is added. Volume control only works after switching to the newly added device, see screenshot where the audio volume meter of the old duplicate is inactive. Radio buttons are buggy too and select two or more devices.
Comment 2 Christoph Haag 2023-08-09 14:31:08 UTC
Is this maybe duplicate of this one https://bugs.kde.org/show_bug.cgi?id=473093?
Comment 3 pete 2023-08-09 15:43:40 UTC
(In reply to Christoph Haag from comment #2)
> Is this maybe duplicate of this one
> https://bugs.kde.org/show_bug.cgi?id=473093?

It does appear to be the same issue, yes. I did try finding duplicates before submitting but I never saw that one.
Comment 4 Ismael Asensio 2023-08-09 17:47:03 UTC

*** This bug has been marked as a duplicate of bug 473093 ***