Ticket #352 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

protocol error, kicking client (dies in system-wide mode upon tunnel connection from network client)

Reported by: towolf Owned by: lennart
Milestone: 0.9.13 Component: daemon
Keywords: Cc: towolf+bugspam@…

Description

I have installed 0.9.12 from a prelinary testing repository (ja, Ubuntu) and I can observe that the server exits immediately after startup at the point when an avahi-enabled client PA connects (same version, same packages).

I will paste both outputs from server and client below

Attachments

server.log (13.1 kB) - added by towolf 3 years ago.
client.log (14.4 kB) - added by towolf 3 years ago.

Change History

Changed 3 years ago by towolf

Changed 3 years ago by towolf

Server, started with:

sudo pulseaudio --system=yes -vvvvvvvvv --daemonize=false

(long version attached)

I: main.c: Daemon startup complete.
D: module-hal-detect.c: dbus: interface=org.freedesktop.DBus, path=/org/freedesktop/DBus, member=NameAcquired
I: module-zeroconf-publish.c: Successfully established service pulse@towolfbox: ESS Allegro PCI - Allegro.
I: module-zeroconf-publish.c: Successfully established service pulse@towolfbox: ESS Allegro PCI - Allegro.
I: socket-server.c: TCP connection accepted by tcpwrap.
I: client.c: Created 0 "Native client (TCP/IP client from 10.0.0.9:51078)"
I: module-zeroconf-publish.c: Successfully established main service.
I: socket-server.c: TCP connection accepted by tcpwrap.
I: client.c: Created 1 "Native client (TCP/IP client from 10.0.0.9:51079)"
D: protocol-native.c: Protocol version: remote 14, local 14
D: protocol-native.c: SHM possible: no
D: protocol-native.c: Negotiated SHM: no
D: protocol-native.c: Protocol version: remote 14, local 14
D: protocol-native.c: SHM possible: no
D: protocol-native.c: Negotiated SHM: no
E: protocol-native.c: protocol error, kicking client
I: client.c: Freed 0 "pulseaudio"
E: protocol-native.c: protocol error, kicking client
I: client.c: Freed 1 "pulseaudio"
I: core.c: We are idle, quitting...
I: main.c: Daemon shutdown initiated.

Changed 3 years ago by towolf

Changed 3 years ago by towolf

Client, started with:

 pulseaudio -vv

long version attached

D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[10.0.0.10]:4713 sink=alsa_output.pci_125d_1988_alsa_playback_0 format=s16le channels=2 rate=44100 sink_name=tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0 channel_map=front-left,front-right'
I: module-device-restore.c: Restoring volume for sink tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0.
I: module-device-restore.c: Restoring mute state for sink tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0.
I: sink.c: Created sink 1 "tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: module-device-restore.c: Restoring volume for source tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0.monitor.
I: module-device-restore.c: Restoring mute state for source tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0.monitor.
I: source.c: Created source 2 "tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
D: module-tunnel.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+27
D: module-suspend-on-idle.c: Source tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0.monitor becomes idle.
D: module-suspend-on-idle.c: Sink tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0 becomes idle.
I: module.c: Loaded "module-tunnel-sink" (index: #15; argument: "server=[10.0.0.10]:4713 sink=alsa_output.pci_125d_1988_alsa_playback_0 format=s16le channels=2 rate=44100 sink_name=tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0 channel_map=front-left,front-right").
D: module-tunnel.c: Connection established, authenticating ...
D: module-zeroconf-discover.c: Loading module-tunnel-source with arguments 'server=[10.0.0.10]:4713 source=alsa_input.pci_125d_1988_alsa_capture_0 format=s16le channels=2 rate=44100 source_name=tunnel.towolfbox.local.alsa_input.pci_125d_1988_alsa_capture_0 channel_map=front-left,front-right'
I: module-device-restore.c: Restoring volume for source tunnel.towolfbox.local.alsa_input.pci_125d_1988_alsa_capture_0.
I: module-device-restore.c: Restoring mute state for source tunnel.towolfbox.local.alsa_input.pci_125d_1988_alsa_capture_0.
I: source.c: Created source 3 "tunnel.towolfbox.local.alsa_input.pci_125d_1988_alsa_capture_0" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
D: module-tunnel.c: Thread starting up
D: rtpoll.c: Acquired POSIX realtime signal SIGRTMIN+26
D: module-suspend-on-idle.c: Source tunnel.towolfbox.local.alsa_input.pci_125d_1988_alsa_capture_0 becomes idle.
I: module.c: Loaded "module-tunnel-source" (index: #16; argument: "server=[10.0.0.10]:4713 source=alsa_input.pci_125d_1988_alsa_capture_0 format=s16le channels=2 rate=44100 source_name=tunnel.towolfbox.local.alsa_input.pci_125d_1988_alsa_capture_0 channel_map=front-left,front-right").
D: module-tunnel.c: Connection established, authenticating ...
D: module-tunnel.c: Protocol version: remote 14, local 14
D: module-tunnel.c: Connection authenticated, creating stream ...
D: module-tunnel.c: Protocol version: remote 14, local 14
D: module-tunnel.c: Connection authenticated, creating stream ...
W: module-tunnel.c: Stream died.
W: module-tunnel.c: Stream died.
I: module.c: Unloading "module-tunnel-sink" (index: #15).
D: module-rescue-streams.c: No sink inputs to move away.
D: module-rescue-streams.c: No source outputs to move away.
D: module-tunnel.c: Thread shutting down
I: sink.c: Freeing sink 1 "tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0"
I: source.c: Freeing source 2 "tunnel.towolfbox.local.alsa_output.pci_125d_1988_alsa_playback_0.monitor"
I: module.c: Unloaded "module-tunnel-sink" (index: #15).
I: module.c: Unloading "module-tunnel-source" (index: #16).
D: module-rescue-streams.c: No source outputs to move away.
D: module-tunnel.c: Thread shutting down
I: source.c: Freeing source 3 "tunnel.towolfbox.local.alsa_input.pci_125d_1988_alsa_capture_0"
I: module.c: Unloaded "module-tunnel-source" (index: #16).

Changed 3 years ago by towolf

  • cc towolf+bugspam@… added

Changed 3 years ago by lennart

  • milestone set to 0.9.13

These are actually two issues.

For system-wide mode, make sure to set exit-idle-time=0 in daemon.conf, since the default is now to exit when we are idle (which doesn't make sense in sytem mode however).

The other issue is a real bug.

Changed 3 years ago by lennart

  • status changed from new to closed
  • resolution set to fixed

OK, the protocol error is now fixed in current git.

Note: See TracTickets for help on using tickets.