Bug 489207

Summary: Can't open large images due to 2000 megabyte allocation limit
Product: [Applications] gwenview Reporter: Liera <FamiliarSpaceDragon>
Component: generalAssignee: Gwenview Bugs <gwenview-bugs-null>
Status: CONFIRMED ---    
Severity: normal CC: kdedev
Priority: NOR    
Version First Reported In: 24.05.0   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Liera 2024-06-25 23:31:58 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
One can't open images larger than 2000 megabytes like the full size hubble images even though images aren't on or larger than 2000MB

STEPS TO REPRODUCE
1. Download one of the large images of https://hubblesite.org/contents/media/images/2019/17/4492-Image.html
    - This can be the full size png https://stsci-opo.org/STScI-01EVSVZXR09GBZKNZ8PRN288G2.png
    - Or the tiff, doesn't really matter https://stsci-opo.org/STScI-01EVSW40QY4W0GC78APRTRYYBC.tif
2. Try to open it with gwenview.
3. It won't display but shows a "Loading image failed" message.

OBSERVED RESULT
Image doesn't load or view at all. Application doesn't give reason but the log does. Given journalctl log entries;
```
jun 26 01:21:37 hostname systemd[914]: Started Gwenview - Image Viewer.
jun 26 01:21:37 hostname gwenview[25322]: Qt: Session management error: None of the authentication protocols specified are supported
jun 26 01:21:37 hostname gwenview[25322]: kf.i18n.kuit: "Unknown subcue ':whatsthis,' in UI marker in context {@info:whatsthis, %1 the action's text}."
jun 26 01:21:37 hostname gwenview[25322]: org.kde.kdegraphics.gwenview.lib: Unresolved mime type  "image/x-mng"
jun 26 01:21:37 hostname gwenview[25322]: org.kde.kdegraphics.gwenview.lib: Unresolved raw mime type  "image/x-samsung-srw"
jun 26 01:21:38 hostname gwenview[25322]: qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 2000 megabytes
jun 26 01:21:39 hostname gwenview[25322]: qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 2000 megabytes
jun 26 01:21:39 hostname gwenview[25322]: qt.gui.imageio: QImageIOHandler: Rejecting image as it exceeds the current allocation limit of 2000 megabytes
jun 26 01:21:45 hostname systemd[914]: app-org.kde.gwenview-c44d0b1477a944c186b26d8c6c294db3.scope: Consumed 1.923s CPU time.
```

EXPECTED RESULT
Expected the image to load & be viewable. Especially since the given images aren't on or over 2000 MB.


SOFTWARE/OS VERSIONS
Windows: Untested
macOS: Untested
Linux/KDE Plasma:  Manjaro Linux 24.0.2 Wynsdey x86_64
(available in About System)
KDE Plasma Version: 6.0.5 (x11)
KDE Frameworks Version: 5.116.0
Qt Version: 5.15.14

ADDITIONAL INFORMATION
Comment 1 TraceyC 2024-06-27 22:54:27 UTC
Can reproduce on Plasma 6.1 with Gwenview 24.05.1 using the png image linked in the original post
KDE Neon

Attempting to open a file that is 672.2MiB results in the error
Comment 2 A Linux User 2025-09-04 12:18:50 UTC
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 (the latest released version)?
Comment 3 Liera 2025-09-04 14:15:48 UTC
(In reply to A Linux User from comment #2)
> 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 (the latest released version)?

Yes, this is still an issue in Gwenview 25.08.0. One can use the reproduction steps given in the original post to check this yourself in the future.