Zoom options race condition when scrolling through images of different types
Posted: Thu May 07, 2020 8:29 pm
Xnview MP 0.96.2, Windows 10 64.
When scrolling through images of multiple types (example: .jpg, .bmp) on a slow machine/extremely quickly, the zoom options are sometimes inherited from a previous image.
My Xnview setting for handling images is 'Fit Image To Window, Large only'.
Best explained with a video:
https://streamable.com/ejhp4o
In the video, I open a small .bmp file that fits easily on screen and scroll back and forth between it and a very big .jpg file that does not fit fully on the screen, so it gets scaled down. When I do it slowly, everything works fine.
Then, I scroll wildly through the folder, causing XnView to load a bunch of big images and then quickly scroll back to the original 'small' .bmp. Now it is stretched to fit the whole screen, which should not be happening with the setting 'Fit Image to Window, Large Only'.
I've only been able to consistently reproduce it with images of different types in the same folder, this may be a problem with all .jpgs too, but this specific combination makes the bug reproduceable.
Here are my test images: https://drive.google.com/file/d/1b-8gkJ ... sp=sharing
You can see in the video that i copied the fish image over a bunch of times to make it easier to scroll through a bunch of files fast, but I was able to reproduce it with just one copy too. Test on a slow hard drive.
When scrolling through images of multiple types (example: .jpg, .bmp) on a slow machine/extremely quickly, the zoom options are sometimes inherited from a previous image.
My Xnview setting for handling images is 'Fit Image To Window, Large only'.
Best explained with a video:
https://streamable.com/ejhp4o
In the video, I open a small .bmp file that fits easily on screen and scroll back and forth between it and a very big .jpg file that does not fit fully on the screen, so it gets scaled down. When I do it slowly, everything works fine.
Then, I scroll wildly through the folder, causing XnView to load a bunch of big images and then quickly scroll back to the original 'small' .bmp. Now it is stretched to fit the whole screen, which should not be happening with the setting 'Fit Image to Window, Large Only'.
I've only been able to consistently reproduce it with images of different types in the same folder, this may be a problem with all .jpgs too, but this specific combination makes the bug reproduceable.
Here are my test images: https://drive.google.com/file/d/1b-8gkJ ... sp=sharing
You can see in the video that i copied the fish image over a bunch of times to make it easier to scroll through a bunch of files fast, but I was able to reproduce it with just one copy too. Test on a slow hard drive.