Pulsaudio crashes once BT microphone is connected

Bug #1987523 reported by Ante Karamatić
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Committed
Low
Unassigned
Jammy
Fix Released
Low
Sebastien Bacher

Bug Description

* Impact
When I connect my BT headset with microphone and change profile to HFP, Pulsaudio crashes, sometimes even crashing Gnome itself.

* Test case
- Connect a bluetooth headset to the computer
- Try to change the profile to HFP from the desktop settings or the pulseaudio cli

-> the profile should get correctly selected, the service shouldn't crash

* Regression potential

The changes are in the functions handling mSBC packets which handle bluetooth HFP codecs, so any regression would concern bluetooth devices using that profile.

-------------------------------
When I connect my BT headset with microphone and change profile to HFP, Pulsaudio crashes, sometimes even crashing Gnome itself. Syslog reports:

Aug 24 13:44:20 p14s kernel: [21412.562760] input: Bowers & Wilkins PX (AVRCP) as /devices/virtual/input/input37
Aug 24 13:44:21 p14s pulseaudio[50808]: Battery Level: 80%
Aug 24 13:44:21 p14s pulseaudio[50808]: Dock Status: undocked
Aug 24 13:44:21 p14s bluetoothd[1070]: sdp_extract_attr: Unknown data descriptor : 0x1 terminating
Aug 24 13:44:23 p14s rtkit-daemon[1330]: Supervising 7 threads of 3 processes of 1 users.
Aug 24 13:44:23 p14s rtkit-daemon[1330]: Successfully made thread 51716 of process 50808 owned by '1000' RT at priority 5.
Aug 24 13:44:23 p14s rtkit-daemon[1330]: Supervising 8 threads of 3 processes of 1 users.
Aug 24 13:44:23 p14s gsd-media-keys[50921]: Unable to get default sink
Aug 24 13:44:23 p14s gsd-media-keys[50921]: Unable to get default source
Aug 24 13:44:23 p14s mattermost-desktop.desktop[51425]: [51425:0824/134423.604313:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!
Aug 24 13:44:23 p14s pulseaudio[50808]: Assertion 'remaining == 0' failed at ../src/modules/bluetooth/bt-codec-msbc.c:287, function decode_buffer(). Aborting.
Aug 24 13:44:24 p14s systemd[19059]: Starting Notification regarding a crash report...
Aug 24 13:44:24 p14s update-notifier-crash[51723]: /usr/bin/whoopsie
Aug 24 13:44:24 p14s systemd[1]: Started crash report submission.
Aug 24 13:44:24 p14s whoopsie[51726]: [13:44:24] Using lock path: /var/lock/whoopsie/lock
Aug 24 13:44:24 p14s systemd[1]: whoopsie.service: Deactivated successfully.
Aug 24 13:44:24 p14s update-notifier-crash[51725]: gnome-shell
Aug 24 13:44:24 p14s update-notifier-crash[51725]: apport-gtk

I've identified the upstream fix for this:

https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/commit/9916f0eace6ab1825af74a5f9b166918a06ce50e

I've built packages with the fix and can confirm that it does solve the problem. Packages are available at:

https://launchpad.net/~ivoks/+archive/ubuntu/pulse

Ante Karamatić (ivoks)
description: updated
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Changed in pulseaudio (Ubuntu):
assignee: nobody → Jorge Merlino (jorge-merlino)
Revision history for this message
Jorge Merlino (jorge-merlino) wrote :

This big is fixed in kinetic

Changed in pulseaudio (Ubuntu):
milestone: none → jammy-updates
milestone: jammy-updates → none
Changed in pulseaudio (Ubuntu Jammy):
assignee: nobody → Jorge Merlino (jorge-merlino)
Changed in pulseaudio (Ubuntu):
status: Confirmed → Fix Committed
importance: Undecided → Low
Changed in pulseaudio (Ubuntu Jammy):
importance: Undecided → Low
description: updated
Changed in pulseaudio (Ubuntu Jammy):
status: New → Fix Committed
Changed in pulseaudio (Ubuntu):
assignee: Jorge Merlino (jorge-merlino) → nobody
Changed in pulseaudio (Ubuntu Jammy):
assignee: Jorge Merlino (jorge-merlino) → Sebastien Bacher (seb128)
Revision history for this message
Sebastien Bacher (seb128) wrote :

I've uploaded a SRU now

Revision history for this message
Timo Aaltonen (tjaalton) wrote : Please test proposed package

Hello Ante, or anyone else affected,

Accepted pulseaudio into jammy-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/pulseaudio/1:15.99.1+dfsg1-1ubuntu2 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-jammy to verification-done-jammy. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-jammy. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

tags: added: verification-needed verification-needed-jammy
Revision history for this message
Ante Karamatić (ivoks) wrote (last edit ):

Sorry for the delay. I confirm that the package from -proposed solves the issue on Jammy.

tags: added: verification-done verification-done-jammy
removed: verification-needed verification-needed-jammy
Revision history for this message
Chris Halse Rogers (raof) wrote : Update Released

The verification of the Stable Release Update for pulseaudio has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:15.99.1+dfsg1-1ubuntu2

---------------
pulseaudio (1:15.99.1+dfsg1-1ubuntu2) jammy; urgency=medium

  * debian/patches/git_sbc_limit.patch, debian/patches/git_sbc_frame.patch:
    - cherrypick !695 from the upstream stable branch to fix disconnect
      and segfault issues with some bluetooth devices (lp: #1971632)
  * debian/patches/git_sbc_decode.patch:
    - cherrypick a fix for the service segfaulting sometime after switching
      to HFP profile (lp: #1987523)

 -- Sebastien Bacher <email address hidden> Wed, 07 Sep 2022 16:09:58 +0200

Changed in pulseaudio (Ubuntu Jammy):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.