Bug 489207 - Can't open large images due to 2000 megabyte allocation limit
Summary: Can't open large images due to 2000 megabyte allocation limit
Status: CONFIRMED
Alias: None
Product: gwenview
Classification: Applications
Component: general (show other bugs)
Version: 24.05.0
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Gwenview Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-25 23:31 UTC by Liera
Modified: 2024-06-27 22:54 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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