PDA

View Full Version : [ubuntu] PulseAudio dies and sinks/sources won't reconnect



clconway
October 3rd, 2008, 06:54 PM
Recently, my PulseAudio daemon has taken to periodically dying. I haven't nailed down exactly what's happening, but it started happening after I began using a pair of USB headphones and seems to have something to do with plugging/unplugging the headphones and suspend resume. It would be great if I could fix this problem (though I'm not especially hopeful), but that's not why I'm posting. (I've posted the output of grep pulseaudio /var/log/messages below, in case it holds any clues.)

I've figured out how to restart the daemon, by running "pulseaudio -D". But it seems that sources and sinks have a problem connecting with the new instance of the daemon: I have to restart Firefox and Amarok to get any sound out of them; right now, I can't get any sound out of my built-in speakers or speaker output (I expect a reboot will fix that).

Restarting apps and rebooting the system when PulseAudio craps out is a big pain. Is there any way to get sinks and sources to attach themselves to the new daemon without going through all that?


Oct 2 16:13:32 wagstaff kernel: [ 3652.907114] pulseaudio[12018]: segfault at b56cb0e0 eip b56cb0e0 esp bfeed86c error 4
Oct 2 16:28:52 wagstaff pulseaudio[15158]: alsa-util.c: Device hw:1 doesn't support 2 channels, changed to 1.
Oct 2 16:28:52 wagstaff pulseaudio[15158]: alsa-util.c: Cannot find fallback mixer control "PCM".
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 4 sink(s) available.
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: * index: 0
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <alsa_output.usb_device_ffffffff_ffffffff_noserial_ sound_card_0_alsa_playback_0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-alsa-sink.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags: LATENCY HARDWARE
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: RUNNING
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <97959 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor source: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <2>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <2>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <ALSA PCM on front:1 (USB Audio) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-alsa-sink.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags: HW_VOLUME_CTRL LATENCY HARDWARE
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 0% 1: 0%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor source: <2>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <2>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <ALSA PCM on front:0 (STAC92xx Analog) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 2
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <rtp>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-null-sink.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags: LATENCY
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor source: <4>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16be 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <11>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <RTP Multicast Sink>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 3
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <combined>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-combine.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags: LATENCY
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor source: <5>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <13>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <Simultaneous output to ALSA PCM on front:1 (USB Audio) via DMA, ALSA PCM on front:0 (STAC92xx Analog) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 6 source(s) available.
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: * index: 0
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <alsa_input.usb_device_ffffffff_ffffffff_noserial_a lsa_capture_0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-alsa-source.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags: HW_VOLUME_CTRL LATENCY HARDWARE
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 0%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 1ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <mono>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <ALSA PCM on hw:1 (USB Audio) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <alsa_output.usb_device_ffffffff_ffffffff_noserial_ sound_card_0_alsa_playback_0.monitor>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-alsa-sink.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags:
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor_of: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <Monitor Source of ALSA PCM on front:1 (USB Audio) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 2
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <alsa_output.pci_8086_27d8_sound_card_0_alsa_playba ck_0.monitor>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-alsa-sink.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags:
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor_of: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <2>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <Monitor Source of ALSA PCM on front:0 (STAC92xx Analog) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 3
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <alsa_input.pci_8086_27d8_sound_card_0_alsa_capture _0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-alsa-source.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags: HW_VOLUME_CTRL LATENCY HARDWARE
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 53% 1: 53%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <3>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <ALSA PCM on front:0 (STAC92xx Analog) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 4
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <rtp.monitor>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-null-sink.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags:
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: RUNNING
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16be 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor_of: <2>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <11>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <Monitor Source of RTP Multicast Sink>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 5
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <combined.monitor>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/module-combine.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags:
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: SUSPENDED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilinked by: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imonitor_of: <3>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <13>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idescription: <Monitor Source of Simultaneous output to ALSA PCM on front:1 (USB Audio) via DMA, ALSA PCM on front:0 (STAC92xx Analog) via DMA>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 2 sink input(s) available.
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 2
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <RTP Stream (PulseAudio RTP Stream on localhost)>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/rtp/module-rtp-recv.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags:
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: DRAINED
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isink: <0> 'alsa_output.usb_device_ffffffff_ffffffff_noserial _sound_card_0_alsa_playback_0'
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16be 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iresample method: copy
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <14>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 5
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <Audio Stream>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <pulsecore/protocol-native.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags:
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: RUNNING
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isink: <0> 'alsa_output.usb_device_ffffffff_ffffffff_noserial _sound_card_0_alsa_playback_0'
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 80% 1: 80%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imute: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <490997 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16le 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iresample method: auto
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Imodule: <6>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iclient: <4> 'amarokapp'
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 1 source outputs(s) available.
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 0
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: 'RTP Monitor Stream'
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <modules/rtp/module-rtp-send.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iflags:
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Istate: RUNNING
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isource: <4> 'rtp.monitor'
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilatency: <0 usec>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <s16be 2ch 44100Hz>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <front-left,front-right>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iresample method: auto
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iowner module: <12>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 2 client(s) logged in.
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 0
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <PulseAudio Volume Control>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <pulsecore/protocol-native.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iowner module: <6>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 4
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <amarokapp>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Idriver: <pulsecore/protocol-native.c>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iowner module: <6>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 17 module(s) loaded.
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 0
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-alsa-source>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <device_id=1 source_name=alsa_input.usb_device_ffffffff_fffffff f_noserial_alsa_capture_0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-alsa-sink>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <device_id=1 sink_name=alsa_output.usb_device_ffffffff_ffffffff _noserial_sound_card_0_alsa_playback_0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 2
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-alsa-sink>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <device_id=0 sink_name=alsa_output.pci_8086_27d8_sound_card_0_a lsa_playback_0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 3
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-alsa-source>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <device_id=0 source_name=alsa_input.pci_8086_27d8_sound_card_0_ alsa_capture_0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 4
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-hal-detect>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 5
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-esound-protocol-unix>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 6
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-native-protocol-unix>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 7
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-volume-restore>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 8
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-default-device-restore>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 9
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-rescue-streams>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 10
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-suspend-on-idle>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 11
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-null-sink>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink">
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 12
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-rtp-send>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <source=rtp.monitor loop=1>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 13
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-combine>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 14
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-rtp-recv>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 15
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-gconf>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: index: 16
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iname: <module-x11-publish>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iargument: <>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iused: -1
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iauto unload: no
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 1 cache entries available.
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: name: <pulse-hotplug>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iindex: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Isample spec: <n/a>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ichannel map: <n/a>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilength: <0>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Iduration: <0.0s>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ivolume: <0: 100% 1: 100% 2: 100% 3: 100% 4: 100% 5: 100% 6: 100% 7: 100%>
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ilazy: yes
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: ^Ifilename: /usr/share/sounds/startup3.wav
Oct 2 16:30:42 wagstaff pulseaudio[15158]: main.c: 0 autoload entries available.
Oct 2 19:10:34 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 2 23:06:41 wagstaff pulseaudio[15158]: module-alsa-sink.c: Got POLLERR from ALSA
Oct 2 23:06:41 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 2 23:06:41 wagstaff pulseaudio[15158]: module-alsa-sink.c: Could not recover from POLLERR|POLLNVAL|POLLHUP and XRUN: No such device
Oct 2 23:06:46 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 2 23:07:01 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 2 23:07:06 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 00:04:32 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 09:08:42 wagstaff pulseaudio[15158]: module-alsa-sink.c: Got POLLERR from ALSA
Oct 3 09:08:42 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 09:08:47 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 09:09:27 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 09:09:32 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 09:36:28 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 10:31:53 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 12:55:35 wagstaff pulseaudio[15158]: module-alsa-sink.c: Got POLLERR from ALSA
Oct 3 12:55:35 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 12:55:40 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 12:57:20 wagstaff pulseaudio[15158]: module-alsa-sink.c: Got POLLERR from ALSA
Oct 3 12:57:20 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 12:57:25 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 12:57:30 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 12:57:35 wagstaff pulseaudio[15158]: sap.c: sendmsg() failed: Invalid argument
Oct 3 13:01:49 wagstaff pulseaudio[15158]: alsa-util.c: Cannot find fallback mixer control "PCM".
Oct 3 13:01:49 wagstaff pulseaudio[15158]: alsa-util.c: Device hw:1 doesn't support 2 channels, changed to 1.
Oct 3 13:03:35 wagstaff pulseaudio[24764]: alsa-util.c: Device hw:1 doesn't support 2 channels, changed to 1.
Oct 3 13:03:35 wagstaff pulseaudio[24764]: alsa-util.c: Cannot find fallback mixer control "PCM".

markbuntu
October 3rd, 2008, 11:27 PM
There was a high priority bug ticket at Pulse Audio about this problem but it is no longer there which means it is resolved somehow. I have a usb headset and have not experienced this problem, but then again I do not unplug it very often.

Have you tried redirecting or closing the stream to the usb Output Device in the PA Volume Control before you unplug the headphones or does this happen when nothing is playing?

clconway
October 4th, 2008, 02:29 PM
Well, I thought my built-in speakers would come back after a reboot, but they didn't. Neither the speakers nor the headphone jack is working, so it's not just that the speaker blew out. I don't know if there could be a physical explanation, a driver problem, or if this is PulseAudio's fault.

markbuntu
October 5th, 2008, 12:56 AM
Check the default device in the PA Volume Control, and that the apps are using PA.

clconway
October 5th, 2008, 02:33 PM
I shouldn't be muddying the waters with multiple unrelated problems. It turns out the speakers died because the PCM volume got set to 0 in alsamixer (I have no idea how). I turned that up and now the speakers are working again. But still:

1. PulseAudio periodically dies (seems to be related to the USB headset).
2. When it dies, sound won't work in some applications until I restart them. Is there a way to signal the applications such that they will connect to the new instance of the sound server?

markbuntu
October 5th, 2008, 07:10 PM
Actually, PA should redirect the stream automatically when an output device becomes no longer available. What it cannot do it direct them to a newly available device, like your usb headphones. You must do this manually in the PA Volume Control.

clconway
October 6th, 2008, 01:43 AM
It's not the device that becomes unavailable. It's PulseAudio. The daemon crashes. I restart it. Apps that were connected to the daemon before the crash don't connect to the new instance.

markbuntu
October 6th, 2008, 08:30 PM
What applications are you running when this happens?
Do you see the playback stream flickering in pavucontrol, The PA Volume Control?

clconway
October 7th, 2008, 05:54 PM
Firefox, for instance. After the crash, Flash videos do not show up as playback streams. They also stall out, as if they are trying and failing to connect to the server.

markbuntu
October 7th, 2008, 08:27 PM
Do you have libslashsupport installed, it is specifically needed to prevent flash9 from crashing pulseaudio and possibly freezing up your system. If you have flash 10, you need to remove libflashsupport.

Well, after the crash, pulseaudio is not running so your applications will have trouble running if they are looking for it. But, it is important to know what is happening in pulseaudio while these applications are running so if you can, please tell us what is going on in the pavucontrol Playback screen and in the (paman) PA Manager/Devices section where the playback streams are numbered. If the numbers climb while the application is running, then it is not running correctly and when the numbers reach about 1100 or so, pulseaudio will crash. See if this is happening and let us know.

clconway
October 7th, 2008, 09:24 PM
I've got:

flashplugin-nonfree
10.0.1.218+10.0.0.525ubuntu1~hardy1+really9.0.124. 0ubuntu2
libflashsupport
1.9-0ubuntu2~hardy1+really0ubuntu1
firefox
3.0.3+build1+nobinonly-0ubuntu0.8.04.1

In the situation I described above (the PulseAudio daemon died and was
restarted), I see no activity whatsover in pavucontrol/Playback or
paman/Devices. The former is empty and the latter shows no new Sinks
or Sources.

Since I have Flash 10, I just removed libflashsupport and restarted
Firefox. Now sound doesn't work at all and I get the behavior your
describing: quickly fluttering entries in pavucontrol/Playback and
paman/Devices, with rapidly increasing numbers in Devices.

Re-installing libflashsupport gets me back to the original behavior
(sound works in general, but not after a PulseAudio crash).

LordKelvan
January 24th, 2009, 04:30 AM
I am having the same problem, and it is very annoying to have to restart Firefox (I basically have to do this once a day). Does anyone know how to fix this?