Bug 2276661 - xsane dies immediately when started: Failed to load module "pk-gtk-module"
Summary: xsane dies immediately when started: Failed to load module "pk-gtk-module"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xsane
Version: rawhide
Hardware: Unspecified
OS: Linux
unspecified
urgent
Target Milestone: ---
Assignee: Benjamin Gilbert
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 2277187 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-04-23 15:03 UTC by Joachim Backes
Modified: 2024-09-15 01:33 UTC (History)
8 users (show)

Fixed In Version: xsane-0.999-52.fc41
Clone Of:
Environment:
Last Closed: 2024-07-26 08:36:31 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Fedora Package Sources gdk-pixbuf2 pull-request 4 0 None None None 2024-04-24 11:50:01 UTC
Fedora Package Sources xsane pull-request 3 0 None None None 2024-07-26 06:30:18 UTC

Description Joachim Backes 2024-04-23 15:03:46 UTC
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

Comment 1 Zdenek Dohnal 2024-04-24 09:09:07 UTC
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.

Comment 2 Brian Morrison 2024-04-24 09:22:26 UTC
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.

Comment 3 Joachim Backes 2024-04-24 10:33:52 UTC
@Dohnal

thanks for answer!

After downgrading gdk-pixbuf2 with disablerepo=updates-testing  xsane runs flawlessly.

Joachim

Comment 4 Zdenek Dohnal 2024-04-24 11:20:02 UTC
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.

Comment 5 Benjamin Gilbert 2024-04-24 11:25:44 UTC
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.

Comment 6 Zdenek Dohnal 2024-04-24 12:10:09 UTC
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 ***

Comment 7 Benjamin Gilbert 2024-07-26 06:30:18 UTC
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.

Comment 8 Fedora Update System 2024-07-26 08:31:50 UTC
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

Comment 9 Fedora Update System 2024-07-26 08:36:31 UTC
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.

Comment 10 Benjamin Gilbert 2024-09-15 01:33:22 UTC
*** Bug 2277187 has been marked as a duplicate of this bug. ***


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