Linux: Unable to delete cached directory

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

Moderators: helmut, XnTriq, xnview, Dreamer

Post Reply
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Linux: Unable to delete cached directory

Post by rmtk »

I found that I can not delete any directory items in Settings-Browser-Catalog-CachedDirectory, even for deleted directories. All deleted directories reappear when I open settings again.

This bug seems to be Linux specific. On Windows I can delete cached directories successfully.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: Linux: Unable to delete cached directory

Post by rmtk »

And the thumbnails of deleted files seem to be never removed.

For example, if you remove 2 images from a folder containing 10 images and then click rebuild thumbnails, the cache list would show there are still 10 files in the folder. Even if you then add 3 images into the folder, the cache list would show there are now 13 files in the folder, instead of 11 files actually.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: Linux: Unable to delete cached directory

Post by rmtk »

I clicked the optimize button and selected only "remove empty directories", the nonexist cached directory items were not removed.
Then I selected "check for orphaned directories" and "check for orphaned files", all cached directories were gone... :( But the two files Thumb.db and XnView.db are still very large, not shrinked at all.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Linux: Unable to delete cached directory

Post by xnview »

i have not the problem. Even with a clean catalog?
Pierre.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: Linux: Unable to delete cached directory

Post by rmtk »

Now I find it a very strange bug.

I can't delete the cached directories because I store the images in /home/rm/ALL/Documents/Pictures and its subfolders. If I change the folder name from Pictures to Picture or Pictures1 or Pictured, or change the location to /home/rm/ALL/Pictures, no problem at all! Please investigate it.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Linux: Unable to delete cached directory

Post by xnview »

how do you delete cached directory? You select them, and 'delete'?
Pierre.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: Linux: Unable to delete cached directory

Post by rmtk »

Yes. I tried it from a clean catolog, with Thumb.db and Xnview.db removed.
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Linux: Unable to delete cached directory

Post by xnview »

rmtk wrote:Yes. I tried it from a clean catolog, with Thumb.db and Xnview.db removed.
and xnview.ini removed?
Pierre.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Linux: Unable to delete cached directory

Post by rmtk »

No. I don't want to lose my configuration.
If you want to investigate my xnview.ini I can send you.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: Linux: Unable to delete cached directory

Post by rmtk »

It seems that sometimes cached thumbnails can be removed from "CachedDirectory" window but not actually from the database. On my friend's Windows PC, I see an empty CachedDirectory window, but the size of both Thumb.db and Xnview.db are 100MB+ .
User avatar
xnview
Author of XnView
Posts: 46362
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Linux: Unable to delete cached directory

Post by xnview »

rmtk wrote:It seems that sometimes cached thumbnails can be removed from "CachedDirectory" window but not actually from the database.
i can't repoduce :(
On my friend's Windows PC, I see an empty CachedDirectory window, but the size of both Thumb.db and Xnview.db are 100MB+ .
you need to click on optimize to reduce the size of database
Pierre.
rmtk
Posts: 175
Joined: Tue Dec 07, 2010 2:04 am

Re: Linux: Unable to delete cached directory

Post by rmtk »

Yes, optimize clean them all.
However I still have no idea why the folder /home/rm/ALL/Documents/Pictures is so strange on my computer...
Post Reply