blueman-applet crashed with KeyError in card_cb(): 'bluez.path'

Bug #962469 reported by Ron Bakker
216
This bug affects 46 people
Affects Status Importance Assigned to Milestone
Blueman
New
Undecided
Unassigned
blueman (Fedora)
Won't Fix
Undecided
blueman (Ubuntu)
High
Mathieu Trudel-Lapierre
Precise
High
Mathieu Trudel-Lapierre

Bug Description

[IMPACT]
Changing pulseaudio settings (audio profiles, via the Sound applet or any other mixer application), as well as connecting headphones on cards with jack-sensing cause blueman-applet to crash. It's catching all pulseaudio events and tries to grab the bluez path even for devices that aren't bluetooth devices.

The upload applies a simple patch to check for the existence of the bluez.path property in the device properties; which is only available on bluetooth devices, prior to trying to access it, thus avoiding a crash due to an attempt to access invalid data.

[TESTCASE]
1) Connect headphones to the computer.

This requires systems with jack-sensing, but is the most obvious reproducer. Alternatively:

1) Open Sound properties
2) Switch to the Output tab.
3) Select a device and change the value for the Mode: drop-down if available, on a device other than the bluetooth headset.

[Regression Potential]
Possible regressions could include other bugs related to handling the bluetooth headset audio profile changes (from HSP/HFP to A2DP for example) surfacing due to the fact that blueman-applet no longer crashes as soon as non-bluetooth devices are changed in any way.

===

Step to reproduce:
Plug in or unplug headphones

Does it after every boot.
System runs stabel.....

ProblemType: CrashDistroRelease: Ubuntu 12.04
Package: blueman 1.23-0ubuntu1
ProcVersionSignature: Ubuntu 3.2.0-20.32-generic 3.2.12
Uname: Linux 3.2.0-20-generic x86_64
ApportVersion: 1.94.1-0ubuntu2
Architecture: amd64
CrashCounter: 1
Date: Thu Mar 22 20:04:45 2012
ExecutablePath: /usr/bin/blueman-applet
InstallationMedia: Xubuntu 12.04 "Precise Pangolin" - Alpha amd64 (20120204)
InterpreterPath: /usr/bin/python2.7
ProcCmdline: /usr/bin/python /usr/bin/blueman-applet
PythonArgs: ['/usr/bin/blueman-applet']SourcePackage: blueman
Title: blueman-applet crashed with KeyError in card_cb(): 'bluez.path'
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups: adm cdrom dip lpadmin mythtv netdev plugdev sambashare sudo www-data

Revision history for this message
Ron Bakker (r0n) wrote :
tags: removed: need-duplicate-check
Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in blueman (Ubuntu):
status: New → Confirmed
Micah Gersten (micahg)
visibility: private → public
Changed in blueman (Ubuntu):
importance: Undecided → Medium
status: Confirmed → Triaged
Micah Gersten (micahg)
description: updated
tags: added: testcase
Revision history for this message
Gastón Avila (avila-gas) wrote :

trigered on plugging in a microphone to a dell inspiron 1501.

Revision history for this message
kolleykibber (fergus-f) wrote :

Triggered on removing headphone jack from Toshiba NB520

Revision history for this message
Roger Searjeant (roger-searjeant) wrote :

Triggered on removing headphones from jack socket, on Samsung RF511.

Revision history for this message
UncleV (vkulich) wrote :

Triggered on opening Sound properties. (The system has been upgraded from 10.04).

Revision history for this message
Nelson (nelson-stevenson) wrote :

Triggered on both plugging and removing headphones from jack socket, on Sony VAIO VPCSB

Revision history for this message
Lokard (darkdadaah) wrote :

This happen to me when I switch between several users. No headphones plugged in. (on 12.10 upgraded from 11.10)

Revision history for this message
Trevor W. (pyraz) wrote :

This is happening when I connect to an external bluetooth speaker. The speaker still works fine though, which is the weird part.

Revision history for this message
Darkwarfighter (overlord) wrote :

Triggered on connecting and removing headphones from jack socket on Samsung NC10.

Revision history for this message
Guilherme Marçal (ogabiefofo) wrote :

Deu esse erro repentinamente

Revision history for this message
nicholasC (njc093) wrote :

Triggered when going to 'sound settings/Volume Control' and setting under 'Configuration', changing Digital Stereo (HDMI) Audio --> Off. Xubuntu 12.04. HP dm1z-3200.

Revision history for this message
col reilly (lupinehorror) wrote :

disabled hdmi output in sound settings. using xfce 4.10.

Revision history for this message
Sebastien Bacher (seb128) wrote :

the bug is one of the most reported one on error.ubuntu.com ... do we have a blueman maintainer there?

Changed in blueman (Ubuntu):
importance: Medium → High
Revision history for this message
col reilly (lupinehorror) wrote :

back again. changed refresh rate of my flat panel in settings. how can that have anything to do with blueman??

Revision history for this message
Jonathan Bohren (jonathan-bohren) wrote :

Triggered when connecting headphone to Lenovo X230t.

Changed in blueman (Ubuntu Precise):
importance: Undecided → High
milestone: none → ubuntu-12.04.1
status: New → Triaged
Revision history for this message
Ghislain Antony Vaillant (ghisvail) wrote :

Triggered on connecting or removing headphones on my Samsung NC10

Revision history for this message
Mathieu Trudel-Lapierre (cyphermox) wrote :

Blueman is bluetooth stuff; I'll look into the bug :)

Changed in blueman (Ubuntu):
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Changed in blueman (Ubuntu Precise):
assignee: nobody → Mathieu Trudel-Lapierre (mathieu-tl)
Changed in blueman (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package blueman - 1.23-0ubuntu3

---------------
blueman (1.23-0ubuntu3) quantal; urgency=low

  * debian/patches/02_dont_crash_on_non-bluetooth_card.patch: do not crash when
    receiving events from PulseAudio for non-bluetooth cards. (LP: #962469)
 -- Mathieu Trudel-Lapierre <email address hidden> Wed, 08 Aug 2012 13:49:37 -0400

Changed in blueman (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Ghislain Antony Vaillant (ghisvail) wrote :

Merci Mathieu

Changed in blueman (Ubuntu Precise):
status: Triaged → In Progress
description: updated
Revision history for this message
vaughan (vaughan-montgomery) wrote :

triggered when i changed resolution on Dell Studio 1737 laptop, accidentally unticked the 'use this display' for both the laptop screen & external HDMI display. resulting in not being able to view desktop on either screen as both were disabled.

Revision history for this message
Micah Gersten (micahg) wrote :

I just plugged in my headphones before and after the proposed update. Before I got an apport crash, after I did not.

Changed in blueman (Ubuntu Precise):
status: In Progress → Fix Committed
Micah Gersten (micahg)
tags: added: verification-done
Revision history for this message
Adam Conrad (adconrad) wrote : Update Released

The verification of this Stable Release Update has completed successfully and the package has now been 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 regresssions.

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

This bug was fixed in the package blueman - 1.23-0ubuntu2.1

---------------
blueman (1.23-0ubuntu2.1) precise-proposed; urgency=low

  * debian/patches/02_dont_crash_on_non-bluetooth_card.patch: do not crash when
    receiving events from PulseAudio for non-bluetooth cards. (LP: #962469)
 -- Mathieu Trudel-Lapierre <email address hidden> Wed, 08 Aug 2012 13:49:37 -0400

Changed in blueman (Ubuntu Precise):
status: Fix Committed → Fix Released
Revision history for this message
gpscruise@gmail.com (gpscruise) wrote :

my sony vaio microphone no longer works. Not sure how to report it. Thanks for looking...

Revision history for this message
Micah Gersten (micahg) wrote :

@gpscruise
That's most likely a different issue unless your microphone is a bluetooth one. Please report a new bug with:
ubuntu-bug linux

Revision history for this message
gpscruise@gmail.com (gpscruise) wrote :

Thanks Micah.
I lucked out.
I turned on Sound-Recorder and my microphone started working.
Thanks! Happy security work!
-jim

Revision history for this message
ladykaoru (ladykaoru) wrote :

multiples problems related with this, pulseaudio and alsa. Every time i start my computer, i have to reinstall all the alsa plugins and software to have sound. i have a netbook with xubuntu 12.04 precise and a intel card

Revision history for this message
Vinaykumar (vinayshirur-byd) wrote :

tnx

Revision history for this message
Sven Neuhaus (sven0) wrote :

Had the blueman-applet crash on me today just by walking out of bluetooth range while audio was playing.

Revision history for this message
V字龍(Vdragon) (vdragon) wrote :

I wondered if this bug still affect 13.10
I got a bluman-applet crash and apport bring me to this specific bug...

tags: added: utopic
Changed in blueman (Fedora):
importance: Unknown → Undecided
status: Unknown → Won't Fix
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

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