GNOME Bugzilla – Bug 98931
Race condition in thumbnail generation with file creation notification
Last modified: 2007-06-14 11:55:23 UTC
It sometimes happens that gthumb detects a new file exists in the current directory being monitored and begins generating the thumbnail for that file before the file has finished copying. This results in a corrupt thumbnail. Probably the best solution would be to add a timer to a "new file" event, and if the file size hasn't changed in say 100ms, it's okay to start generating the thumbnail.
Actually I see that gThumb also handles "file changed" events, so a timer isn't needed. If I 'touch' the file with the broken thumbnail, it gets regenerated. There's still clearly a race condition somewhere, though. :)
I was just about to file a new bug report on this... In the meanwhile, I navigate away from the dirs into which I am copying new photos. Thanks for the tip about 'touch'ing the files to get the correct thumbnail.
This has been fixed. The fix will be in 2.10.4 and later. See bug 432759. *** This bug has been marked as a duplicate of 432759 ***