SUMMARY Hi, when I double click to preview in Gwenview my huge collection of Krita files; a minority are read without any problems, and a majority will simply don't load. They display a red box on the center of the viewport with the message "Loading 'filename.kra' failed". STEPS TO REPRODUCE 1. Download this Krita file (ziped) : https://www.peppercarrot.com/0_sources/0ther/artworks/zip/2017-10-11_run_by-David-Revoy.zip 2. Open it with Gwenview (from Dolphin or from Konsole) OBSERVED RESULT Gwenview display a red box on the center of the viewport with the message "Loading 'filename.kra' failed". Output on terminal: ``` ~/peppercarrot/webcomics/0ther/artworks »»» gwenview 2017-10-11_run.kra kf.i18n.kuit: "Unknown subcue ':whatsthis,' in UI marker in context {@info:whatsthis, %1 the action's text}." org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-mng" org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-nikon-nrw" org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw" org.kde.kdegraphics.gwenview.lib: QImageReader::read() using format hint "kra" failed: "Unknown error" org.kde.kdegraphics.gwenview.lib: QImageReader::read() without format hint failed: "Unsupported image format" org.kde.kdegraphics.gwenview.lib: QImageReader::read() using format hint "kra" failed: "Unknown error" org.kde.kdegraphics.gwenview.lib: QImageReader::read() without format hint failed: "Unsupported image format" ``` EXPECTED RESULT Gwenview loads the Krita image. SOFTWARE/OS VERSIONS Linux/KDE Plasma: Linux workstation 5.17.13-300.fc36.x86_64 / Plasma KDE Plasma Version: 5.24.5 KDE Frameworks Version: 5.93.0 Qt Version: 5.15.3
Thank you for the bug report. Unfortunately we were not able to get to it yet. Can we ask you to please check if this is still an issue with Gwenview 25.08.0?
Hey, @Linux User; can you tell me a testing procedure to confirm the bug? Should I run a new Linux distribution on a VM, import a bunch of *.kra file on it and check if recent Gwenview still has the same behavior? If yes, what would be the best distro to do that?
(In reply to David REVOY from comment #2) > Hey, @Linux User; can you tell me a testing procedure to confirm the bug? That sounds like far too much effort. It looks like you are using Fedora. In that case I would assume that you have Fedora 42. I would just make sure that your system is up to date. If yes, then Gwenview will be the newest version there is (25.08). Then check with your .kra files whether the bug appears again. If you need help, feel free to ask :-)
Unfortunately, since the bug report, I was kicked out the Fedora KDE ecosystem when this one forced Wayland without X11 support. As a digital painter, I couldn't get the support of my stylus and color calibration with this change; so I migrated to Debian KDE 12 with a KDE 5.27.5 base. But you are right, testing on a new distro might be overkill; so I looked for alternative and found Gwenview Flatpak (25.08) https://flathub.org/apps/org.kde.gwenview I can still reproduce the bug with the provided Krita file. The error message is updated: Loading '2017-10-11_run.kra" failed Loading meta information failed I tested in other Qt based image viewer ( qimgv and nomacs ) and both could open it. I'll attach a screenshot with the three open side by side.
Created attachment 184332 [details] Screenshot of Gwenview, Qimgv and Nomacs opening the same file: Gwenview fails
I can open with Gwenview 25.08 all my recent Krita files, roughly the one made this and last year. So it sounds like at one point, Krita saved or compressed the file in a way that bugs Gwenview. If I open the provided Krita file with Krita 5.2.9 appimage, and then do a minor modification and overwrite it, then Gwenview can open and preview the file. That can be a solid workaround for someone with not a lot of Krita files to access. Unfortunately, in my case, I might have hundreds like the sample I sent (zip) in my first message. I found a way to run the 25.08 Flatpak version on CLI to get more info and debug symbols: ~ »»» flatpak run org.kde.gwenview /home/deevad/2017-10-11_run.kra Qt: Session management error: Could not open network socket org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/hej2k" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/vnd.radiance" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-pfm" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-phm" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-pxr" org.kde.kdegraphics.gwenview.lib: Unresolved mime type "image/x-sct" org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type "image/x-samsung-srw" org.kde.kdegraphics.gwenview.lib: QImageReader::read() using format hint "kra" failed: "Unknown error" org.kde.kdegraphics.gwenview.lib: QImageReader::read() without format hint failed: "Unsupported image format" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" kf.solid.backends.udisks2: Failed enumerating UDisks2 objects: "org.freedesktop.DBus.Error.Disconnected" "Not connected to D-Bus server" ~ »»»
Thank you for the effort, I could reproduce this now. TL;DR Some (older, before ~2024) Krita files cannot be opened, newer versions work fine. Workaround: Open in newer Krita version, do minor edit, save. Now Gwenview can open it. OFFTOPIC: > As a digital painter, I couldn't get the support of my stylus and > color calibration with this change; so I migrated to Debian KDE > 12 with a KDE 5.27.5 base. There has been quite some progress made with KDE support for input devices (especially stylus stuff), as part of the KDE Goal "We care about your input!" (https://invent.kde.org/teams/goals/we-care-about-your-input). The stylus issue might be fixed already, if not, they might very well try to fix it with priority. There seems to be a new kind of awareness for input issues. About color calibration I have no clue, but I read that it is being worked on. Maybe it is worth checking out a Wayland Plasma 6 distro in some time.
@ A Linux User: Thank you for confirming! OFFTOPIC: > [...] "We care about your input!" Oh yes, the progress are good, and it's almost there! I'm also part of the Matrix group and tested many times new panels and settings. :-) Can't wait to join Plasma 6 + Wayland.