<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Native protocol usage results in "Client sent non-aligned memblock" messages from server"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91606">91606</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Native protocol usage results in "Client sent non-aligned memblock" messages from server
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>clients
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>bgamari@gmail.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>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].


[1] <a href="https://gist.github.com/bgamari/845b10900c79a5e81bce">https://gist.github.com/bgamari/845b10900c79a5e81bce</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>