[pulseaudio-tickets] [Bug 89672] PulseAudio crashes when remote device is unpaired during A2DP streaming
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Mar 19 06:46:40 PDT 2015
https://bugs.freedesktop.org/show_bug.cgi?id=89672
--- Comment #3 from Rakesh M K <rakesh.mk at samsung.com> ---
In addition to the issue explained by Mr. Sagar, please find the root cause for
the issue.
//When remote headset is unpaired or disconnected, blueZ will call
"ClearConfiguration" Dbus method. Which will update the transport state to
disconnected.
16:19:35.027+0900 375 375 I PULSEAUDIO: [pulseaudio] bluez5-util.c: dbus:
path=/MediaEndpoint/A2DPSource, interface=org.bluez.MediaEndpoint1,
member=ClearConfiguration
16:19:35.027+0900 375 375 I PULSEAUDIO: [pulseaudio] bluez5-util.c:
Clearing transport /org/bluez/hci0/dev_00_18_09_24_68_25/fd0 profile a2dp_sink
//Due to which the STOP thread will be handled.
transport_state_changed_cb() -> pa_card_set_profile() -> set_profile_cb() ->
stop_thread().
//When Stop thread handling is in progress, rendering thread will post the
"BLUETOOTH_MESSAGE_IO_THREAD_FAILED" due to audio packet pa_write() fail.
thread_func() -> a2dp_process_render() -> goto fail; -> pa_asyncmsgq_post(with
IO thread fail).
16:19:35.032+0900 375 620 E PULSEAUDIO: [bluetooth] module-bluez5-device.c:
Failed to write data to socket: Broken pipe
16:19:35.032+0900 375 620 I PULSEAUDIO: [bluetooth] module-bluez5-device.c:
IO thread failed
//Since processing of message is done inside the stop_thread() which internally
calls the Stop_thread() one more time.
stop_thread() -> pa_thread_mq_done() -> pa_asyncmsgq_flush() ->
pa_asyncmsgq_dispatch() -> device_process_msg() for
BLUETOOTH_MESSAGE_IO_THREAD_FAILED -> pa_card_set_profile() -> set_profile_cb()
-> stop_thread().
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/pulseaudio-bugs/attachments/20150319/13d4de6d/attachment-0001.html>
More information about the pulseaudio-bugs
mailing list