1.5.5 - viewer - read - corrupted files

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

Moderators: xnview, Dreamer

Post Reply
User avatar
user0
XnThusiast
Posts: 2672
Joined: Sat May 09, 2015 9:37 am

1.5.5 - viewer - read - corrupted files

Post by user0 »

XnViewMP 1.5.5
Windows11 (22H2), display resolution 3840x2160, dpi scale 150%


Viewer
quirks reading corrupted files (simple examples, end parts of files were deleted and part of the header in one example)
test_img_corrupted.zip
(259.48 KiB) Not downloaded yet

issue A
1. open test folder in Browser mode
2. double-click corrupted AVIF or WEBP
they open in new instance

issue B
1. double-click corrupted file in win file explorer
xnview opens with <empty> tab and error message ('Ignore read errors' setting has no effect)
<empty> tab remains once Error message closed AND filelist is not available (not possible to navigate to any other file in folder)

expected
show corrupted filename in Viewer tab AND allow to navigate to other files in folder

issue C
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 D
0. check 'Ignore read errors' in Settings>Read
1. double-click AVIF image in win file explorer
2. wait 5 seconds
files counter in Viewer status bar will filter out corrupted files, changing from 9 to 7 files
expected
show corrupted files in Viewer filelist if 'Ignore read errors' is checked


Suggestion
  • improve reading routine
    for the error cases, eg
    • WEBP
      webp_corrupted_header.webp has corrupt header, but the image data is fine. FastStone and IrfanView open this file without problems.
      Since this is RIFF container and the data is clearly structured, maybe try to:
      - check if files is static or animation
      - read single VP8/VP8L chunk or multiple such chunks inside ANMF containers for animation.





Related
Post Reply