XnViewMp for Mac file delete failure

*** Please report new bugs here! ***

Moderator: Dreamer

bdesmet
Posts: 14
Joined: Thu Apr 10, 2014 7:29 pm

XnViewMp for Mac file delete failure

Post by bdesmet » Mon Aug 18, 2014 6:51 pm

I am using XnViewMp 0.68 on Mac OS X 10.8.5

- Go to browse mode
- Select a picture from the list
- Right mouse click and choose Delete from the context menu
- Confirm the delete
- Nothing happens mostly, sometimes it works

I already did a lot of investigation to find the exact circumstance for the delete failure scenario, but I can't find it. I tested clearing the database, miniatures, I compared file attributes and read/write grants of image files, but I couldn't find a clear cause. I have no idea why one file gets deleted properly and another not.

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

Re: XnViewMp for Mac file delete failure

Post by xnview » Tue Aug 19, 2014 1:28 pm

no message? jpeg file?
Pierre.

bdesmet
Posts: 14
Joined: Thu Apr 10, 2014 7:29 pm

Re: XnViewMp for Mac file delete failure

Post by bdesmet » Tue Aug 19, 2014 6:29 pm

Indeed, no message.

You choose delete. You have to confirm the delete with a dialog box. And nothing happens, the picture remains selected and is not removed.

I did the test with jpg files on XnViewMP 0.68 for Mac.

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

Re: XnViewMp for Mac file delete failure

Post by xnview » Mon Aug 25, 2014 1:45 pm

Do you have always this problem?? I've tried on 10.8.5, and no problem, the jpeg file is removed...
Pierre.

bdesmet
Posts: 14
Joined: Thu Apr 10, 2014 7:29 pm

Re: XnViewMp for Mac file delete failure

Post by bdesmet » Thu Aug 28, 2014 5:03 pm

The delete failure happens "sometimes".

I already did a lot of investigation to find the exact circumstance for the delete failure scenario, but I can't find it. I tested clearing the database, miniatures, I compared file attributes and read/write grants of image files, but I couldn't find a clear cause. I have no idea why one file gets deleted properly and another not.

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

Re: XnViewMp for Mac file delete failure

Post by xnview » Fri Aug 29, 2014 12:05 pm

same file format?
Pierre.

bdesmet
Posts: 14
Joined: Thu Apr 10, 2014 7:29 pm

Re: XnViewMp for Mac file delete failure

Post by bdesmet » Mon Sep 01, 2014 8:18 am

yes, all jpg.

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

Re: XnViewMp for Mac file delete failure

Post by xnview » Tue Sep 02, 2014 7:15 am

bdesmet wrote:yes, all jpg.
could you try that:
* select a file
* wait 5-10 sec
* delete it

works?
Pierre.

bdesmet
Posts: 14
Joined: Thu Apr 10, 2014 7:29 pm

Re: XnViewMp for Mac file delete failure

Post by bdesmet » Sun Sep 07, 2014 10:25 am

No, waiting 15 sec between select and delete did solve the issue.

I cannot find a logical pattern about when a delete is successful and when not.

For the moment, delete works "sometimes".

Redfern
Posts: 12
Joined: Sat Feb 07, 2009 6:59 pm

Re: XnViewMp for Mac file delete failure

Post by Redfern » Thu Sep 11, 2014 11:19 pm

Hello, its same situation with XnviewMP 0.68 and Ubuntu 14.04 64bit - XnviewMP never actually delete files.

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

Re: XnViewMp for Mac file delete failure

Post by xnview » Wed Sep 17, 2014 8:49 am

bdesmet wrote:No, waiting 15 sec between select and delete did solve the issue.
I cannot find a logical pattern about when a delete is successful and when not.
For the moment, delete works "sometimes".
is it a big jpeg file?
Pierre.

bdesmet
Posts: 14
Joined: Thu Apr 10, 2014 7:29 pm

Re: XnViewMp for Mac file delete failure

Post by bdesmet » Thu Oct 02, 2014 6:03 pm

I identified the root cause, or least I think I'm getting close: delete failes systematically if the filename contains a whitespace.

e.g. example of delete failure on: /my picture.jpg
e.g. example of delete success on: /my_picture.jpg

This test case is reproducible.

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

Re: XnViewMp for Mac file delete failure

Post by xnview » Fri Oct 03, 2014 1:54 pm

bdesmet wrote:I identified the root cause, or least I think I'm getting close: delete failes systematically if the filename contains a whitespace.

e.g. example of delete failure on: /my picture.jpg
e.g. example of delete success on: /my_picture.jpg

This test case is reproducible.
do you have a file "my picture.jpg" in your trash?
Pierre.

bdesmet
Posts: 14
Joined: Thu Apr 10, 2014 7:29 pm

Re: XnViewMp for Mac file delete failure

Post by bdesmet » Sat Oct 11, 2014 12:35 pm

Good question. This made me discover something else.

1. I empty my Mac OS X Trash can entirely.
2. I delete an image file 'my test.jpg'. Works perfectly. (So, the root cause is probably not related to spaces in filenames.)
3. I keep the removed 'my test.jpg' in my Trash Can.
4. I try to delete another file with the same name 'my test.jpg'. And here the delete failes. My Trash Can still only contains the deleted 'my test.jpg' from step 2.
5. I empty the Trash Can.
6. I retry the delete of step 4. Now the delete is succesful.

Best regards

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

Re: XnViewMp for Mac file delete failure

Post by xnview » Mon Oct 13, 2014 8:47 am

bdesmet wrote:Good question. This made me discover something else.
Do you have always this problem with 0.69?
Pierre.

Post Reply