1.5.5 - viewer - reading corrupted files

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

User avatar
user0
XnThusiast
Posts: 1997
Joined: Sat May 09, 2015 9:37 am

1.5.5 - viewer - reading corrupted files

Post by user0 »

XnViewMP 1.5.5 64bit
Windows11 (22H2), display resolution 3840x2160, win scaling 150%


Viewer
quirks reading corrupted files (simple examples, end parts of files were deleted)
test_img_corrupted.zip

issue A
1. open test folder in Browser mode
corrupted png shows as thumbnail
2. double-click corrupted png
it does not render in Viewer


issue B
1. double-click avif image in win file explorer
2. scroll to the next file
viewer shows blank tab while scrolling corrupted images, no error message appears, tab shows prev filename


issue C
1. open test folder in Browser mode
2. double-click corrupted avif and webp
they open in new instance


issue D
1. double-click corrupted file in win file explorer
xnview opens with <empty> tab and error message
<empty> tab remains once Error message closed

guess tab shall close automatically



Suggestion
it would be better to
  • check 'Ignore read errors' by default
    (Settings > Format > Read)
    so that user can see at least part of the image
  • add popup message that there is read error
    so user is aware that file is corrupted
    Its better to use non-modal messages and style them to appear in the bottom left corner, like in web: Snack-bar, Alert



Related
You do not have the required permissions to view the files attached to this post.