I can reproduce it on my lenovo X240 with 16.04.1 and pulseaudio
1:8.0-0ubuntu3 + "Plantronics BackBeat Go 2",

There are brief description of my understanding by adding debug message
there[1].

The correct path to set channels looks should be setup_transport() -> 
transport_config()
However, it would get a return (-1) in setup_transport() -> 
transport_acquire(u, true);
But that (-1) return value not be handled and transport_config(u); is the 
expected next step.

But somehow the flow get into 
profile_new_connection() -> rfcomm_io_callback() -> 
transport_speaker_gain_changed_cb() ->pa_cvolume_set() -> get channels 0 
assertion
instead of expected flow:
setup_transport() -> transport_config()

So, might worth to check why these message was printed:
(  19.680|   0.000) I: [pulseaudio] backend-native.c: doing connect
(  19.755|   0.075) E: [pulseaudio] backend-native.c: connect(): Function not 
implemented

What looks need to check but I do check yet:
1. remove patches after 
0600-droid-sync-with-upstream-for-Android-5-support-and-b.patch to check if it 
works.
2. remove patches after 
0501-bluetooth-bluez5-ofono-add-support-for-HFP-gateway-r.patch to check if it 
works.
3. based 1, or 2. to check if it could get transport_config() without error.

this is my debug message of pulseaudio:
http://paste.ubuntu.com/23266287/

and I followed the way[2] to execute pulseaudio manually by :
$/usr/bin/pulseaudio -vvvv --log-level=debug 
--log-target=newfile:/tmp/pulseverbose.log --log-time=1

[1] 
https://code.launchpad.net/~alextu/pulseaudio/+git/lp1574324_bt_headset_crashed/+ref/master
[2] https://wiki.ubuntu.com/PulseAudio/Log

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1574324

Title:
  pulseaudio crashes when connecting to bluetooth headphones (due to
  ubuntu changes?)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/1574324/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to