Version: 0.11.0-svn (using 4.2.2 (KDE 4.2.2), MinGW 3.4.5) Compiler: gcc.exe OS: Microsoft Windows (i686) release 5.1 (XP Professional) Every time I start digiKam on Windows all thumbnails have to be regenereted. On Linux the thumbnails are saved between sessions so that next time I start digiKam the thumbnails are there from the start.
Confirming. I spend over 1h to generate all thumbnails and after restart there was nothing :( Problems with finding/creation of .thumbnails directory? In my case it was created by GIMP.
I confirm this bug under M$ Vista too... Gilles Caulier
Marcel, It sound like a similar problem fixed with commit #941531 in others digiKam parts: http://websvn.kde.org/?view=rev&revision=941531 Of course commit #941531 do not include digikam/libs/threadimageio where i suspect problem is located. Gilles
ok, I am currently working on this bug - the problem seems to be that renaming the temporary files doesn't work as expected: in my .thumbnails folder hundreds of kde-tmp-????.png files do exist. these are the generated thumbnails, but they should instead be named as the md5 hash of the orginal file name.
SVN commit 964603 by sengels: fix thumbnailing: the problem was that KTemporaryFile kept the file in use, so renaming didn't work under Windows. I fixed this bug already twice - the same code is spread all over KDE, so it might make sense if we can unify that using previewjob from kdelibs/kio. BUG:189742 M +10 -3 thumbnailcreator.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=964603
Mik, David, I think this bug is fixed under Windows (I will test at home on XP and Vista this WE) Gilles
It does not work, at the moment broken on both Windows and Linux. There is an missing temp.setAutoRemove(false); David
SVN commit 965527 by cgilles: Temp file don not be deleted automatically. It's renamed just after... Tested under Linux. Look like thumbs is really faster now. Sound like we have this bug since KDE4 port is started (summer 2007) CCBUGS: 189742 M +1 -4 thumbnailcreator.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=965527
Reopened since the new code in ThumbnailCreator::storeFreedesktop has the same behavior. The KTemporaryFile object has to be destroyed before renaming the file, Windows doesn't allow renaming of open file. Attached patch fixes the problem.
Created attachment 34693 [details] Patch to fix renaming of thumbnail
SVN commit 1059431 by mwiesweg: Close file before moving. According to bug report seems to be necessary for Windows. Note: With thumbs db the default, this code is not much used. BUG: 189742 M +2 -0 thumbnailcreator.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1059431