infinite loop when deleting an unique file

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

Moderators: helmut, XnTriq, xnview

Post Reply
User avatar
Cortexd
Posts: 6
Joined: Thu Sep 03, 2009 4:52 pm

infinite loop when deleting an unique file

Post by Cortexd »

hi^^
there is an annoying bug when deleting the only file of a directory (and with the option "delete file goes next") : xnview is blocked in an infinite loop !
also when the deleted file is the last one, xnview stay on that file after the action instead of goes back to the previous file
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: infinite loop when deleting an unique file

Post by helmut »

Cortexd wrote:hi^^
there is an annoying bug when deleting the only file of a directory (and with the option "delete file goes next") : xnview is blocked in an infinite loop !
Couldn't reproduce this one. What are the exact steps? Do you delete in browser moder or in image view mode?
Cortexd wrote:also when the deleted file is the last one, xnview stay on that file after the action instead of goes back to the previous file
:bugconfirmed: Confirmed, could reproduce this one easily. When deleting in image view mode the deleted image remains displayed. When pressing delete again, the message "Error deleting file or folder".
User avatar
Cortexd
Posts: 6
Joined: Thu Sep 03, 2009 4:52 pm

Re: infinite loop when deleting an unique file

Post by Cortexd »

helmut wrote:Couldn't reproduce this one. What are the exact steps? Do you delete in browser moder or in image view mode?
my bad, it's little more complicated :p
you need two files and you must open the second file first (=image view mode), delete him and go back to the previous file, then delete him too

if it's not clear, I have made a little video :
http://www.dailymotion.com/video/xadxc4 ... 2-bug_tech
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: infinite loop when deleting an unique file

Post by helmut »

Cortexd wrote:
helmut wrote:Couldn't reproduce this one. What are the exact steps? Do you delete in browser moder or in image view mode?
my bad, it's little more complicated :p
you need two files and you must open the second file first (=image view mode), delete him and go back to the previous file, then delete him too
Thank you for the detailed description and the video. Performing the same steps I have no problem. I guess that there's a combintation of settings which cause the problem. In the video one can see that XnView does NOT switch to the next image file when deleting the first image.

Could you please exit XnView, temporarily rename your xnview.ini file, and try again?
User avatar
Cortexd
Posts: 6
Joined: Thu Sep 03, 2009 4:52 pm

Re: infinite loop when deleting an unique file

Post by Cortexd »

helmut wrote:In the video one can see that XnView does NOT switch to the next image file when deleting the first image.
because it's the second (and last) image file (=b.jpg, the first is a.jpg)
you must first open the second image file in alphabetical order
helmut wrote:Could you please exit XnView, temporarily rename your xnview.ini file, and try again?
I have the same bug :)
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: infinite loop when deleting an unique file

Post by xnview »

Cortexd wrote:
helmut wrote:In the video one can see that XnView does NOT switch to the next image file when deleting the first image.
because it's the second (and last) image file (=b.jpg, the first is a.jpg)
you must first open the second image file in alphabetical order
I can't reproduce, and if i open the second file, delete it, xnview loads the first one
Pierre.
Post Reply