kanryu / quickviewer

A image/comic viewer application for Windows, Mac and Linux, it can show images very fast
https://kanryu.github.io/quickviewer/
GNU General Public License v3.0
536 stars 63 forks source link

Freeze when opening an image with wrong extension #133

Open SuperUserNameMan opened 4 years ago

SuperUserNameMan commented 4 years ago

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 :

SuperUserNameMan commented 4 years ago

Related to #79 I guess

kanryu commented 4 years ago

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.