Page 1 of 1

Bug: crash when deleting empty folder

Posted: Mon Jun 16, 2014 6:09 pm
by Subransu
XnView MP v0.68 64bits on Win7

I'm in a folder that contains other subfolders
I create a new folder and don't rename it, keep the name New Folder 1
I go to one of the subfolders and copy a file into New Folder 1
I go to New Folder 1 and delete the file, New Folder 1 is now empty again
I right-click on New Folder 1 and say delete, I click yes in the confirmation box
Program crashes. Both when virus scanner is enabled or disabled.
Starting XnView MP and I see that the folder has been deleted.

Re: Bug: crash when deleting empty folder

Posted: Tue Jun 17, 2014 9:13 am
by m.Th.
It happens to you every time?

Re: Bug: crash when deleting empty folder

Posted: Tue Jun 17, 2014 9:54 am
by Subransu
I had a friend do the same test and he could not reproduce the problem, which made me think what could be different. I realised my images are on a FAT32 drive. I tried the test on a NTFS drive and could not reproduce it either.

So it only happens on a FAT32 drive. I did the same test on a FAT32 USB-stick and could reproduce it 4 out of 6 tests. It looks like I get a crash when I create a folder, select that folder, drag a file in there. Then go to a different folder, go to the new folder again and delete the image. Then delete the empty folder while it is still selected.

As a work around I now know I don't get a crash if I un-select the folder first (so the right pane shows a different folder) and then right-click on the folder I want to delete.

Now while performing these tests I ran into another issue: each time when I start XnView I get a Error popup saying "File can't be loaded"

Was caused by having a tab which pointed to the missing file. :D