But why do those thumbnails disappear?
For me (dt 4.2.1 under Linux) they are kept overnight (and even longer, quite a few were last modified 2 months ago or more). As I donāt use darktable-generate-cache
, those thumbnails were generated by darktable.
And, are the thumbnails actually gone, or not seen/recognised by dt?
That you cannot run darktable
and darktable-generate-cache
simultanuously is understandable: they both need read/write access to the database, so have them both running risks database corruption (SQLite isnāt designed for that use) or data loss. That you are allowed to start dt with darktable-generate-cache could be a bug?
That āsqlite3 error 5ā indicates a database lock. If thatās thrown by darktable-generate-cache
, itās very likely that the newly generated thumbnail isnāt registered in the dt database (but the image will exist on disk). Such thumbnails wonāt then be seen by darktable.
Iād suggest you make sure not to run darktable
and darktable-generate-cache
simultanuously. Also, you can try to delete the current cache, then see what happens (perhaps use only dt on a small film roll). If your newly generated thumbnails survive, you have an idea about the causeā¦
Another possible cause for ādisappearingā thumbnails could be a change in thumbnail size. Thumbnails can be generated at different sizes, by default (i.e. without parameters, darktable-generate-cache
generates 3 sizes (ā0ā, ā1ā, ā2ā, for me those have a height of 110, 225, and 450 pixels, resp.), but the size can be up to ā8ā (full size?).
And of course, it might conceivably be possible that something on your system clears caches overnight, or when they go over a certain size, or when free disk space drops below a limit, or⦠Point being that a cache can be volatile.