Page 1 of 1

0.86: Crash deleting file on empty folder on fullscreen

Posted: Mon May 08, 2017 11:24 am
by JMM72
XnViewMP 0.86 64 bit, under Windows 7 64 bit.

If you accidentally hit 'delete file' key again after deleting the last file on a folder, XnView crashes. To reproduce:

1. Open XnViewMP and go to a folder with few files you want to delete.
2. Enter full screen mode.
3. Delete each image using the 'delete file' key shortcut until you reach the last file.
4. Delete it too. Then press 'delete file' again.
5. Witness the crash.

I guess it'll be a pretty easy thing to fix ^_^

Re: Crash deleting file on empty folder on fullscreen

Posted: Mon May 08, 2017 12:29 pm
by helmut
Thank you for the bug report, JMM72. I could reproduce the problem.

> 2. Enter full screen mode.
For entering the fullscreen mode you open the image in viewer. Then open the image in fullscreen mode.

:arrow: Reproduced.

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Tue May 09, 2017 10:29 am
by ckit
I can confirm as well, XnView crash reporter is invoked!

Re: Crash deleting file on empty folder on fullscreen

Posted: Wed Jun 07, 2017 12:40 pm
by xnview
helmut wrote:Thank you for the bug report, JMM72. I could reproduce the problem.

> 2. Enter full screen mode.
For entering the fullscreen mode you open the image in viewer. Then open the image in fullscreen mode.

:arrow: Reproduced.
I can't reproduced, 'Delete' is not greyed??

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Sun Jun 11, 2017 4:23 pm
by Theobald93
Use the DEL-key on your keyboard. XnView always crashes when double-deleting the last file.
"Delete" is greyed.

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Sun Jun 11, 2017 5:05 pm
by xnview
Theobald93 wrote:Use the DEL-key on your keyboard. XnView always crashes when double-deleting the last file.
"Delete" is greyed.
you open XnViewMP, open an image file, fullscreen, delete the only file in this folder by pressing del key, and you press del key again?

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Mon Jun 12, 2017 9:30 am
by Theobald93
Yes.

It happens in the Fullscreen and the Viewer Mode.
If you have X images in the folder and delete all X images and delete the last one "twice", xnViewMP crashes.

e.g. 2 images in a Folder:
Opening xnView by doubleclicking a image
xnview starts in viewer mode and displays the image
pressing DEL key
security message: Do you really want to delete the image?
Pressing yes: XnView deletes the first image
Xnview loads and displays the second image
pressing DEL key
security message: Do you really want to delete the image?
Pressing yes: XnView deletes the second image
XnView still displays the second image
Delete is grayed in the context menu
pressing DEL-key => CRASH!

Tested with Win7 64bit and Win10 64bit.

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Mon Jun 12, 2017 2:54 pm
by xnview
Theobald93 wrote:Yes.

It happens in the Fullscreen and the Viewer Mode.
If you have X images in the folder and delete all X images and delete the last one "twice", xnViewMP crashes.
please send me your xnview.ini?

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Tue Jun 13, 2017 6:33 pm
by Theobald93
Here you go.

P.S.:I deleted the history infos in the config. Error still occures so...

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Sat Jul 08, 2017 1:02 pm
by xnview
This problem is supposed to be fixed in XnView MP 0.87. Please check and confirm the bug fix here.

Re: 0.86: Crash deleting file on empty folder on fullscreen

Posted: Sun Jul 09, 2017 1:24 pm
by Theobald93
Del key is blocked after deleting the last file -> no Crash possible -> fixed!