Bug 2274766 - [abrt] blueman: _on_battery_property_changed(): ConnectionNotifier.py:57:_on_battery_property_changed:KeyError: '/org/bluez/hci0/dev_00_1B_66_C3_37_D7'
Summary: [abrt] blueman: _on_battery_property_changed(): ConnectionNotifier.py:57:_on_...
Keywords:
Status: CLOSED DUPLICATE of bug 2274047
Alias: None
Product: Fedora
Classification: Fedora
Component: blueman
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Artur Frenszek-Iwicki
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:487c0ba477a14fdee97479ed2d2...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-12 18:23 UTC by Dmitry Tantsur
Modified: 2024-04-21 09:52 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-04-21 09:52:22 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: namespaces (171 bytes, text/plain)
2024-04-12 18:23 UTC, Dmitry Tantsur
no flags Details
File: open_fds (1.56 KB, text/plain)
2024-04-12 18:23 UTC, Dmitry Tantsur
no flags Details
File: backtrace (933 bytes, text/plain)
2024-04-12 18:23 UTC, Dmitry Tantsur
no flags Details
File: mountinfo (3.20 KB, text/plain)
2024-04-12 18:23 UTC, Dmitry Tantsur
no flags Details
File: environ (1.72 KB, text/plain)
2024-04-12 18:23 UTC, Dmitry Tantsur
no flags Details
File: cpuinfo (3.12 KB, text/plain)
2024-04-12 18:23 UTC, Dmitry Tantsur
no flags Details
File: os_info (709 bytes, text/plain)
2024-04-12 18:23 UTC, Dmitry Tantsur
no flags Details

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 ***


Note You need to log in before you can comment on or make changes to this bug.