Ticket #694 (new defect)

Opened 2 years ago

Last modified 2 years ago

Zeroconf sink visible in avahi-discover, but not pavucontrol

Reported by: inducer Owned by: lennart
Milestone: Component: daemon
Keywords: Cc: inform@…

Description

Under circumstances that I can't quite nail down yet, a sink that one of my computers is publishing disappears from pavucontrol, even though it's still visible using avahi-discover. (Suspending and resuming the 'source'-side computer seems to do it, as does killing pulseaudio sink-side.)

Using Debian's 0.9.19-1 and pavucontrol 0.9.9.

Attachments

pa-vvv.txt (93.7 kB) - added by inducer 2 years ago.

Change History

Changed 2 years ago by coling

This is likely due to the module being unloaded for some reason after it's added. If you attach the full output of pulseaudio -vvv from the client side, that would maybe point at the issue.

Are both sides using 0.9.19?

Changed 2 years ago by inducer

Yes, both sides are on 0.9.19.

This here seems relevant:

D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[fe80::250:8dff:feb2:d87f]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right'
I: module-device-restore.c: Restoring volume for sink tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.
I: sink.c: Created sink 1 "tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: sink.c:     device.description = "alsa_output.pci-0000_00_1b.0.analog-stereo on [fe80::250:8dff:feb2:d87f]:4713"
I: sink.c:     tunnel.remote.server = "[fe80::250:8dff:feb2:d87f]:4713"
I: sink.c:     tunnel.remote.sink = "alsa_output.pci-0000_00_1b.0.analog-stereo"
I: sink.c:     device.icon_name = "audio-card"
D: core-subscribe.c: Dropped redundant event due to change event.
I: source.c: Created source 2 "tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right
I: source.c:     device.description = "Monitor of alsa_output.pci-0000_00_1b.0.analog-stereo on [fe80::250:8dff:feb2:d87f]:4713"
I: source.c:     device.class = "monitor"
I: source.c:     device.icon_name = "audio-input-microphone"
D: module-tunnel.c: Thread starting up
D: module-suspend-on-idle.c: Sink tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo becomes idle, timeout in 5 seconds.
I: module.c: Loaded "module-tunnel-sink" (index: #19; argument: "server=[fe80::250:8dff:feb2:d87f]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right").
D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[192.168.114.2]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right'
D: sink.c: Failed to register name tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.
E: module-tunnel.c: Failed to create sink.
E: module.c: Failed to load  module "module-tunnel-sink" (argument: "server=[192.168.114.2]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right"): initialization failed.
D: socket-client.c: connect(): Das Argument ist ungültig (22)
D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[fe80::250:8dff:feb2:d87f]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right'
D: sink.c: Failed to register name tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.
E: module-tunnel.c: Failed to create sink.

Full output attached below.

Changed 2 years ago by inducer

Changed 2 years ago by coling

Seems IPv6 is interfering with IPv4 in some capacity...

While it's not a "solution" per se, you should consider disabling IPv6 in avahi and seeing if that helps...

Somewhere in /etc/avahi/avahi-daemon.conf:

[server]
use-ipv4=yes
use-ipv6=no

Changed 2 years ago by inducer

That doesn't seem to help. Now all the v6 addresses turn into v4 ones, but otherwise I think the error is still the same.

D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[fe80::250:8dff:feb2:d87f]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right'                                                                                                                               
I: module-device-restore.c: Restoring volume for sink tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.                            
I: sink.c: Created sink 1 "tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right                                                                                                                            
I: sink.c:     device.description = "alsa_output.pci-0000_00_1b.0.analog-stereo on [fe80::250:8dff:feb2:d87f]:4713"                            
I: sink.c:     tunnel.remote.server = "[fe80::250:8dff:feb2:d87f]:4713"                                                                        
I: sink.c:     tunnel.remote.sink = "alsa_output.pci-0000_00_1b.0.analog-stereo"                                                               
I: sink.c:     device.icon_name = "audio-card"                                                                                                 
I: source.c: Created source 2 "tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" with sample spec s16le 2ch 44100Hz and channel map front-left,front-right                                                                                                                
I: source.c:     device.description = "Monitor of alsa_output.pci-0000_00_1b.0.analog-stereo on [fe80::250:8dff:feb2:d87f]:4713"               
I: source.c:     device.class = "monitor"                                                                                                      
I: source.c:     device.icon_name = "audio-input-microphone"                                                                                   
D: module-tunnel.c: Thread starting up                                                                                                         
D: module-suspend-on-idle.c: Sink tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo becomes idle, timeout in 5 seconds.             
I: module.c: Loaded "module-tunnel-sink" (index: #19; argument: "server=[fe80::250:8dff:feb2:d87f]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right").                                                                                                                                      
D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[192.168.114.2]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right'                                                                                                                                          
D: sink.c: Failed to register name tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.                                               
E: module-tunnel.c: Failed to create sink.                                                                                                     
E: module.c: Failed to load  module "module-tunnel-sink" (argument: "server=[192.168.114.2]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right"): initialization failed.                                                                                                                      
D: socket-client.c: connect(): Das Argument ist ungültig (22)                                                                                  
D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[fe80::250:8dff:feb2:d87f]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right'                                                                                                                               
D: sink.c: Failed to register name tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.                                               
E: module-tunnel.c: Failed to create sink.                                                                                                     
E: module.c: Failed to load  module "module-tunnel-sink" (argument: "server=[fe80::250:8dff:feb2:d87f]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right"): initialization failed.                                                                                                           
D: module-zeroconf-discover.c: Loading module-tunnel-sink with arguments 'server=[192.168.114.2]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right'                                                                                                                                          
D: sink.c: Failed to register name tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo.                                               
E: module-tunnel.c: Failed to create sink.                                                                                                     
E: module.c: Failed to load  module "module-tunnel-sink" (argument: "server=[192.168.114.2]:4713 sink=alsa_output.pci-0000_00_1b.0.analog-stereo format=s16le channels=2 rate=44100 sink_name=tunnel.tuck.local.alsa_output.pci-0000_00_1b.0.analog-stereo channel_map=front-left,front-right"): initialization failed.

Changed 2 years ago by coling

That log snippet still shows both ipv6 and ipv4 addresses being discovered.. did you restart the avahi daemon?

The namereg failures are just a product of the same "name" being tried twice. The second time it will fail.

Changed 2 years ago by inducer

I did a better job of disabling IPv6, and the issue hasn't reoccurred since.

Changed 2 years ago by coling

Cool, glad it's working for you. I'm not sure if this is a problem in PA itself or of it's some product of an incomplete IPv6 stack. I'll let Lennart suss that one out and take appropriate action on this ticket :)

Note: See TracTickets for help on using tickets.