Bug 2369016

Summary: [abrt] mcomix3-base: open(): image_tools.py:479:load_pixbuf_size:gi.repository.GLib.GError: gdk-pixbuf-error-quark: Image file “/home/wilhelm/Downloads/Re Wilhelm Mailänder.pdf” contains no data (0)
Product: [Fedora] Fedora Reporter: wilhelm+redhat-bugzilla
Component: mcomix3Assignee: Mamoru TASAKA <mtasaka>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 42CC: mtasaka, wilhelm+redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/a342da768bad015be36d8aa7bbae7f6ec5484a5
Whiteboard: abrt_hash:65df0ae0129005192d442c3839bf87eff973047c;VARIANT_ID=workstation;
Fixed In Version: mcomix3-0-0.38.D20211016git483f4b3.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-06-12 01:29:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: cpuinfo
none
File: os_info
none
File: mountinfo
none
File: environ
none
File: namespaces
none
File: open_fds
none
File: backtrace none

Description wilhelm+redhat-bugzilla 2025-05-28 17:04:46 UTC
Version-Release number of selected component:
mcomix3-base-0-0.36.D20211016git483f4b3.fc42

Additional info:
reporter:       libreport-2.17.15
interpreter:    python3-3.13.3-2.fc42.x86_64
type:           Python3
reason:         image_tools.py:479:load_pixbuf_size:gi.repository.GLib.GError: gdk-pixbuf-error-quark: Image file “/home/wilhelm/Downloads/Re Wilhelm Mailänder.pdf” contains no data (0)
executable:     /usr/lib/python3.13/site-packages/mcomix3/comicthumb.py
crash_function: open
cgroup:         0::/user.slice/user-1000.slice/user/app.slice/app-gnome-nemo-5232.scope
uid:            1000
kernel:         6.14.6-300.fc42.x86_64
exception_type: PIL.UnidentifiedImageError
runlevel:       N 5
package:        mcomix3-base-0-0.36.D20211016git483f4b3.fc42
cmdline:        /usr/bin/python3 /usr/lib/python3.13/site-packages/mcomix3/comicthumb.py '/home/wilhelm/Downloads/Re Wilhelm Mail\xc3\xa4nder.pdf' /tmp/.gnome_desktop_thumbnail.SXXZ62 256

Truncated backtrace:
image_tools.py:479:load_pixbuf_size:gi.repository.GLib.GError: gdk-pixbuf-error-quark: Image file “/home/wilhelm/Downloads/Re Wilhelm Mailänder.pdf” contains no data (0)

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/mcomix3/mcomix3/mcomix/image_tools.py", line 471, in load_pixbuf_size
    with Image.open(fio) as im:
         ~~~~~~~~~~^^^^^
  File "/usr/lib64/python3.13/site-packages/PIL/Image.py", line 3532, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <mcomix.lib.reader.LockedFileIO object at 0x7f3fc362e250>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.13/site-packages/mcomix3/comicthumb.py", line 75, in <module>
    exit(main())
         ~~~~^^
  File "/usr/lib/python3.13/site-packages/mcomix3/comicthumb.py", line 65, in main
    thumb = thumbnailer.thumbnail(in_path)
  File "/usr/lib/python3.13/site-packages/mcomix3/mcomix3/mcomix/thumbnail_tools.py", line 97, in thumbnail
    return self._create_thumbnail(filepath)
           ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/mcomix3/mcomix3/mcomix/thumbnail_tools.py", line 170, in _create_thumbnail
    pixbuf, tEXt_data = self._create_thumbnail_pixbuf(filepath)
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
  File "/usr/lib/python3.13/site-packages/mcomix3/mcomix3/mcomix/thumbnail_tools.py", line 156, in _create_thumbnail_pixbuf
    pixbuf = image_tools.load_pixbuf_size(filepath, self.width, self.height)
  File "/usr/lib/python3.13/site-packages/mcomix3/mcomix3/mcomix/image_tools.py", line 479, in load_pixbuf_size
    pixbuf = GdkPixbuf.Pixbuf.new_from_file(path)
gi.repository.GLib.GError: gdk-pixbuf-error-quark: Image file “/home/wilhelm/Downloads/Re Wilhelm Mailänder.pdf” contains no data (0)

Local variables in innermost frame:
path: '/home/wilhelm/Downloads/Re Wilhelm Mailänder.pdf'
width: 256
height: 256
fio: <mcomix.lib.reader.LockedFileIO object at 0x7f3fc362e250>
info: None
image_width: -1
image_height: -1

Comment 1 wilhelm+redhat-bugzilla 2025-05-28 17:04:49 UTC
Created attachment 2091959 [details]
File: cpuinfo

Comment 2 wilhelm+redhat-bugzilla 2025-05-28 17:04:51 UTC
Created attachment 2091960 [details]
File: os_info

Comment 3 wilhelm+redhat-bugzilla 2025-05-28 17:04:52 UTC
Created attachment 2091961 [details]
File: mountinfo

Comment 4 wilhelm+redhat-bugzilla 2025-05-28 17:04:54 UTC
Created attachment 2091962 [details]
File: environ

Comment 5 wilhelm+redhat-bugzilla 2025-05-28 17:04:55 UTC
Created attachment 2091963 [details]
File: namespaces

Comment 6 wilhelm+redhat-bugzilla 2025-05-28 17:04:57 UTC
Created attachment 2091964 [details]
File: open_fds

Comment 7 wilhelm+redhat-bugzilla 2025-05-28 17:04:58 UTC
Created attachment 2091965 [details]
File: backtrace

Comment 8 Fedora Update System 2025-06-03 07:02:15 UTC
FEDORA-2025-03e584ca3f (mcomix3-0-0.38.D20211016git483f4b3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-03e584ca3f

Comment 9 Fedora Update System 2025-06-04 04:30:03 UTC
FEDORA-2025-03e584ca3f has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-03e584ca3f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-03e584ca3f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2025-06-12 01:29:32 UTC
FEDORA-2025-03e584ca3f (mcomix3-0-0.38.D20211016git483f4b3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.