Package: blueman
Version: 2.4.4-1
Severity: normal

Hi,

I'm using the awesome window manager started via ~/.xinitrc, and I find the
blueman-applet useful in general, but sometimes the UI hangs for up to a minute,
e.g. when right-clicking on the tray icon to open the context menu, or
left-clicking it to bring up the main window (which then takes a while to
appear). Sometimes the mouse gets unusable for a while because the input is
captured by an open menu that cannot be closed. I also noticed that desktop
notications for newly connected or disconnected devices take a while to appear. 

Similar problems have been bugging me for a few years already (even before
trixie and on different hardware), and I don't have a lot of info about what
happens under the hood, but I was now able to recreate one of those situations:

* Start blueman-applet from a terminal
* Power on my Sony WH-1000MX3 headphones. Headphones auto-connect to laptop, and
  Pulseaudio switches the default output to the headphones.
* Right-click on Blueman tray applet. Context menu appears.
* Move the mouse pointer downwards until it's over the menu item "Audio profiles
  for WH-1000MX3 >"
* Even before the menu item is selected (i.e. background turns blue), the UI
  hangs, the menu stays open, and I'm no longer able to use my mouse anywhere
  else on the screen.
* After about 25 seconds, blueman-applet shows a stacktrace on the terminal, and
  the context menu gets responsive again:

    Traceback (most recent call last):
      File 
"/usr/lib/python3/dist-packages/blueman/main/indicators/GtkStatusIcon.py", line 
43, in <lambda>
        gtk_item.connect('activate', cast(Callable[[Gtk.MenuItem], None], 
lambda _, idx=index: activate(idx)))
                                                                                
               ~~~~~~~~^^^^^
      File "/usr/lib/python3/dist-packages/blueman/main/Tray.py", line 62, in 
activate_menu_item
        AppletService().ActivateMenuItem('(ai)', indexes)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/gi/overrides/Gio.py", line 402, in 
__call__
        result = self.dbus_proxy.call_sync(
            self.method_name, arg_variant, flags, timeout, None
        )
    gi.repository.GLib.GError: g-io-error-quark: Timeout was reached (24)

* The same happens after powering off the headphones; in that case the stack
  trace is different:

    Traceback (most recent call last):
      File 
"/usr/lib/python3/dist-packages/blueman/main/indicators/GtkStatusIcon.py", line 
43, in <lambda>
        gtk_item.connect('activate', cast(Callable[[Gtk.MenuItem], None], 
lambda _, idx=index: activate(idx)))
                                                                                
               ~~~~~~~~^^^^^
      File "/usr/lib/python3/dist-packages/blueman/main/Tray.py", line 62, in 
activate_menu_item
        AppletService().ActivateMenuItem('(ai)', indexes)
        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3/dist-packages/gi/overrides/Gio.py", line 402, in 
__call__
        result = self.dbus_proxy.call_sync(
            self.method_name, arg_variant, flags, timeout, None
        )
    gi.repository.GLib.GError: g-dbus-error-quark: 
GDBus.Error:org.freedesktop.DBus.Error.Failed: Traceback (most recent call 
last):
      File "/usr/lib/python3/dist-packages/blueman/main/DbusService.py", line 
156, in _handle_method_call
        ok(method(*args))
           ~~~~~~^^^^^^^
      File "/usr/lib/python3/dist-packages/blueman/plugins/applet/Menu.py", 
line 174, in _activate_menu_item
        node = self.__menuitems[(indexes[0] >> 8, indexes[0] % (1 << 8))]
               ~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    KeyError: (42, 0)
     (0)

  (The same stacktrace seems to happen three times in a row)

* After the isuse with the menu, desktop notifications appear and announce the
  newly connected or disconnected device, but there's still a very noticable,
  although still variable, delay up to a few minutes before they appear.

I did not get a stacktrace when left-clicking on the tray icon to make the main
window appear, it just opened up several seconds later without any output on the
terminal. But I have the feeling that this is also related to connecting and
disconnecting the headphones…

After those initial problems after (dis)connecting a device, blueman seems to be
usable as intended, I can use the context menu, it actually shows some available
audio profiles under the Audio profiles for WH-1000MX3 >" item, and
left-clicking the tray icon makes the main window appear instantly.

Please let me know if you need any other information from me.

Cheers,

 - Roland



-- System Information:
Debian Release: forky/sid
  APT prefers testing-debug
  APT policy: (991, 'testing-debug'), (991, 'testing'), (500, 
'unstable-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 
'stable'), (400, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.19.0-ptx (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages blueman depends on:
ii  adwaita-icon-theme                            49.0-1
ii  awesome [notification-daemon]                 4.3-8.1
ii  bluez                                         5.84-1
ii  bluez-obexd                                   5.84-1
ii  dbus                                          1.16.2-2
ii  dbus-user-session [default-dbus-session-bus]  1.16.2-2
ii  dbus-x11 [dbus-session-bus]                   1.16.2-2
ii  dconf-gsettings-backend [gsettings-backend]   0.49.0-4
ii  gir1.2-gdkpixbuf-2.0                          2.44.4+dfsg-1
ii  gir1.2-glib-2.0                               2.86.3-4
ii  gir1.2-gtk-3.0                                3.24.51-4
ii  gir1.2-nm-1.0                                 1.54.3-1
ii  gir1.2-pango-1.0                              1.56.4-1
ii  gnome-icon-theme                              3.12.0-7
ii  libbluetooth3                                 5.84-1
ii  libc6                                         2.42-7
ii  libpulse-mainloop-glib0                       17.0+dfsg1-2+b1
ii  librsvg2-common                               2.61.3+dfsg-3
ii  polkitd                                       127-1
ii  python3                                       3.13.7-1+b1
ii  python3-cairo                                 1.27.0-2+b1
ii  python3-gi                                    3.54.5-7+b1
ii  python3-gi-cairo                              3.54.5-7+b1

Versions of packages blueman recommends:
ii  libspa-0.2-bluetooth         1.4.9-1+b1
ii  pulseaudio-module-bluetooth  17.0+dfsg1-2+b1

blueman suggests no packages.

-- debconf-show failed

Reply via email to