Bug 483534 - gwenvew doesn't open high resolution png file
Summary: gwenvew doesn't open high resolution png file
Status: RESOLVED DUPLICATE of bug 482195
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.02.0
Platform: Arch Linux Linux
: NOR major
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords: qt6, regression
Depends on:
Blocks:
 
Reported: 2024-03-14 11:15 UTC by saxn
Modified: 2024-04-01 15:57 UTC (History)
6 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description saxn 2024-03-14 11:15:32 UTC
SUMMARY: 
Just rendered a masterplan for architectural project. It in A0 size.
It is high quality for better print results. Gwenview doesn't open the image. 
In plasma 5 it used to work, now it won't.


Gwenview terminal log:
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-samsung-srw"
qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes
qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes
qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 256 megabytes


INFO: 
Operating System: Arch Linux 
KDE Plasma Version: 6.0.2
KDE Frameworks Version: 6.0.0
Qt Version: 6.6.2
Kernel Version: 6.7.9-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i5-9300H CPU @ 2.40GHz
Memory: 15.3 GiB of RAM
Graphics Processor: Mesa Intel® UHD Graphics 630 + Nvidia
Comment 1 Jakob Hellermann 2024-03-17 16:41:44 UTC
AS a workaround you can set the environment variable QT_IMAGEIO_MAXALLOC=8192 as described in https://doc.qt.io/qt-6/qimagereader.html#setAllocationLimit
Comment 2 Sjoerd 2024-03-20 11:53:48 UTC
I think this is a duplicate of bug https://bugs.kde.org/show_bug.cgi?id=482195

And the problem is not only with Gwenview, it's also with other KDE image viewer/editors since the Plasma 6 update. Okular and Kolourpaint give the same error.
Comment 3 bugs_kde_org 2024-03-20 12:47:17 UTC
(In reply to Jakob Hellermann from comment #1)
> AS a workaround you can set the environment variable
> QT_IMAGEIO_MAXALLOC=8192 as described in
> https://doc.qt.io/qt-6/qimagereader.html#setAllocationLimit

I can confirm. It's works for heic files, but when I am trying to open 4k/60Hz movie, gwenview crashing.

QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::setOpacity: Painter not active
QPainter::end: Painter not active, aborted


When you using fish shell, use it to open gwenview. After that, high resolution images should be opened without problems.
env "QT_IMAGEIO_MAXALLOC= 8128" gwenview
Comment 4 Nate Graham 2024-04-01 15:57:18 UTC

*** This bug has been marked as a duplicate of bug 482195 ***