FS#71341 - [libcanberra] 0.30+2+gc0620e4-4 breaks alsa-only setup (regression)

Attached to Project: Arch Linux
Opened by Johannes (JailhouseJoe) - Wednesday, 23 June 2021, 13:19 GMT
Last edited by Jan Alexander Steffens (heftig) - Thursday, 24 June 2021, 08:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

With version 0.30+2+gc0620e4-4 canberra-gtk-play fails to play sounds on alsa-only setups (i.e. without pulseaudio).
I randomly get two different errors:

$ canberra-gtk-play -i complete-download
Failed to play sound: IO error
$ canberra-gtk-play -i complete-download
Failed to play sound: Not available

Also Thunderbird notification sounds are gone. Downgrading to 0.30+2+gc0620e4-3 solves this issue.

We discussed this in https://bbs.archlinux.org/viewtopic.php?pid=1979513
and found out that canberra does not seem to try to use an ALSA device at all if it finds a pulse module. (Also see the attachted strace output of the above command.)
Removing /usr/lib/libcanberra-0.30/libcanberra-pulse.so solves this.


The easiest solution would be to split off the libcanberra-pulse package again, but maybe someone has a better proposal.


Steps to reproduce:
Run the above command on a setup without pulseaudio.
This task depends upon

Closed by  Jan Alexander Steffens (heftig)
Thursday, 24 June 2021, 08:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  libcanberra 0.30+2+gc0620e4-5
Comment by Jan Alexander Steffens (heftig) - Wednesday, 23 June 2021, 18:47 GMT
CANBERRA_DRIVER=alsa should work, as should CANBERRA_DRIVER=multi:pulse,alsa .

I wonder if we should patch the code to use multi by default. I'd be interested to know if it works well when pulseaudio isn't available.
Comment by Johannes (JailhouseJoe) - Wednesday, 23 June 2021, 19:06 GMT
Indeed, both versions work here.

If patching this is an option, that would be great. I guess there are people out there having sound issues without even noticing that it's a canberra issue. (I first realized the missing sounds in thunderbird and could not figure out the problem. Only some time later I realized that canberra-gtk-play does not work and by downgrading found out that it also caused the problem with thunderbird.)
Comment by Jan Alexander Steffens (heftig) - Wednesday, 23 June 2021, 19:49 GMT
Please try libcanberra 0.30+2+gc0620e4-5
Comment by Johannes (JailhouseJoe) - Wednesday, 23 June 2021, 19:58 GMT
That seems to work!

Loading...