XnView crashes with long filename

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

Moderators: XnTriq, helmut, xnview

XnViewUser38
Posts: 8
Joined: Tue Apr 21, 2015 11:20 pm
Location: France

XnView crashes with long filename

Post by XnViewUser38 »

I am new here, so hello to all.

I am a happy user of XnView, but I recently found XnView crashes when opening some JPEG files. I tried to narrow down the cause of the crash and found it comes from the length of the filename.
There is a log in this forum, dated April 2011, reporting XnView crashes with long filenames. Answer was XnView may have problem with filename longer than 256 caracters.
Unfortunately, crashes occur with long filenames...much shorter than 256 caracters.

My configuration
-------------------
Windows 7 Pro SP1 32-bit with latest hotfixes, XnView 2.32

Problem reproduction
-------------------------

Two JPEG files with the following names :
Samsung_Evo_64GB_48MBs_C10-U1_uSDXCI#2_W7_Broway_USB3_SDXC_Reader#1_FAT32-64K_SD_slot_500MB.jpg
Samsung_Evo_64GB_48MBs_C10-U1_uSDXCI#2_W7_Broway_USB3_SDXC_Reader#1_FAT32-64K_SD_slot_500MB_2.jpg
They are located at the root directory of the drive, so no long pathname...

In Windows Explorer, I click on the first filename to open it in XnView. I then click on the second filename that opens in a second tab within the same XnView instance.
Then, clicking on the picture tabs 2 or 3 times to toggle the view makes XnView crashes or not responding...
The problem does not occur when renaming files with short names. It occurs again when renaming them back with their long names.
This is a problem for me, because I need these long filenames...So thank you to try to fix this.

Best regards
User avatar
xnview
Author of XnView
Posts: 44917
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XnView crashes with long filename

Post by xnview »

ok, right i reproduce...
Pierre.