Bug 451995 - Audio device test broken
Summary: Audio device test broken
Status: RESOLVED DOWNSTREAM
Alias: None
Product: plasma-pa
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-28 13:43 UTC by dezifit
Modified: 2022-06-10 14:42 UTC (History)
4 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 dezifit 2022-03-28 13:43:27 UTC
SUMMARY
***
Audio device test doesn't create a noticeable sound at all
***

STEPS TO REPRODUCE
1.  Open audio settings
2.  Press "Test" on output device
3.  Select select channel to test

OBSERVED RESULT
No test sound at all, pavucontrol shows no output stream

EXPECTED RESULT
Any audible test sound

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.2
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.16_1 (64-bit)
pulseaudio: 15.0_3

ADDITIONAL INFORMATION
System has several audio devices (internal and usb), all of them are configured in pulseaudio and working  in applications  (aplay, mpv, firefox, kaffeine, ...).
Comment 1 Nate Graham 2022-03-28 21:55:38 UTC
Works for me with current git master.

If you run `kcmshell5 kcm_pulseaudio` in a terminal window and try to tets audio, do you see any errors printed to the terminal window when you click the buttons?
Comment 2 Ismael Asensio 2022-03-31 18:19:19 UTC
Git commit 5c8f12699bdffd2e2b6f56adcf4bbba2fd46367d by Ismael Asensio.
Committed on 30/03/2022 at 22:12.
Pushed by iasensio into branch 'master'.

Speaker Test: Show playback errors in the UI

Errors produced when trying to play a sound were being ignored.
Show them in the spaker test UI, so it can help users to find
their cause.

The error strings are provided directly by libcanberra, so i18n
will be probably missing for them.

M  +78   -63   src/kcm/package/contents/ui/main.qml
M  +22   -12   src/speakertest.cpp
M  +2    -1    src/speakertest.h

https://invent.kde.org/plasma/plasma-pa/commit/5c8f12699bdffd2e2b6f56adcf4bbba2fd46367d
Comment 3 dezifit 2022-03-31 23:13:03 UTC
(In reply to Nate Graham from comment #1)
> Works for me with current git master.
> 
> If you run `kcmshell5 kcm_pulseaudio` in a terminal window and try to tets
> audio, do you see any errors printed to the terminal window when you click
> the buttons?

Visible error message (before even test button is pressed):
kf.coreaddons: "Could not load plugin from kcm_pulseaudio: The shared library was not found."

No additional information about which plugin/library, no info in session-log.
/usr/lib/qt5/plugins/kcms/kcm_pulseaudio.so and all dependencies (as shown by ldd) installed. Distro is Void-Linux.
Comment 4 dezifit 2022-04-01 00:04:50 UTC
If started with strace it seems that the subdirectory `kcms` is not in the search path, so `kcm_pulseaudio` itself isn't found, but the audio test UI is displayed. With a symbolic link to `/usr/lib/qt5/plugins` kcmshell5 loads the plugin without error message in the terminal. Unfortunately still no test sound. Strange. Distro specific issue?
Comment 5 Nate Graham 2022-04-03 17:06:01 UTC
Yes, this seems like a packaging/installation issue indeed. I'd encourage you to contact your distro packagers about it.
Comment 6 Bug Janitor Service 2022-05-17 11:39:43 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-pa/-/merge_requests/116