I have directory with *.jpg and *.webp files.
Every *.jpg has a thumbnail.
No one of *.webp files has a thumbnail... or... has? It appears when I rename a file... Or go directory up and then inside, back.. Other disappear on renaming... BBrrrrr... I don't understand anything.
Designs
Child items
...
Show closed items
Linked items
0
Link issues together to show that they're related.
Learn more.
This happened with some of my large (5-20GB) .mkv files
I went to /etc/xdg/tumbler/tumbler.rc and changed the MaxFileSize for FfmpegThumbnailer to 0 (default was around 2GB?), and now the thumbnails that showed for a split second either stick, or new ones are generated.
I guess the ones that showed before being hidden were cached from before a limit was added or something.
I think the flashing problem comes from Thunar, although Tumbler should do something more in this case in my opinion (see below). The general configuration of the problem should be as follows:
a thumbnail was generated for a certain uri in the past, and it was not deleted;
a new request is sent to Tumbler for this same uri, but this time it fails to generate the thumbnail for some reason;
Tumbler now returns an error for any new request for this uri (if the content it points to does not change), but the old thumbnail is still present on disk.
Therefore, if the client uses the thumbnail that is still in the cache while waiting for Tumbler to respond when it sends a request for that uri, it will flash: the old thumbnail will be displayed while Tumbler responds, and then the default icon will be displayed.
I think that's what Thunar does, and I know that's what Ristretto does (although the flashing would only happen once in this case, since recent changes, because there is no more new request sent in case of error).
This can typically be reproduced by copying a video file of more than 2 GiB into an isolated directory, with the default Tumbler configuration: a thumbnail is generated for the file before it passes the 2 GiB mark, then beyond Tumbler exits in error because the video plugins are disabled. When you then press F5, it flashes.
I think it would be reasonable for Tumbler to make sure that any thumbnails are removed from the cache in case of an error, since they are now invalid. There is nothing in the specs about this as far as I know, but it seems to be its job. Especially since it is reasonable for the client to have the behavior described above.