[Bug]: 42,895 Pixel High Image Not Rendering in Image Viewer #117
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer#117
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
App version
0.1.56 Beta
Platform
Windows
Steps to reproduce
Open a directory with an image that's 42,895 pixels high (1,569 wide in my instance) and attempt to open it in the image viewer.
Expected behavior
The image is displayed
Actual behavior
The image is not drawn, either the last viewed or first image in gallery is displayed instead. The duplicate multi-view has a blank canvas.
Additional context
No response
Root cause:
QImage(path)implicitly loads throughQImageReaderwith Qt's default 256 MB allocation limit before our viewer downscaling runs. A 1569x42895 image needs ~256.7 MB at 4 bytes/pixel — just over that limit — so Qt silently returns a nullQImage(no exception,isNull()just returnsTrue). That's why the viewer kept showing the previously-loaded image instead of an error, and the duplicate multi-view rendered a blank canvas.Fix (pushed to
0.2.1/issue-117-tall-image-not-rendering):ViewerImageLoadernow loads viaQImageReaderdirectly and raises the allocation limit to 1024 MB before reading, so the existing downscale-to-2048px logic still applies normally afterward. Added a regression test that reproduces the exact failing dimensions and confirms the load now succeeds and downscales correctly.Will request a PR to
mainwhen ready.Resolved on
0.2.1/issue-117-tall-image-not-rendering, PR incoming tomain:QImage(path)loads through Qt's default 256 MBQImageReaderallocation limit before any downscaling runs. The reported 1569x42895 image needs ~256.7 MB at 4 bytes/pixel — just over that limit — so Qt silently returned a null image with no exception, which is why the viewer kept showing the previously loaded image and the Duplicates Multi view showed a blank canvas. Fixed by loading viaQImageReaderdirectly with the allocation limit raised to 1024 MB.Both covered by a new regression test (
tests/test_viewer_image_loader.py) reproducing the exact failing dimensions. Closing — reopen if the PR review surfaces anything.