Thumbs Don't Actually Seem to Save

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
ehathgepiurhe
Posts: 34
Joined: Thu Sep 08, 2005 8:50 am

Thumbs Don't Actually Seem to Save

Post by ehathgepiurhe »

Has anyone encountered a problem where the thumbnails generated by MP don't seem to save? I have a lot of files thumbnailed, and quite often when I click onto a folder in MP which was previously thumbnailed, I scroll down the list of files only to find that MP is generating them as I scroll. I don't see this problem with XnView Classic, and the db files are there (XnView.db = 180MB, Thumb.db = 1.90GB).

Most of the time, the folders are fine - I click on them, and the thumbs show instantly. It is just seemingly at random that MP decides the thumbs need to be generated again (I set 'memory usage for database engine' to 500MB instead of the default 50MB, thinking that might fix the problem - but it doesn't).
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Thumbs Don't Actually Seem to Save

Post by m.Th. »

In Tools | Settings | Database:

1. 'Enable Thumbnail Caching' is checked?
2. 'Maximum size for cached thumbnails' is UNchecked?

Btw, setting 'memory usage for database engine' doesn't have any effect on this. It just makes the things MUCH faster in certain scenarios. (50MB IMHO is a little bit conservative).
ehathgepiurhe wrote:Has anyone encountered a problem where the thumbnails generated by MP don't seem to save? I have a lot of files thumbnailed, and quite often when I click onto a folder in MP which was previously thumbnailed, I scroll down the list of files only to find that MP is generating them as I scroll. I don't see this problem with XnView Classic, and the db files are there (XnView.db = 180MB, Thumb.db = 1.90GB).

Most of the time, the folders are fine - I click on them, and the thumbs show instantly. It is just seemingly at random that MP decides the thumbs need to be generated again (I set 'memory usage for database engine' to 500MB instead of the default 50MB, thinking that might fix the problem - but it doesn't).
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
ehathgepiurhe
Posts: 34
Joined: Thu Sep 08, 2005 8:50 am

Re: Thumbs Don't Actually Seem to Save

Post by ehathgepiurhe »

Hi,

Enable thumbnails is checked, and maximum size is un-checked, so that seems ok. As I say, most of the thumbs have saved, it is just that MP seems to forget that the folder it is reading from was already thumbnailed and goes through and thumbs it again.

Thanks.
Jpalm
Posts: 10
Joined: Mon Jul 12, 2010 12:40 pm

Re: Thumbs Don't Actually Seem to Save

Post by Jpalm »

Ditto here. I found if MP is open this hapens. Close MP before saving and see if that helps.
ehathgepiurhe
Posts: 34
Joined: Thu Sep 08, 2005 8:50 am

Re: Thumbs Don't Actually Seem to Save

Post by ehathgepiurhe »

Jpalm wrote:Close MP before saving and see if that helps.
If you don't mind me asking, how exactly do you mean? My only theory at the moment - which I haven't tested - is that MP does not like video and images files in the same folder. XnView has long had issues with thumbnailing video files, and I need to test it with folders of image files only and see if the problem occurs there as well.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Thumbs Don't Actually Seem to Save

Post by m.Th. »

ehathgepiurhe wrote:
Jpalm wrote:Close MP before saving and see if that helps.
If you don't mind me asking, how exactly do you mean? My only theory at the moment - which I haven't tested - is that MP does not like video and images files in the same folder. XnView has long had issues with thumbnailing video files, and I need to test it with folders of image files only and see if the problem occurs there as well.

Ahaaaa! ....mmmm... ...hmmm.... mhm... Perhaps an internal exception/error which rollbacks the transaction which stores the thumbs in the DB???
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
ehathgepiurhe
Posts: 34
Joined: Thu Sep 08, 2005 8:50 am

Re: Thumbs Don't Actually Seem to Save

Post by ehathgepiurhe »

Or possibly the new database format in MP is just not robust enough. All I know so far is that:

1. Doesn't happen with classic, only MP.
2. So far, have only seen it on folders with both video and image files. Haven't yet seen it on a folder that contains images only.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Thumbs Don't Actually Seem to Save

Post by xnview »

the thumbs regenerated are only for videos??
Pierre.
User avatar
m.Th.
XnThusiast
Posts: 1676
Joined: Wed Aug 16, 2006 6:31 am
Contact:

Re: Thumbs Don't Actually Seem to Save

Post by m.Th. »

Or possibly the new database format in MP is just not robust enough.
Not quite. It is (one of) the most robust DB formats available in the world: SQLite3.

Most probably the problem is somewhere in a higher layer.

As an aside, if the DB gets corrupted, the checks inside of the DB engine will throw errors.
m. Th.

- Dark Themed XnViewMP 1.7.1 64bit on Win11 x64 -
Jpalm
Posts: 10
Joined: Mon Jul 12, 2010 12:40 pm

Re: Thumbs Don't Actually Seem to Save

Post by Jpalm »

MP64 doesn't create SKP ever.
It will show SKP of old thumbs before update but if I work on file and save it doesn't create a thumb.
Xnview shows SKB file MP does not.
Sometimes I can it will create in Xnview fine, if it is NOT open when I save.
MP 64 worked fine until update.
MP64 Regenerate thumbs doen't work all but Xnview does.
MP create thumbs for 3DS, XNview does not
So I need to use both.
ehathgepiurhe
Posts: 34
Joined: Thu Sep 08, 2005 8:50 am

Re: Thumbs Don't Actually Seem to Save

Post by ehathgepiurhe »

xnview wrote:the thumbs regenerated are only for videos??
No, the thumbs are being regenerated for both images and video. Well, at least I am sure about the images. I am not absolutely sure about the video to be honest - when video thumbnailing works so unreliably in XnView (both classic and MP), it's hard to tell with the thumbs for those.

The only reason why I am using MP by the way is that Classic has no 64bit version. That's actually important in this case - the size of my image collection means Classic crashes as soon as it hits 2GB memory usage - which it will as soon as I do a recursive listing - because it is only a 32bit app. Though at the moment, because MP is not saving all the thumbnails, it's rather pointless using MP as well.
User avatar
xnview
Author of XnView
Posts: 46235
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Thumbs Don't Actually Seem to Save

Post by xnview »

ehathgepiurhe wrote: The only reason why I am using MP by the way is that Classic has no 64bit version. That's actually important in this case - the size of my image collection means Classic crashes as soon as it hits 2GB memory usage - which it will as soon as I do a recursive listing - because it is only a 32bit app. Though at the moment, because MP is not saving all the thumbnails, it's rather pointless using MP as well.
Do you have the problem in a folder with only image files??
Pierre.
ehathgepiurhe
Posts: 34
Joined: Thu Sep 08, 2005 8:50 am

Re: Thumbs Don't Actually Seem to Save

Post by ehathgepiurhe »

xnview wrote:Do you have the problem in a folder with only image files??
Not that I've seen. I will keep looking just in case - there are a lot of folders to look through and I haven't checked nearly all of them - but so far, I've only encountered it on folders with both images and video. It's not all thumbs in those folders - if I open a folder, I will see that the thumbs up the top of the folder are still there, but if I scroll down through the folder, I will eventually encounter a spot where from there on, the thumbs are no longer available.

As soon as I hit this spot, there is a short delay, and suddenly XnView generates the thumbs again (I guess it knows where I am viewing in the folder, and if there are no thumbs there, it generates them first). One thing I want to check is if the affected thumbs are only after the first video file in the folder. If the thumbs before the first video file are ok, and the thumbs after that same file are not, it would be a pretty strong indication that the video files are the problem.
Post Reply