I have no idea what's going on now: pulseaudio doesn't actually hang and keeps playing audio, but pavucontrol fails to connect.
# pavucontrol shm_open() failed: No such file or directory shm_open() failed: No such file or directory shm_open() failed: No such file or directory shm_open() failed: No such file or directory shm_open() failed: No such file or directory shm_open() failed: No such file or directory shm_open() failed: No such file or directory strace shows: readlink("/proc/self/exe", "/usr/bin/pavucontrol", 99) = 20 open("/etc/machine-id", O_RDONLY|O_CLOEXEC) = 19 fcntl(19, F_GETFD) = 0x1 (flags FD_CLOEXEC) fstat(19, {st_mode=S_IFREG|0444, st_size=33, ...}) = 0 read(19, "ca5fda75d3e5458682e02384d9bb0707"..., 4096) = 33 close(19) = 0 sendto(10, "\0\0\0027\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20, MSG_NOSIGNAL, NULL, 0) = 20 sendto(10, "L\0\0\0\tL\0\0\0\1Ptapplication.name\0L\0\0"..., 567, MSG_NOSIGNAL, NULL, 0) = 567 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=4, revents=POLLIN}, {fd=10, revents=POLLIN}]) read(4, "\2\0\0\0\0\0\0\0", 16) = 8 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=4, revents=POLLIN}, {fd=10, revents=POLLIN}]) read(4, "\2\0\0\0\0\0\0\0", 16) = 8 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\n\377\377\377\377\0\0\0\0\0\0\0\0\0\0\0\0", 20}], msg_controllen=56, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=13230, uid=1000, gid=1000}}, {cmsg_len=24, cmsg_level=SOL_SOCKET, cmsg_type=SCM_RIGHTS, [19, 20]}], msg_flags=0}, 0) = 20 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=4, revents=POLLIN}, {fd=10, revents=POLLIN}]) read(4, "\2\0\0\0\0\0\0\0", 16) = 8 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"L\0\0\0eL\0\237;p", 10}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=13230, uid=1000, gid=1000}}], msg_flags=0}, 0) = 10 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=4, revents=POLLIN}, {fd=10, revents=POLLIN}]) read(4, "\2\0\0\0\0\0\0\0", 16) = 8 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\0\20\0\0\0\0\0\0\0\0\0\0\0\0\200\200\0\0", 20}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=13230, uid=1000, gid=1000}}], msg_flags=0}, 0) = 20 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}, {fd=10, events=POLLIN}], 4, 0) = 2 ([{fd=4, revents=POLLIN}, {fd=10, revents=POLLIN}]) read(4, "\2\0\0\0\0\0\0\0", 16) = 8 write(4, "\1\0\0\0\0\0\0\0", 8) = 8 recvmsg(10, {msg_name(0)=NULL, msg_iov(1)=[{"\0\0\234\2001\240G\201\0\1\0@\0\0\377\300", 16}], msg_controllen=32, [{cmsg_len=28, cmsg_level=SOL_SOCKET, cmsg_type=SCM_CREDENTIALS, {pid=13230, uid=1000, gid=1000}}], msg_flags=0}, 0) = 16 open("/dev/shm/pulse-shm-832587649", O_RDWR|O_NOFOLLOW|O_CLOEXEC) = -1 ENOENT (No such file or directory) write(2, "shm_open() failed: No such file "..., 45shm_open() failed: No such file or directory ) = 45 close(10) = 0 munmap(0x7f725bfff000, 67112960) = 0 unlink("/dev/shm/pulse-shm-1704355089") = 0 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 0) = 1 ([{fd=4, revents=POLLIN}]) read(4, "\1\0\0\0\0\0\0\0", 16) = 8 poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{"\22\0\16\0\3\0`\2\4\2\0\0\6\0\0\0 \4\6\0\10\0\0\0\7\0\0\0\0\0\0\0"..., 320}, {NULL, 0}, {"", 0}], 3) = 320 recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\34\0\222\2\3\0`\2\4\2\0\0\304\232R\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 0) = 0 (Timeout) read(4, 0x7ffe2e837070, 16) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(3, 0x7ffe2e836d90, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 0) = 0 (Timeout) recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 15) = 0 (Timeout) poll([{fd=3, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=3, revents=POLLOUT}]) writev(3, [{"\22\0\16\0\3\0`\2\4\2\0\0\6\0\0\0 \4\6\0\10\0\0\0\7\0\0\0\0\0\0\0"..., 56}, {NULL, 0}, {"", 0}], 3) = 56 recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 970) = 1 ([{fd=3, revents=POLLIN}]) recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"\34\0\235\2\3\0`\2\4\2\0\0\324\232R\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32 recvmsg(3, 0x7ffe2e836ee0, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(3, 0x7ffe2e836d90, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 970) = 1 ([{fd=3, revents=POLLIN}]) recvmsg(3, {msg_name(0)=NULL, msg_iov(1)=[{"U\2\235\2\231\234R\0\3\4\4\0\0\0\0\0\0\0\0\4\4\4\4\4\0\0\3\37%\2\0\0", 4096}], msg_controllen=0, msg_flags=0}, 0) = 32 recvmsg(3, 0x7ffe2e836ee0, 0) = -1 EAGAIN (Resource temporarily unavailable) recvmsg(3, 0x7ffe2e836ec0, 0) = -1 EAGAIN (Resource temporarily unavailable) poll([{fd=3, events=POLLIN}, {fd=4, events=POLLIN}, {fd=5, events=POLLIN}], 3, 518^Cstrace: Process 14800 detached <detached ...> pulseverbose.log shows this while that happens: ( 326.703| 0.998) I: [pulseaudio] client.c: Created 179 "Native client (UNIX socket client)" ( 326.703| 0.000) D: [pulseaudio] protocol-native.c: Protocol version: remote 30, local 30 ( 326.703| 0.000) I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1 ( 326.703| 0.000) D: [pulseaudio] protocol-native.c: SHM possible: yes ( 326.703| 0.000) D: [pulseaudio] protocol-native.c: Negotiated SHM: yes ( 326.703| 0.000) D: [pulseaudio] srbchannel.c: SHM block is 65472 bytes, ringbuffer capacity is 2 * 32712 bytes ( 326.703| 0.000) D: [pulseaudio] protocol-native.c: Enabling srbchannel... ( 326.704| 0.001) D: [pulseaudio] module-augment-properties.c: Looking for .desktop file for pavucontrol ( 326.704| 0.000) I: [pulseaudio] client.c: Freed 179 "PulseAudio Volume Control" ( 326.704| 0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event. ( 326.704| 0.000) I: [pulseaudio] protocol-native.c: Connection died. ( 327.704| 1.000) I: [pulseaudio] client.c: Created 180 "Native client (UNIX socket client)" ( 327.704| 0.000) D: [pulseaudio] protocol-native.c: Protocol version: remote 30, local 30 ( 327.704| 0.000) I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1 ( 327.704| 0.000) D: [pulseaudio] protocol-native.c: SHM possible: yes ( 327.704| 0.000) D: [pulseaudio] protocol-native.c: Negotiated SHM: yes ( 327.704| 0.000) D: [pulseaudio] srbchannel.c: SHM block is 65472 bytes, ringbuffer capacity is 2 * 32712 bytes ( 327.704| 0.000) D: [pulseaudio] protocol-native.c: Enabling srbchannel... ( 327.705| 0.000) D: [pulseaudio] module-augment-properties.c: Looking for .desktop file for pavucontrol ( 327.705| 0.000) I: [pulseaudio] client.c: Freed 180 "PulseAudio Volume Control" ( 327.705| 0.000) D: [pulseaudio] core-subscribe.c: Dropped redundant event due to remove event. ( 327.705| 0.000) I: [pulseaudio] protocol-native.c: Connection died. ( 328.703| 0.998) I: [pulseaudio] client.c: Created 181 "Native client (UNIX socket client)" ( 328.704| 0.000) D: [pulseaudio] protocol-native.c: Protocol version: remote 30, local 30 ( 328.704| 0.000) I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1 ( 328.704| 0.000) D: [pulseaudio] protocol-native.c: SHM possible: yes ( 328.704| 0.000) D: [pulseaudio] protocol-native.c: Negotiated SHM: yes ( 328.704| 0.000) D: [pulseaudio] srbchannel.c: SHM block is 65472 bytes, ringbuffer capacity is 2 * 32712 bytes ( 328.704| 0.000) D: [pulseaudio] protocol-native.c: Enabling srbchannel... ( 328.704| 0.000) D: [pulseaudio] module-augment-properties.c: Looking for .desktop file for pavucontrol ( 328.704| 0.000) I: [pulseaudio] client.c: Freed 181 "PulseAudio Volume Control" ( 328.704| 0.000) I: [pulseaudio] protocol-native.c: Connection died. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to pulseaudio in Ubuntu. https://bugs.launchpad.net/bugs/1572493 Title: pulseaudio 8.0 server frequently hangs Status in pulseaudio package in Ubuntu: New Bug description: After upgrading from Ubuntu 15.10 to 16.04 (pulseaudio 6 -> 8), I notice that my audio output stops working every few hours. When this happens, if I run pavucontrol, it seems to wait forever trying to connect to pulseaudio. Killing pulseaudio and starting it again fixes the problem for a little while. I don't think anything fancy is needed to cause a hang; usually, I'm just using Chrome. This never happened with pulseaudio 6 over hundreds of hours of use. I am using the default pulseaudio config files on an HP EliteBook 8460p, which has this audio sink: 1 sink(s) available. * index: 0 name: <alsa_output.pci-0000_00_1b.0.analog-stereo> driver: <module-alsa-card.c> flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY state: IDLE suspend cause: priority: 9959 volume: front-left: 61870 / 94% / -1.50 dB, front-right: 61870 / 94% / -1.50 dB balance 0.00 base volume: 65536 / 100% / 0.00 dB volume steps: 65537 muted: no current latency: 38.86 ms max request: 6 KiB max rewind: 64 KiB monitor source: 0 sample spec: s16le 2ch 44100Hz channel map: front-left,front-right Stereo used by: 0 linked by: 1 configured latency: 40.00 ms; range is 0.50 .. 371.52 ms card: 1 <alsa_card.pci-0000_00_1b.0> module: 7 properties: alsa.resolution_bits = "16" device.api = "alsa" device.class = "sound" alsa.class = "generic" alsa.subclass = "generic-mix" alsa.name = "92HD81B1X5 Analog" alsa.id = "92HD81B1X5 Analog" alsa.subdevice = "0" alsa.subdevice_name = "subdevice #0" alsa.device = "0" alsa.card = "0" alsa.card_name = "HDA Intel PCH" alsa.long_card_name = "HDA Intel PCH at 0xd4520000 irq 40" alsa.driver_name = "snd_hda_intel" device.bus_path = "pci-0000:00:1b.0" sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card0" device.bus = "pci" device.vendor.id = "8086" device.vendor.name = "Intel Corporation" device.product.id = "1c20" device.product.name = "6 Series/C200 Series Chipset Family High Definition Audio Controller" device.form_factor = "internal" device.string = "front:0" device.buffering.buffer_size = "65536" device.buffering.fragment_size = "32768" device.access_mode = "mmap+timer" device.profile.name = "analog-stereo" device.profile.description = "Analog Stereo" device.description = "Built-in Audio Analog Stereo" alsa.mixer_name = "IDT 92HD81B1X5" alsa.components = "HDA:111d7605,103c3588,00100105 HDA:11c11040,103c3066,00100200" module-udev-detect.discovered = "1" device.icon_name = "audio-card-pci" ports: analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no) properties: analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown) properties: device.icon_name = "audio-speakers" analog-output-headphones: Headphones (priority 9000, latency offset 0 usec, available: no) properties: device.icon_name = "audio-headphones" active port: <analog-output-speaker> # dpkg -l | grep pulse ii libpulse-mainloop-glib0:amd64 1:8.0-0ubuntu3 amd64 PulseAudio client libraries (glib support) ii libpulse0:amd64 1:8.0-0ubuntu3 amd64 PulseAudio client libraries ii libpulse0:i386 1:8.0-0ubuntu3 i386 PulseAudio client libraries ii libpulsedsp:amd64 1:8.0-0ubuntu3 amd64 PulseAudio OSS pre-load library ii pulseaudio 1:8.0-0ubuntu3 amd64 PulseAudio sound server ii pulseaudio-utils 1:8.0-0ubuntu3 amd64 Command line tools for the PulseAudio sound server # uname -a Linux laptop 4.4.0-21-generic #37-Ubuntu SMP Mon Apr 18 18:33:37 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux # lsb_release -rd Description: Ubuntu 16.04 LTS Release: 16.04 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1572493/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp