LANG=en_US xsane Gtk-Message: 16:55:30.121: Failed to load module "pk-gtk-module" (xsane:136278): GdkPixbuf-WARNING **: 16:55:30.123: Error loading XPM image loader: Image type ?xpm? is not supported (xsane:136278): GdkPixbuf-WARNING **: 16:55:30.123: Error loading XPM image loader: Image type ?xpm? is not supported Reproducible: Always Steps to Reproduce: 1.xsane 2. 3. Actual Results: See details. Expected Results: Scanner is started
Hi Joachim, thank you for reporting the issue! I was able to reproduce the issue when I enabled updates from testing repo - the cause of the crash is gdk-pixbuf2 update https://bodhi.fedoraproject.org/updates/FEDORA-2024-8905981bd1 , which removed xpm file format support, but gtk2 looks to be using it. backtrace: #0 0x00007f879b7221f5 in IA__gtk_image_set_from_pixmap (image=0x55d0f9703070, pixmap=0x0, mask=0x100000000) at /usr/src/debug/gtk2-2.24.33-18.fc40.x86_64/gtk/gtkimage.c:858 858 g_return_if_fail (mask == NULL || Missing separate debuginfos, use: dnf debuginfo-install graphite2-1.3.14-15.fc40.x86_64 libXau-1.0.11-6.fc40.x86_64 libXrandr-1.5.4-3.fc40.x86_64 libcap-2.69-8.fc40.x86_64 libdatrie-0.2.13-9.fc40.x86_64 libxcb-1.16-4.fc40.x86_64 (gdb) bt #0 0x00007f879b7221f5 in IA__gtk_image_set_from_pixmap (image=0x55d0f9703070, pixmap=0x0, mask=0x100000000) at /usr/src/debug/gtk2-2.24.33-18.fc40.x86_64/gtk/gtkimage.c:858 #1 0x00007f879b722419 in IA__gtk_image_new_from_pixmap (pixmap=pixmap@entry=0x0, mask=0x100000000) at /usr/src/debug/gtk2-2.24.33-18.fc40.x86_64/gtk/gtkimage.c:606 #2 0x000055d0f89efed9 in xsane_init (argc=<optimized out>, argc@entry=1, argv=<optimized out>, argv@entry=0x7ffdd22e9b58) at ../../src/xsane.c:6046 #3 0x000055d0f8993440 in xsane_interface (argv=0x7ffdd22e9b58, argc=1) at ../../src/xsane.c:6143 #4 main (argc=1, argv=0x7ffdd22e9b58) at ../../src/xsane.c:6406 I'll reassign this to gdk-pixbuf2.
https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commits/master states that support for certain older icon formats has been removed to reduce the attack surface I think this is the specific commit: https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/e052a112075a19fb75f1f2ff3de4c82923de13f2 it also says this: Add 'gif' and 'others' options for the gif loader and all the other remaining loaders. This makes it easier for distros to ship a sane subset of loaders. Somewhere I did notice another comment about needing to inform downstream about this change, which clearly has not happened.
@Dohnal thanks for answer! After downgrading gdk-pixbuf2 with disablerepo=updates-testing xsane runs flawlessly. Joachim
IMO such change should arrive into rawhide only and be announced, so programs using those disabled formats can have time for fixing the code. Certainly it is not something which should arrive before F40 GA and into stable F39.
Also, there'd need to be a clear alternative, and a good reason to switch. Programs are using gdk-pixbuf for loading specific image formats, and it's reasonable to expect it to continue supporting those.
I'll close this bugs as duplicate of #2276464 . FTR, xsane defines many (I'm not sure whether they are all) icons via xpm, so removal of the support would be problematic for xsane as well. *** This bug has been marked as a duplicate of bug 2276464 ***
On F41+ xsane will need to add a dependency on gdk-pixbuf2-modules-extra; see https://src.fedoraproject.org/rpms/xsane/pull-request/3. Reopening and moving back to xsane.
FEDORA-2024-d614ae52b3 (xsane-0.999-52.fc41) has been submitted as an update to Fedora 41. https://bodhi.fedoraproject.org/updates/FEDORA-2024-d614ae52b3
FEDORA-2024-d614ae52b3 (xsane-0.999-52.fc41) has been pushed to the Fedora 41 stable repository. If problem still persists, please make note of it in this bug report.
*** Bug 2277187 has been marked as a duplicate of this bug. ***