quickviewer icon indicating copy to clipboard operation
quickviewer copied to clipboard

Freeze when opening an image with wrong extension

Open SuperUserNameMan opened this issue 5 years ago • 2 comments

Hello,

I have found that QuickViewer freezes when I open an image which has a wrong file extension.

How to reproduce : 1- pick a .webm picture and rename it to .jpg 2- open it with QuickViewer

System information :

  • QuickViewer-portable-1.1.8-x64
  • Windows 8.1 Home Edition 64 bits

SuperUserNameMan avatar Jan 15 '20 15:01 SuperUserNameMan

Related to #79 I guess

SuperUserNameMan avatar Jan 15 '20 15:01 SuperUserNameMan

QuickViewer realizes high-speed loading by executing a program optimized for each image format, and there is no plan to successfully load images with the wrong extension.

However, what you see as frozen is actually because QuickViewer is retrying to load the image several tens of times, this is a way to solve the rare case where memory allocation fails in a 32-bit environment Implemented without, it is unnecessary originally. Ideally, we want to remove these unnecessary things. Will be addressed if there is an opportunity.

kanryu avatar Jan 15 '20 16:01 kanryu