Native protocol usage results in "Client sent non-aligned memblock" messages from server
Submitted by Ben Gamari
Assigned to pul..@..op.org
Description
I am attempting to stream audio with pulseaudio's native protocol from a laptop running Debian testing (running pulseaudio 6.0) and a desktop also running Debian testing (running pulseaudio 6.0).
I have configured the server to expose its devices for anonymous use with,
load-module module-native-protocol-tcp auth-anonymous=1
load-module module-zeroconf-publish
in /etc/pulse/default.pa. As the desktop is headless, I ssh in to the machine and start pulseaudio manually so I can observe its output. paplay'ing an audio file on the server produces the expected audio output.
As expected, the server's analog sink is shown in padevchooser on the laptop. However, if I select the device to be the laptop's default sink and play audio with rhythmbox, the server begins spewing messages of the form,
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 7140, length 1052, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 2856, length 4284, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 7140, length 196, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 0, length 4284, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 4284, length 3908, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 2856, length 1428, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 4284, length 3908, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 0, length 4284, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 4284, length 2580, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 0, length 4364, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 4364, length 1348, frame size: 8
W: [pulseaudio] protocol-native.c: Client sent non-aligned memblock: index 0, length 1428, frame size: 8
and no audio output is produced.
Intriguingly, paplay'ing the same file from the laptop simply hangs with no audio output. stracing the process shows that is hung on a poll syscall [1].