0.79: Folder handle not released in XnViewMP

Older bugs which are supposed to be fixed in 0.84. *** Please try to reproduce your bug and confirm the bug fix. ***

Moderator: Dreamer

Post Reply
User avatar
Posts: 118
Joined: Fri Dec 30, 2011 7:08 pm

0.79: Folder handle not released in XnViewMP

Post by CreativeWorld » Sat Apr 09, 2016 11:22 pm

This is in reference to http://www.xnview.com/mantisbt/view.php?id=588, but provides more information and instructions on how to reproduce the bug.
In XnViewMP 0.79, folder handles of sub-folders are not released, preventing deletion/moving of the parent folder.

Here is how to reproduce the bug:

1) Create the following folder structure in Windows File Explorer (not in XnView itself!): Main -> Parent -> Child
2) In the XnViewMP tree pane, navigate to the "Main" folder.
3) Switch to the XnViewMP thumbnail pane, enter the "Parent" Folder, and then enter the "Child" folder.
4) Still in the thumbnail pane, move up (".." or "up arrow icon") one level into the "Parent" Folder, and then up again into the "Main" Folder
5) In the "Main" folder, delete the "Parent" folder by pressing the "del" key.
=> XnViewMP cannot delete the "Parent" folder, because it did not close the file handle of the "Child" folder. This can be seen in Process Explorer.
In addition, the "Parent" folder will disappear from the thumbnail pane (as if it was deleted), but it will still be shown in the tree pane. The CPU-use of XnViewMP will increase to 100 %.

Note that this bug does not occur, if the "Parent" folder is deleted from within the tree pane, or if you navigated to the "Child" folder directly in the tree pane and then switched to the thumbnail pane. If you created the folder structure with XnViewMP instead of Windows File Explorer, you have to restart XnViewMP and start at step 2), in order to provoke the bug.

I hope this helps fixing this bug. XnView is awesome, and I love that you took the idea further with XnViewMP on other operating systems than Windows!

User avatar
Author of XnView
Posts: 31881
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: [bug] Folder handle not released in XnViewMP 0.79

Post by xnview » Tue Apr 19, 2016 1:42 pm

See Issue 846 for current status and details.

User avatar
Posts: 8172
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: [bug] Folder handle not released in XnViewMP 0.79

Post by helmut » Sun Feb 26, 2017 4:47 pm

According to the bug tracker, issue 846 is supposed to be fixed while issue 588 is still open.

@CreativeWorld: Could you please check with the latest XnView MP 0.84 and post your result, here?

Post Reply