Bug 2274766

Summary: [abrt] blueman: _on_battery_property_changed(): ConnectionNotifier.py:57:_on_battery_property_changed:KeyError: '/org/bluez/hci0/dev_00_1B_66_C3_37_D7'
Product: [Fedora] Fedora Reporter: Dmitry Tantsur <dtantsur>
Component: bluemanAssignee: Artur Frenszek-Iwicki <fedora>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 39CC: dtantsur, fedora, fedora
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/f5f04ca4a9fabc1549196d482fc83d0c9c88fec
Whiteboard: abrt_hash:487c0ba477a14fdee97479ed2d225e52a49fdda8;VARIANT_ID=matecompiz;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-04-21 09:52:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: namespaces
none
File: open_fds
none
File: backtrace
none
File: mountinfo
none
File: environ
none
File: cpuinfo
none
File: os_info none

Description Dmitry Tantsur 2024-04-12 18:23:36 UTC
Description of problem:
Connect a bluetooth headset that used to work before (CX 350 in this case).

Version-Release number of selected component:
blueman-1:2.3.5-8.fc39

Additional info:
reporter:       libreport-2.17.11
type:           Python3
exception_type: KeyError
executable:     /usr/bin/blueman-applet
package:        blueman-1:2.3.5-8.fc39
crash_function: _on_battery_property_changed
comment:        Connect a bluetooth headset that used to work before (CX 350 in this case).
interpreter:    python3-3.12.2-2.fc39.x86_64
cmdline:        /usr/bin/python3 -sPE /usr/bin/blueman-applet
runlevel:       N 5
reason:         ConnectionNotifier.py:57:_on_battery_property_changed:KeyError: '/org/bluez/hci0/dev_00_1B_66_C3_37_D7'
uid:            1000
cgroup:         0::/user.slice/user-1000.slice/session-3.scope
kernel:         6.8.4-200.fc39.x86_64

Truncated backtrace:
ConnectionNotifier.py:57:_on_battery_property_changed:KeyError: '/org/bluez/hci0/dev_00_1B_66_C3_37_D7'

Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/blueman/plugins/applet/ConnectionNotifier.py", line 53, in _on_battery_created
    self._on_battery_property_changed(battery, "Percentage", battery["Percentage"], obj_path)
  File "/usr/lib/python3.12/site-packages/blueman/plugins/applet/ConnectionNotifier.py", line 57, in _on_battery_property_changed
    notification = self._notifications[path]
                   ~~~~~~~~~~~~~~~~~~~^^^^^^
KeyError: '/org/bluez/hci0/dev_00_1B_66_C3_37_D7'

Local variables in innermost frame:
self: <blueman.plugins.applet.ConnectionNotifier.ConnectionNotifier object at 0x7f43d7a3b0e0>
_battery: <Battery.Battery object at 0x7f43cff5cb00 (blueman+bluez+Battery+Battery at 0x563b9a9aefc0)>
key: 'Percentage'
value: 100
path: '/org/bluez/hci0/dev_00_1B_66_C3_37_D7'

Comment 1 Dmitry Tantsur 2024-04-12 18:23:40 UTC
Created attachment 2026658 [details]
File: namespaces

Comment 2 Dmitry Tantsur 2024-04-12 18:23:42 UTC
Created attachment 2026659 [details]
File: open_fds

Comment 3 Dmitry Tantsur 2024-04-12 18:23:43 UTC
Created attachment 2026660 [details]
File: backtrace

Comment 4 Dmitry Tantsur 2024-04-12 18:23:44 UTC
Created attachment 2026661 [details]
File: mountinfo

Comment 5 Dmitry Tantsur 2024-04-12 18:23:46 UTC
Created attachment 2026662 [details]
File: environ

Comment 6 Dmitry Tantsur 2024-04-12 18:23:47 UTC
Created attachment 2026663 [details]
File: cpuinfo

Comment 7 Dmitry Tantsur 2024-04-12 18:23:49 UTC
Created attachment 2026664 [details]
File: os_info

Comment 8 Dmitry Tantsur 2024-04-12 18:29:10 UTC
The issue is probably triggered by https://bugzilla.redhat.com/show_bug.cgi?id=2274769

Comment 9 Dmitry Tantsur 2024-04-12 18:32:59 UTC
Or maybe it's more interesting: https://bugzilla.redhat.com/show_bug.cgi?id=2274769 could be a red herring, and it's actually blueman that misleads me about the device status. I'd really like to hear your thoughts on both issues.

Comment 10 Dmitry Tantsur 2024-04-21 09:52:22 UTC
Presumably fixed as part of https://bugzilla.redhat.com/show_bug.cgi?id=2274047

*** This bug has been marked as a duplicate of bug 2274047 ***