Crash on "invalid" file\file extension

Bugs found in XnView Classic. Please report only one bug per topic!

Moderators: helmut, XnTriq, xnview

Post Reply
GulDukat
Posts: 13
Joined: Tue Mar 27, 2007 10:39 am

Crash on "invalid" file\file extension

Post by GulDukat »

Hi,

After some puzzling I discovered why my xnview kept crashing on a certain folder. It seems I accidentally renamed a .jpg to a .raf (fujifilm raw file) at some point. This caused xnview to crash while indexing the directory. It also prompted a data execution prevention by windows xp when I tried clicking it in explorer ( I have the right-click thumbnail preview by xnview enabled in windows explorer, so I think this is related).

After I figured out how to isolate the file on the command prompt, I renamed it to a jpeg and everything is ok again.

So this is more a robustness matter then a bug. Everything works OK and the error was on my side. I know of programs that can determine which codecs are needed for movies and such, I bet the same exists for image files. Perhaps xnview can check and report a faulty file data\extension combination and prompt to rename it?

OR.....more to the source of the problem, warn when files of different extensions are renamed to files of the same extension.


In case you are interested, this is the error report generated by windows :)

edit: it seems I can't enter this here
Take the time to appreciate the nature around you.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "bug": crash on "invalid" file\file

Post by xnview »

GulDukat wrote:Hi,

After some puzzling I discovered why my xnview kept crashing on a certain folder. It seems I accidentally renamed a .jpg to a .raf (fujifilm raw file) at some point. This caused xnview to crash while indexing the directory. It also prompted a data execution prevention by windows xp when I tried clicking it in explorer ( I have the right-click thumbnail preview by xnview enabled in windows explorer, so I think this is related).
Ok, i'll check
Pierre.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: "bug": crash on "invalid" file\file

Post by xnview »

Could you send me the jpeg file that you have renamed?
Pierre.
GulDukat
Posts: 13
Joined: Tue Mar 27, 2007 10:39 am

Post by GulDukat »

Did you receive it? Your question makes me think you couldn't replicate the problem?
Take the time to appreciate the nature around you.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

GulDukat wrote:Did you receive it? Your question makes me think you couldn't replicate the problem?
No i haven't received it
Pierre.
GulDukat
Posts: 13
Joined: Tue Mar 27, 2007 10:39 am

Post by GulDukat »

I sent it to <!-- removed //--> with the subject "jpeg file I renamed".
Take the time to appreciate the nature around you.
User avatar
xnview
Author of XnView
Posts: 46238
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Post by xnview »

GulDukat wrote:I sent it to <!-- removed //--> with the subject "jpeg file I renamed".
Ok, i have it now
Pierre.
GulDukat
Posts: 13
Joined: Tue Mar 27, 2007 10:39 am

Post by GulDukat »

Just for the information of all:
The problem was identified as a plugin for the windows explorer shell of a program called "s7raw". It cannot handle a fake .raf file.
Take the time to appreciate the nature around you.
Post Reply