#378: libcanberra does not play event sounds with pulseaudio >0.9.11 -----------------------------+---------------------------------------------- Reporter: thorsten | Owner: lennart Type: defect | Status: new Priority: normal | Milestone: Component: module-native-* | Severity: normal Keywords: | -----------------------------+---------------------------------------------- libcanberra-0.9 does not play event sounds with pulseaudio-0.9.12 and today's git head. It works fine with pulseaudio-0.9.11 though.
canberra-gtk-play --id=... waits forever without playing a sound. Pulseaudio accepts the connection, but then both processes block on poll system calls. {{{ $ pulseaudio -vvv I: caps.c: Dropping root priviliges. D: main.c: Started as real root: no, suid root: yes I: main.c: setrlimit(RLIMIT_NICE, (31, 31)) failed: Operation not permitted I: main.c: setrlimit(RLIMIT_RTPRIO, (9, 9)) failed: Operation not permitted W: main.c: High-priority scheduling enabled in configuration but not allowed by policy. W: core-util.c: setpriority(): Permission denied D: main.c: Can realtime: no, can high-priority: no I: main.c: This is PulseAudio 0.9.12 D: main.c: Compilation host: i686-pc-linux-gnu D: main.c: Compilation CFLAGS: -pipe -march=pentium-m -O2 -UNDEBUG -Wall -W -Wextra -pedantic -pipe -Wno-long-long -Wconversion -Wundef -Wformat -Wpacked -Wformat-security -Wmissing-include-dirs -Wformat-nonliteral -Wold-style-definition -Wdeclaration-after-statement -Wfloat-equal -Wmissing-declarations -Wmissing-prototypes -Wstrict-prototypes -Wredundant-decls -Wmissing-noreturn -Wshadow -Wendif-labels -Wpointer- arith -Wcast-align -Wwrite-strings -Wno-unused-parameter -ffast-math D: main.c: Running on host: Linux i686 2.6.26.2 #1 PREEMPT Sun Aug 17 20:23:51 CEST 2008 I: main.c: Page size is 4096 bytes D: main.c: Compiled with Valgrind support: yes D: main.c: Optimized build: yes I: main.c: Machine ID is 7f2d74bb957e6aa5701706a747d0966f. I: main.c: Using runtime directory /home/thorsten/.pulse/7f2d74bb957e6aa5701706a747d0966f:runtime. I: main.c: Using state directory /home/thorsten/.pulse. I: main.c: Running in system mode: no I: main.c: Fresh high-resolution timers available! Bon appetit! D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules /module-hal-detect.so': success I: module-hal-detect.c: Trying capability alsa D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/computer_alsa_timer D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_24c5_sound_card_0_alsa_playback_4 D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_24c5_sound_card_0_alsa_capture_3 D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_24c5_sound_card_0_alsa_capture_2 D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_24c5_sound_card_0_alsa_capture_1 D: module-hal-detect.c: Loading module-alsa-sink with arguments 'device_id=0 sink_name=alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0 tsched=1' D: alsa-util.c: Trying front:0... D: alsa-util.c: Maximum hw buffer size is 371 ms I: module-alsa-sink.c: Successfully opened device front:0. I: module-alsa-sink.c: Successfully enabled mmap() mode. I: module-alsa-sink.c: Successfully enabled timer-based scheduling mode. I: (alsa-lib)control.c: Invalid CTL front:0 I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory I: alsa-util.c: Successfully attached to mixer 'hw:0' I: alsa-util.c: Using mixer control "Master". I: sink.c: Created sink 0 "alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right I: source.c: Created source 0 "alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right I: module-alsa-sink.c: Using 1 fragments of size 65536 bytes, buffer time is 371.52ms I: module-alsa-sink.c: Time scheduling watermark is 20.00ms D: module-alsa-sink.c: hwbuf_unused_frames=0 D: module-alsa-sink.c: setting avail_min=62005 I: module-alsa-sink.c: Volume ranges from 0 to 63. I: module-alsa-sink.c: Volume ranges from -94.50 dB to 0.00 dB. I: alsa-util.c: All 2 channels can be mapped to mixer channels. I: module-alsa-sink.c: Using hardware volume control. Hardware dB scale supported. D: alsa-util.c: snd_pcm_dump(): D: alsa-util.c: Hardware PCM card 0 'Intel 82801DB-ICH4' device 0 subdevice 0 D: alsa-util.c: Its setup is: D: alsa-util.c: stream : PLAYBACK D: alsa-util.c: access : MMAP_INTERLEAVED D: alsa-util.c: format : S16_LE D: alsa-util.c: subformat : STD D: alsa-util.c: channels : 2 D: alsa-util.c: rate : 44100 D: alsa-util.c: exact rate : 44100 (44100/1) D: alsa-util.c: msbits : 16 D: alsa-util.c: buffer_size : 16384 D: alsa-util.c: period_size : 16384 D: alsa-util.c: period_time : 371519 D: alsa-util.c: tstamp_mode : NONE D: alsa-util.c: period_step : 1 D: alsa-util.c: avail_min : 62005 D: alsa-util.c: period_event : 0 D: alsa-util.c: start_threshold : -1 D: alsa-util.c: stop_threshold : -1 D: alsa-util.c: silence_threshold: 0 D: alsa-util.c: silence_size : 0 D: alsa-util.c: boundary : 1073741824 D: module-alsa-sink.c: Thread starting up D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+29 D: module-alsa-sink.c: Read hardware volume: 0: 100% 1: 100% I: module-alsa-sink.c: Starting playback. I: module.c: Loaded "module-alsa-sink" (index: #0; argument: "device_id=0 sink_name=alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0 tsched=1"). D: module-hal-detect.c: Loading module-alsa-source with arguments 'device_id=0 source_name=alsa_input.pci_8086_24c5_sound_card_0_alsa_capture_0 tsched=1' D: alsa-util.c: Trying front:0... D: alsa-util.c: Maximum hw buffer size is 371 ms I: module-alsa-source.c: Successfully opened device front:0. I: module-alsa-source.c: Successfully enabled mmap() mode. I: module-alsa-source.c: Successfully enabled timer-based scheduling mode. I: (alsa-lib)control.c: Invalid CTL front:0 I: alsa-util.c: Unable to attach to mixer front:0: No such file or directory I: alsa-util.c: Successfully attached to mixer 'hw:0' I: alsa-util.c: Using mixer control "Capture". I: source.c: Created source 1 "alsa_input.pci_8086_24c5_sound_card_0_alsa_capture_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right I: module-alsa-source.c: Using 1 fragments of size 65536 bytes, buffer time is 371.52ms I: module-alsa-source.c: Time scheduling watermark is 20.00ms D: module-alsa-source.c: hwbuf_unused_frames=0 D: module-alsa-source.c: setting avail_min=62005 I: module-alsa-source.c: Volume ranges from 0 to 15. I: module-alsa-source.c: Volume ranges from 0.00 dB to 22.50 dB. I: alsa-util.c: All 2 channels can be mapped to mixer channels. I: module-alsa-source.c: Using hardware volume control. Hardware dB scale supported. D: alsa-util.c: snd_pcm_dump(): D: alsa-util.c: Hardware PCM card 0 'Intel 82801DB-ICH4' device 0 subdevice 0 D: alsa-util.c: Its setup is: D: alsa-util.c: stream : CAPTURE D: alsa-util.c: access : MMAP_INTERLEAVED D: alsa-util.c: format : S16_LE D: alsa-util.c: subformat : STD D: alsa-util.c: channels : 2 D: alsa-util.c: rate : 44100 D: alsa-util.c: exact rate : 44100 (44100/1) D: alsa-util.c: msbits : 16 D: alsa-util.c: buffer_size : 16384 D: alsa-util.c: period_size : 16384 D: alsa-util.c: period_time : 371519 D: alsa-util.c: tstamp_mode : NONE D: alsa-util.c: period_step : 1 D: alsa-util.c: avail_min : 62005 D: alsa-util.c: period_event : 0 D: alsa-util.c: start_threshold : -1 D: alsa-util.c: stop_threshold : -1 D: alsa-util.c: silence_threshold: 0 D: alsa-util.c: silence_size : 0 D: alsa-util.c: boundary : 1073741824 D: module-alsa-source.c: Thread starting up D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+28 D: module-alsa-source.c: Read hardware volume: 0: 100% 1: 100% I: module.c: Loaded "module-alsa-source" (index: #1; argument: "device_id=0 source_name=alsa_input.pci_8086_24c5_sound_card_0_alsa_capture_0 tsched=1"). D: module-hal-detect.c: Not loaded device /org/freedesktop/Hal/devices/pci_8086_24c5_sound_card_0_alsa_control__1 I: module-hal-detect.c: Loaded 2 modules. I: module.c: Loaded "module-hal-detect" (index: #2; argument: ""). D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules /module-esound-protocol-unix.so': success I: module.c: Loaded "module-esound-protocol-unix" (index: #3; argument: ""). I: module.c: Loaded "module-native-protocol-unix" (index: #4; argument: ""). I: module-stream-restore.c: Sucessfully opened database file '/home/thorsten/.pulse/7f2d74bb957e6aa5701706a747d0966f:stream- volumes.i686-pc-linux-gnu.gdbm'. I: module.c: Loaded "module-stream-restore" (index: #5; argument: ""). I: module-device-restore.c: Sucessfully opened database file '/home/thorsten/.pulse/7f2d74bb957e6aa5701706a747d0966f:device- volumes.i686-pc-linux-gnu.gdbm'. I: module.c: Loaded "module-device-restore" (index: #6; argument: ""). I: module-default-device-restore.c: Restored default sink 'alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0'. D: core-subscribe.c: Dropped redundant event due to change event. I: module-default-device-restore.c: Restored default source 'alsa_input.pci_8086_24c5_sound_card_0_alsa_capture_0'. I: module.c: Loaded "module-default-device-restore" (index: #7; argument: ""). I: module.c: Loaded "module-rescue-streams" (index: #8; argument: ""). I: module.c: Loaded "module-always-sink" (index: #9; argument: ""). D: module-suspend-on-idle.c: Sink alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0 becomes idle. D: module-suspend-on-idle.c: Source alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0.monitor becomes idle. D: module-suspend-on-idle.c: Source alsa_input.pci_8086_24c5_sound_card_0_alsa_capture_0 becomes idle. I: module.c: Loaded "module-suspend-on-idle" (index: #10; argument: ""). I: module.c: Loaded "module-position-event-sounds" (index: #11; argument: ""). D: cli-command.c: Checking for existance of '/usr/lib/pulse-0.9/modules /module-gconf.so': success I: module.c: Loaded "module-gconf" (index: #12; argument: ""). I: main.c: Daemon startup complete. D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired I: module-suspend-on-idle.c: Source alsa_input.pci_8086_24c5_sound_card_0_alsa_capture_0 idle for too long, suspending ... I: module-alsa-source.c: Device suspended... I: module-suspend-on-idle.c: Source alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0.monitor idle for too long, suspending ... I: module-suspend-on-idle.c: Sink alsa_output.pci_8086_24c5_sound_card_0_alsa_playback_0 idle for too long, suspending ... I: module-alsa-sink.c: Device suspended... ====> starting canberra-gtk-play I: client.c: Created 0 "Native client (UNIX socket client)" D: protocol-native.c: Protocol version: remote 14, local 14 I: protocol-native.c: Got credentials: uid=1000 gid=1000 success=1 D: protocol-native.c: SHM possible: yes D: protocol-native.c: Negotiated SHM: yes }}} The problem seems to be related to commit c35d1bbec3d6dab9acd9c6f57688fb05cbd3dcc9: rework validity checking of sink/source/... names. After reverting this commit pulseaudio-0.9.12 plays event sounds. -- Ticket URL: <http://www.pulseaudio.org/ticket/378> PulseAudio <http://pulseaudio.org/> The PulseAudio Sound Server _______________________________________________ pulseaudio-tickets mailing list pulseaudio-tickets@mail.0pointer.de https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets