Public bug reported:
LibreOffice (GTK3 VCL backend) intermittently freezes completely while
idle and has to be killed. The UI thread is stuck forever inside glycin,
called from gdk-pixbuf while GTK3 loads a 32x32 icon during a widget
size request. The freeze happens without any user action and uses 0%
CPU. This has happened repeatedly since September 2026, in Calc and
Writer, with glycin 2.1.1 and still with 2.1.5.
A live backtrace taken during a freeze (attached, symbols from
debuginfod.ubuntu.com) shows:
- Main thread: GTK3 gtk_widget_get_preferred_height_and_baseline_for_width →
gdk_pixbuf_new_from_stream_at_scale(width=32, height=32) →
gdk_pixbuf_loader_close → gdk_pixbuf__glycin_image_stop_load →
load_pixbuf_with_glycin (io-glycin-utils.c:438) → gly_loader_load →
parking::Inner::park → Condvar::wait (never returns)
- Threads "blocking-6" and "blocking-7": blocking::unblock::{{closure}} →
parking::Inner::park → Condvar::wait
- Thread "async-io": Mutex::lock_contended
- Thread "gly-global-exec": idle in async_io::reactor::ReactorLock::react
- No glycin loader process exists (no glycin-* / bwrap child of soffice.bin),
so the hang happens before any loader is spawned.
- soffice.bin holds both ends of a connected AF_UNIX socket pair (fds 28/29),
consistent with the loader connection having been set up but no loader ever
running.
This looks like the deadlock fixed upstream in glycin 2.2.beta.1, where
the synchronous API was changed to stop using async GIO file operations,
because consumers that block on libglycin (gdk-pixbuf, GNOME Shell,
Nautilus) could deadlock. Ubuntu 26.04 only has 2.1.5+ds-0ubuntu0.2 in
resolute-updates.
Request: please backport the upstream fix (sync API using sync GIO
operations) to glycin 2.1.x in Ubuntu 26.04 LTS through an SRU, or
update to a fixed release.
STEPS TO REPRODUCE
Intermittent; no deterministic reproducer.
1. Run LibreOffice Calc or Writer on Ubuntu 26.04 (GNOME, Wayland, 200%
scaling, default GTK3 VCL plugin).
2. Leave a document open; at some point while idle, the window stops responding
permanently.
3. cat /proc/<pid>/wchan for soffice.bin shows futex_do_wait; its voluntary
context switch count no longer moves.
THINGS ALREADY RULED OUT
- AppArmor: the soffice.bin profile is in complain mode.
- GDK_PIXBUF_MODULE_FILE pointing to a custom loaders cache does not avoid
glycin; glycin is still used before the librsvg pixbuf loader.
- GLYCIN_DATA_DIR set to an empty directory: no image loads at all (no
fallback).
- The Qt6 VCL plugin avoids the code path only when qt6-gtk-platformtheme is
removed, which breaks other things; that is not a fix.
VERSIONS
- Ubuntu 26.04.1 LTS, kernel 7.0.0-44-generic, GNOME on Wayland
- libglycin-2-0 / glycin-loaders 2.1.5+ds-0ubuntu0.2
- libgdk-pixbuf-2.0-0 2.44.5+dfsg-4ubuntu1
- libgtk-3-0t64 3.24.52-0ubuntu1
- libreoffice-core / libreoffice-gtk3 4:26.2.6.3-0ubuntu0.26.04.2
- bubblewrap 0.11.1-1ubuntu0.3
** Affects: glycin (Ubuntu)
Importance: Undecided
Status: New
** Attachment added: "gdb backtrace of all soffice.bin threads during the
freeze (debuginfod symbols)"
https://bugs.launchpad.net/bugs/2176126/+attachment/6021015/+files/gdb-gel-20261125-2246.txt
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2176126
Title:
UI deadlock in GTK3 apps: gly_loader_load() blocks forever when gdk-
pixbuf loads an icon through glycin (LibreOffice freezes)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glycin/+bug/2176126/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs