Summary: | No images shown after upgrading from previous version image database | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | doma <kretebe> |
Component: | Database-Schema | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, dev+kde, Klaus.Weidenbach, marcel.wiesweg |
Priority: | NOR | ||
Version: | 1.1.0 | ||
Target Milestone: | --- | ||
Platform: | openSUSE | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 1.2.0 | |
Sentry Crash Report: |
Description
doma
2010-02-14 17:55:13 UTC
This sounds exactly like the problem I posted yesterday in digikam-devel. I can confirm this. I use KDE 4.3.4 and upgrading from digiKam 0.9.6. I can add these observations to the ones already in the report: Calender view only shows the numbers of video and sound files in parentheses and I can see these videos items there only, no pictures. The same for Timeline view. Tags view shows the correct numbers of all items in parentheses, but I just see videos. If I go to Searches and search for something I see the pictures that fit to my search! I can confirm Klaus' observations it is the same with me, videos show correctly, with proper thumbnails. Marcel, KIOSlave or Database relevant ? Gilles When choosing "Create new Database" (this is how I use it for now) digikam does a full rebuild from scratch - everything works properly. This tells to me that nor KIOSlave neither Database is likely to be of any relevance. This must be something to to with the upgrade itself. Gilles, it's not the ioslaves, because new pictures are displayed. Klaus will send me his database. Currently I dont know what's wrong here. Ok, this is an interaction between a change in the ImageScanner (to not overwrite the rating on rescan) and the schema update. Noone has tested schema update recently. The only problem is that there is no entry in the ImageInformations table. The ImageScanner now uses UPDATE instead of REPLACE. It is almost fortunate that anyone hit by this bug will notice instantly ;-) SVN commit 1090694 by mwiesweg: For now just add the ImageInformation entry when schema upgrading. A better solution (update or insert) in the Image scanner leads to the SQL "upsert" problem, for which I found no good solution for SQLite. CCBUG: 226853 M +9 -0 schemaupdater.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1090694 Klaus or doma, can you test current SVN? Remove your digikam4.db and re-upgrade. I hope it works then. Am checking it out from SVN, takes a decent while. I may not have a proper build environment but will give it a try. In the meanwhile are you basically saying that a "REPLACE INTO ImageInformation (imageId) SELECT id FROM Images;" query will do the trick after the conversation as a quick workaround? I couldn't test SVN yet. Have to prepare some things first. But I patched 1.1.0 sources and it is not working there: "The schema updating process from version 4 to 5 failed, caused by an error that we did not expect...." But the SVN file also looks bit different, so I will try with SVN next, but I don't think I can do it before next weekend. Did the conversion again. Then executed: REPLACE INTO ImageInformation (imageId) SELECT id FROM Images; Now it works flawlessly thanks. Compiling from source is beyond my possibilities now. Thanks again. Doma, you will probably not have got your ratings and comments from the old db now (the statement need to be executed at a certain point during the conversion process) SVN commit 1091099 by mwiesweg: Hope this works now. CCBUG: 226853 M +1 -5 schemaupdater.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=1091099 Klaus: patching 1.1.0 is sufficient. Please try with this corrected patch. The new patch against 1.1.0 seems to work. The import was successful and I can see now all pictures in all views. Tags and ratings seem to be there, too. As far as I can see this bug is fixed. Thank you very much! I backed up the tables changed after my initial conversion, chechked out from SVN, compiled and did the conversion again. I can confirm it works for all items. Thanks. *** Bug 230606 has been marked as a duplicate of this bug. *** |