[pulseaudio-tickets] [Bug 99425] Dbus fallback sink not updating and blocking further action

2017-02-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99425

--- Comment #8 from getzze  ---
I also noticed that with the patched pulseaudio, the name of the sink is not
changed when I disconnect the headset, it remains "Built-in Audio Analog
Stereo", with two ports, "Line Out" and "Headphones". Then, after some more
random manipulations, the PA server crashes.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
pulseaudio-bugs mailing list
pulseaudio-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs


[pulseaudio-tickets] [Bug 99425] Dbus fallback sink not updating and blocking further action

2017-02-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99425

--- Comment #7 from getzze  ---
I cannot edit the last message, but before that I had:

Feb 13 19:02:55 server pulseaudio[628]: E: [pulseaudio] iface-core.c: Assertion
'(device_iface = pa_hashmap_get(c->sinks_by_index,
PA_UINT32_TO_PTR(c->fallback_sink->index)))' failed at
modules/dbus/iface-core.c:1710, function default_sink_changed_cb(). Aborting.
Feb 13 19:03:05 server systemd[723]: pulseaudio.service: Main process exited,
code=dumped, status=6/ABRT
Feb 13 19:03:05 server systemd[723]: pulseaudio.service: Unit entered failed
state.
Feb 13 19:03:05 server systemd[723]: pulseaudio.service: Failed with result
'core-dump'.
Feb 13 19:03:06 server systemd[723]: pulseaudio.service: Service hold-off time
over, scheduling restart.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
pulseaudio-bugs mailing list
pulseaudio-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs


[pulseaudio-tickets] [Bug 99425] Dbus fallback sink not updating and blocking further action

2017-02-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99425

--- Comment #6 from getzze  ---
And the pulseaudio server crashes...


Feb 13 18:49:37 server systemd-coredump[27281]: Process 17122 (pulseaudio) of
user 1000 dumped core.

Stack trace of thread 17122:
#0  0x7f467c63504f raise
(libc.so.6)
#1  0x7f467c63647a abort
(libc.so.6)
#2  0x7f4652db9a2a n/a
(module-dbus-protocol.so)
#3  0x7f467d921c0c
pa_hook_fire (libpulsecore-10.0.so)
#4  0x7f467d920d65
pa_core_update_default_sink (libpulsecore-10.0.so)
#5  0x7f467d943972
pa_sink_put (libpulsecore-10.0.so)
#6  0x7f4673ccf227
pa_alsa_sink_new (libalsa-util.so)
#7  0x7f4673ef1314 n/a
(module-alsa-card.so)
#8  0x7f467d91daa6
pa_card_set_profile (libpulsecore-10.0.so)
#9  0x7f46742fe8a1 n/a
(module-switch-on-port-available.so)
#10 0x7f46742feb11 n/a
(module-switch-on-port-available.so)
#11 0x7f467d921c0c
pa_hook_fire (libpulsecore-10.0.so)
#12 0x7f4673ef1ca3 n/a
(module-alsa-card.so)
#13 0x7f4673cb71f8 n/a
(libalsa-util.so)
#14 0x7f46739df363 n/a
(libasound.so.2)
#15 0x7f46739d502d
snd_hctl_handle_events (libasound.so.2)
#16 0x7f46739e0491
snd_mixer_handle_events (libasound.so.2)
#17 0x7f4673cbc807 n/a
(libalsa-util.so)
#18 0x7f467d6c9a7c
pa_mainloop_dispatch (libpulse.so.0)
#19 0x7f467d6c9e7c
pa_mainloop_iterate (libpulse.so.0)
#20 0x7f467d6c9f20
pa_mainloop_run (libpulse.so.0)
#21 0x0040715a main
(pulseaudio)
#22 0x7f467c622291
__libc_start_main (libc.so.6)
#23 0x00407c7a _start
(pulseaudio)

Stack trace of thread 17200:
#0  0x7f467c6e1551 ppoll
(libc.so.6)
#1  0x7f467d92cf38
pa_rtpoll_run (libpulsecore-10.0.so)
#2  0x7f465659cd1f n/a
(module-null-sink.so)
#3  0x7f467d4764b8 n/a
(libpulsecommon-10.0.so)
#4  0x7f467cbab454
start_thread (libpthread.so.0)
#5  0x7f467c6ea7df __clone
(libc.so.6)

Stack trace of thread 27278:
#0  0x7f467c6e1551 ppoll
(libc.so.6)
#1  0x7f467d92cf38
pa_rtpoll_run (libpulsecore-10.0.so)
#2  0x7f4673ccd285 n/a
(libalsa-util.so)
#3  0x7f467d4764b8 n/a
(libpulsecommon-10.0.so)
#4  0x7f467cbab454
start_thread (libpthread.so.0)
#5  0x7f467c6ea7df __clone
(libc.so.6)

Stack trace of thread 17124:
#0  0x7f467c6e1551 ppoll
(libc.so.6)
#1  0x7f467d92cf38
pa_rtpoll_run (libpulsecore-10.0.so)
#2  0x7f4673ccd15e n/a
(libalsa-util.so)
#3  0x7f467d4764b8 n/a
(libpulsecommon-10.0.so)
#4  0x7f467cbab454
start_thread (libpthread.so.0)
#5  0x7f467c6ea7df __clone
(libc.so.6)

Stack trace of thread 17125:
#0  0x7f467c6e1551 ppoll
(libc.so.6)
#1  0x7f467d92cf38
pa_rtpoll_run

[pulseaudio-tickets] [Bug 99425] Dbus fallback sink not updating and blocking further action

2017-02-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99425

--- Comment #5 from getzze  ---
I compiled pulseaudio with the patch but it is not solving the problem. Now the
pulseaudio dbus disconnects when unplugging the headset. Changing Fallback sink
in pavucontrol brings back the bus.

Error I get from Laine:

Feb 13 18:06:46 server gnome-shell[1027]: JS ERROR: Gio.IOErrorEnum: The
connection is closed
 
Device<.setActiveDevice/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:512
 
Device<._asyncDBusGetProperty/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:490
Feb 13 18:06:46 server org.gnome.Shell.desktop[1027]: read(): Connection reset
by peer
Feb 13 18:06:46 server gnome-shell[1027]: JS ERROR: Gio.IOErrorEnum: The
connection is closed
 
Device<.setActiveDevice/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:520
 
Device<._asyncDBusGetProperty/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:490
Feb 13 18:06:46 server org.gnome.Shell.desktop[1027]: No PulseAudio daemon
running, or not running as session daemon.
Feb 13 18:06:46 server gnome-shell[1027]: JS ERROR: Gio.IOErrorEnum: The
connection is closed
 
Device<._init/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:442
 
Device<._asyncDBusGetProperty/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:490
Feb 13 18:06:46 server gnome-shell[1027]: JS ERROR: Gio.IOErrorEnum: The
connection is closed
 
Device<._init/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:455
 
Device<._asyncDBusGetProperty/<@/usr/share/gnome-shell/extensions/la...@knasher.gmail.com/portMenu.js:490
Feb 13 18:06:46 server gnome-shell[1027]: JS ERROR: Gio.IOErrorEnum: The
connection is closed
 
PortMenu<._forceFallbackDevice/


The line from portMenu.js do not correspond to the vanilla Laine, I use a fork.


I also have a python script using the python-dbus module, that I wrote for
debugging. It continuously prints the answer to the signals `FallbackSink` and
`InterfaceRevision`. Typically:
>>>pulse_properties.Get('org.PulseAudio.Core1', 'FallbackSink', 
>>>reply_handler=handle_fallback_reply)
>>>pulse_properties.Get('org.PulseAudio.Core1', 'InterfaceRevision', 
>>>reply_handler=handle_fallback_reply)

When I disconnect the headset I get:
{'sender': None, 'destination': None, 'path':
dbus.ObjectPath('/org/pulseaudio/core1'), 'member': 'FallbackSinkUpdated',
'interface': 'org.PulseAudio.Core1'}
{'sender': None, 'destination': None, 'path':
dbus.ObjectPath('/org/freedesktop/DBus/Local'), 'member': 'Disconnected',
'interface': 'org.freedesktop.DBus.Local'}


Any further call to the bus do not work. And when I restart the python script
again, the bus does not exists. The error I get (only the useful traceback):


 16 else:
 17 bus = dbus.SessionBus()
---> 18 server_lookup = bus.get_object("org.PulseAudio1",
"/org/pulseaudio/server_lookup1")
 19 address = server_lookup.Get("org.PulseAudio.ServerLookup1",
"Address", dbus_interface="org.freedesktop.DBus.Properties")
 20 print('\nPulseaudio dbus address: ', address, '\n')

DBusException: org.freedesktop.DBus.Error.ServiceUnknown: The name
org.PulseAudio1 was not provided by any .service files


-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.___
pulseaudio-bugs mailing list
pulseaudio-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs


[pulseaudio-tickets] [Bug 99425] Dbus fallback sink not updating and blocking further action

2017-02-13 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99425

--- Comment #4 from getzze  ---
I could not test the patch yet.
The signal FallbackSinkUnset is emitted indeed (I modified Laine to listen to
it). The only problem is that the pulseaudio dbus becomes broken after... 
The workaround I use is to call `pacmd` to reset the default sink, so
pulseaudio dbus works again. I call:

/usr/bin/pacmd set-default-sink $(/usr/bin/pacmd list-sinks | awk '/* index:/
{print $3}')

So in `pacmd`, a new default sink is defined when I disconnect the headset. But
not in DBus. There is something wrong there also, no?

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.___
pulseaudio-bugs mailing list
pulseaudio-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/pulseaudio-bugs