[oneiric] canberra-gtk-play --id="desktop-login" Failed to play sound: File or data not found

Bug #310199 reported by KevinM
52
This bug affects 10 people
Affects Status Importance Assigned to Milestone
libcanberra (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Using Jaunty Alpha2 kernel 2.6.28-3.2 64 bit. libcanberra0, libcanberra-gtk0, gnome-session-canberra, libcanberra-gtk-module, version 0.10-1ubuntu3 (all).
When starting Jaunty no startup sound occurs and the messages occur in syslog (also attached):
Dec 20 19:53:01 kevin-dt1b x-session-manager[5623]: WARNING: Unable to find provider 'gnome-wm' of required component 'windowmanager'
Dec 20 19:53:12 kevin-dt1b x-session-manager[5623]: WARNING: Application 'libcanberra-login-sound.desktop' failed to register before timeout
Dec 20 19:53:13 kevin-dt1b pulseaudio[5714]: module-x11-xsmp.c: X11 session manager not running.
Dec 20 19:53:13 kevin-dt1b pulseaudio[5714]: module.c: Failed to load module "module-x11-xsmp" (argument: ""): initialization failed.

Using lshw -C multimedia
WARNING: you should run this program as super-user.
  *-multimedia
       description: Multimedia audio controller
       product: CK804 AC'97 Audio Controller
       vendor: nVidia Corporation
       physical id: 4
       bus info: pci@0000:00:04.0
       version: a2
       width: 32 bits
       clock: 66MHz
       capabilities: bus_master cap_list
       configuration: driver=Intel ICH latency=0 maxlatency=5 mingnt=2 module=snd_intel8x0

Revision history for this message
KevinM (kevbert1) wrote :
Revision history for this message
Sebastian Keller (skeller) wrote :

I can confirm this.
I think it is related to canberra-gtk-play not looking for soundfiles in the correct directory:

ls -l /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
-rw-r--r-- 1 root root 104421 2008-10-10 06:22 /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
canberra-gtk-play -i desktop-login
Failed to play sound: File or data not found

ls -l /usr/share/sounds/question.wav
lrwxrwxrwx 1 root root 33 2008-11-01 13:46 /usr/share/sounds/question.wav -> ubuntu/stereo/dialog-question.wav
canberra-gtk-play -i question
#works

sudo cp /usr/share/sounds/ubuntu/stereo/desktop-login.ogg /usr/share/sounds/
canberra-gtk-play -i desktop-login
#works

strace does not even show it trying to open the according theme file or directory

Changed in libcanberra:
status: New → Confirmed
Revision history for this message
Sebastian Keller (skeller) wrote :

This has been working for quite some time now.

Changed in libcanberra (Ubuntu):
status: Confirmed → Fix Released
Revision history for this message
sterios prosiniklis (steriosprosiniklis) wrote :

Same behavior in oneiric. No login sound.
canberra-gtk-play looks for sound file in /usr/share/sounds/

oneiric@VirtualBox:~$ canberra-gtk-play --id="desktop-login"
Failed to play sound: File or data not found

oneiric@VirtualBox:~$ /usr/bin/canberra-gtk-play --file /usr/share/sounds/ubuntu/stereo/desktop-login.ogg
woks as expected...

Copying /usr/share/sounds/ubuntu/stereo/desktop-login.ogg to
/usr/share/sounds/desktop-login.ogg solves the problem

I'm not sure if this has to be filed against libcanberra or ubuntu-sounds since sound theming is disabled or not yet implemented under gnome3.

summary: - [Jaunty] libcanberra-login-sound.desktop times out
+ [oneiric] canberra-gtk-play --id="desktop-login" Failed to play sound:
+ File or data not found
Revision history for this message
philinux (philcb) wrote :

11.10 64 bit clean install.

This is still not fixed /usr/bin/canberra-gtk-play is not looking in /usr/share/sounds/ubuntu/stereo/ it is still looking in /usr/share/sounds/.

Post #4 is spot on copying the file over fixes this but this needs to corrected in the canberra-gtk-play source.

Strangely the guest account works fine.

The status of this bug cant be changed. At least by me anyway.

Revision history for this message
Michele Giacomoli (michele-giacomoli) wrote :

I have noticed this problem. I have oneiric-proposed repository enabled. With a fresh install, with the default repositories enabled (unfortunately I don't remember which are they) camberra works fine

Revision history for this message
Michele Giacomoli (michele-giacomoli) wrote :

I found the problem: Using dcoonf-editor if you go in /org/gnome/desktop/sound and set in keys "event-sounds" and "theme-name" with the same values but set as user defined, not as default value, then you run the command /usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login" from the terminal you can see the error, but if you reset this two options with the default values (i.e. the same values, but now are the Default values) running the same command the problem doesn't exists

Revision history for this message
Paul Thiong'o (thioshp) wrote :

I would like to contribute to the solution by simply adding some ideas on top of what post #4 says. See the attached html page for more details.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.