Correction after checking the PPA build logs: jammy and noble build obexd
with the dummy phonebook backend. Their debian/rules pass
--enable-phonebook-ebook, which 5.64/5.72 do not understand (those versions
use --with-phonebook=...), so the EDS window only exists on 26.04 and later
(5.85/5.87/5.88). On jammy/noble the same name-before-init window is filled
by the bluetooth plugin's blocking system-bus/logind setup and other
cold-start work, so the fix applies for the same reason.

The jammy and noble candidates were rebuilt with corrected changelog wording
(changelog-only change; the patch and binaries are unchanged):

  jammy  5.64-0ubuntu1.8
  noble  5.72-0ubuntu5.10

The other candidates are unchanged. The [Impact] and [Test Plan] sections of
the description now reflect this.


** Description changed:

  [Impact]
  
  blueman-applet is the most reported crash on errors.ubuntu.com. At login the
  applet activates obexd and, when the org.bluez.obex name appears, makes a
  synchronous GetManagedObjects call with the 25 s GDBus default timeout.
  
- obexd requests the name in manager_init(), which runs before plugin_init()
- (the ebook phonebook backend activates Evolution Data Server and the bluetooth
- plugin connects to the system bus) and before obexd's main loop starts. The
- name is therefore visible while obexd cannot answer any message. On a cold
- login EDS activation pushes the reply past 25 s, blueman-applet gets
- "g-io-error-quark: Timeout was reached (24)", apport files a crash, the applet
- main loop is blocked for those 25 s and OBEX transfers stay disabled for the
- rest of the session.
+ obexd requests the name in manager_init(), which runs before plugin_init(),
+ obex_server_init() and client_manager_init(), and before obexd's main loop
+ starts. The name is therefore visible while obexd cannot answer any message.
+ The blocking work in that window differs by series: on 26.04 and later the
+ ebook phonebook backend activates Evolution Data Server
+ (e_source_registry_new_sync() plus e_book_client_connect_sync(), two 25-30 s
+ timeouts); on 22.04/24.04 the packages use the dummy phonebook backend and the
+ same window is filled by the bluetooth plugin's blocking system-bus/logind
+ setup and other cold-start contention. Either way a cold login can exceed
+ 25 s, blueman-applet gets "g-io-error-quark: Timeout was reached (24)", apport
+ files a crash, the applet main loop is blocked for those 25 s and OBEX
+ transfers stay disabled for the rest of the session.
  
  This SRU backports upstream commit ca8a00a9d40a (merged 2026-12-01, 121 
commits
  after tag 5.88, so in no BlueZ release yet): only connect in manager_init(),
  request the name after plugin/server/client initialisation, skip it if a
  termination signal is already pending, and raise obex.service TimeoutStartSec
  to 180 s to cover the two phonebook_init() retries.
  
  [Test Plan]
  
  Deterministic (no Bluetooth hardware needed):
    * On a private session bus, make obexd initialisation take longer than 25 s
-     (e.g. cold EDS, or a 30 s delay injected after manager_init()), watch
-     org.bluez.obex with Gio.bus_watch_name(AUTO_START) and time a synchronous
+     (cold-EDS stand-in on releases with the ebook backend; a test-only 30 s
+     delay injected after manager_init() on jammy/noble, whose packages use the
+     dummy phonebook backend), watch org.bluez.obex with
+     Gio.bus_watch_name(AUTO_START) and time a synchronous
      Manager()/GetManagedObjects call like blueman 2.4.4's TransferService.
    * Unpatched: name appears immediately, the call fails after 25 s with
      "g-io-error-quark: Timeout was reached (24)" (the reported traceback).
    * Patched: the name appears only once obexd can answer and the call returns
      in milliseconds. Verified for the 5.64 (jammy) and 5.72 (noble) backports
      and the 5.85 (resolute) build.
  
  Functional:
    * Log in to a blueman flavour session (Xubuntu/MATE/Lubuntu) with the
      candidate installed; confirm the traceback is gone from the journal and
-     that OBEX still works: receive a file from a phone (OBEX OPP) and browse
-     the phonebook (PBAP).
+     that OBEX still works: receive a file from a phone (OBEX OPP); browse the
+     phonebook (PBAP) on releases built with the ebook backend (26.04+).
    * `systemctl --user show obex.service -p TimeoutStartUSec` reports 3min.
  
  Regression:
    * Normal (fast) login still activates obexd and OBEX send/receive works.
    * `systemctl --user restart obex.service` works; logout and shutdown
      terminate obexd cleanly; no new journal errors.
  
  [Where problems could occur]
  
  Clients that use "org.bluez.obex is on the bus" as a readiness signal now see
  the name later, i.e. when obexd can actually answer; clients that only check
  NameHasOwner without D-Bus activation would see it as absent during
  initialisation. D-Bus activation itself is unaffected: the activating call
  waits for the name under Type=dbus, and messages addressed to the name are
  queued by the bus until it is acquired. If initialisation fails, activation
  now fails instead of briefly exposing a name that immediately disappears.
  
  [Other Info]
  
  Upstream commit:
  https://github.com/bluez/bluez/commit/ca8a00a9d40a56fe9310074bf07f4970a0cf7885
  Mailing list:
  
https://lore.kernel.org/linux-bluetooth/[email protected]/
  Upstream issue (Fix Released):
  https://github.com/bluez/bluez/issues/2915
  Current error tracker signature:
  https://errors.ubuntu.com/problem/11c64048b58d2d016fc49fe2f813fcdb766eddd9
  
  Test builds: https://launchpad.net/~chris-bainbridge/+archive/ubuntu/sru
  The blueman source package needs no change; its unreleased upstream handler
  (4fff7225) only turns the same condition into a logged error and is not
  required once obexd stops publishing the name too early.
  
  --- Original Description ---
  
  https://github.com/blueman-project/blueman/issues/2930
  https://errors.ubuntu.com/problem/32abdcb54be5cbce03513de83428152ffe5decce
  
  ---
  
  was after update. Not sure what actually happened
  
  ```
  Traceback (most recent call last):
    File 
"/usr/lib/python3/dist-packages/blueman/plugins/applet/TransferService.py", 
line 235, in _on_dbus_name_appeared
      self._manager = Manager()
                      ^^^^^^^^^
    File "/usr/lib/python3/dist-packages/blueman/gobject.py", line 11, in 
__call__
      cls._instance = super().__call__(*args, **kwargs)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/lib/python3/dist-packages/blueman/bluez/obex/Manager.py", line 
29, in __init__
      self._object_manager = Gio.DBusObjectManagerClient.new_for_bus_sync(
                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  gi.repository.GLib.GError: g-io-error-quark: Timeout was reached (24)
  ```
  
  ProblemType: Crash
  DistroRelease: Ubuntu 24.10
  Package: blueman 2.4.1-1
  ProcVersionSignature: Ubuntu 6.8.0-31.31-generic 6.8.1
  Uname: Linux 6.8.0-31-generic x86_64
  ApportVersion: 2.28.1-0ubuntu4
  Architecture: amd64
  CasperMD5CheckResult: pass
  CrashCounter: 1
  CurrentDesktop: MATE
  Date: Sat May 18 15:17:03 2024
  ExecutablePath: /usr/bin/blueman-applet
  InstallationDate: Installed on 2024-05-11 (7 days ago)
  InstallationMedia: Ubuntu-MATE 24.10 "Oracular Oriole" - Daily amd64 
(20240510)
  InterpreterPath: /usr/bin/python3.12
  JournalErrors: -- No entries --
  ProcCmdline: /usr/bin/python3 /usr/bin/blueman-applet
  ProcEnviron:
   LANG=en_US.UTF-8
   LANGUAGE=en_US
   PATH=(custom, no user)
   SHELL=/bin/bash
   XDG_RUNTIME_DIR=<set>
  Python3Details: /usr/bin/python3.12, Python 3.12.3, python3-minimal, 
3.12.3-0ubuntu1
  PythonArgs: ['/usr/bin/blueman-applet']
  PythonDetails: N/A
  SourcePackage: blueman
  Title: blueman-applet crashed with gi.repository.GLib.GError in __init__(): 
g-io-error-quark: Timeout was reached (24)
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sudo users

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2066094

Title:
  blueman-applet crashed with gi.repository.GLib.GError in __init__():
  g-io-error-quark: Timeout was reached (24)

To manage notifications about this bug go to:
https://bugs.launchpad.net/bluez/+bug/2066094/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to