Bug 171310 - No preview photos shown clicking on imported albums
Summary: No preview photos shown clicking on imported albums
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Image (show other bugs)
Version: 0.10.0
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-19 10:52 UTC by René Krell
Modified: 2009-07-27 09:41 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description René Krell 2008-09-19 10:52:25 UTC
Version:           0.10.0-beta3 (using 4.1.2 (KDE 4.1.1 (KDE 4.1 >= 20080828)) "release 52.1", KDE:KDE4:Factory:Desktop / openSUSE_11.0)
Compiler:          gcc
OS:                Linux (i686) release 2.6.25.16-0.1-default

In $HOME/Pictures I have a directory tree with photos in different subdirectories.
Using digikam 0.10.0-beta3, there are no photo previews of existing image files in albums, if I click on the albums imported from a file tree. On the right side I see only the "Welcome to digiKam 0.10.0-beta3" page, nothing else in neither album.
"Refresh" and "Synchronize images with database" does not help.
Futhermore, I deleted my .digikamrc and started from scratch, again using $HOME/Pictures as root path for albums and the image database, too. No effect.
Comment 1 René Krell 2008-09-19 10:54:29 UTC
Redirecting the digikam-0.9.4 for KDE3 to $HOME/Pictures the preview works fine.
Comment 2 caulier.gilles 2008-09-19 11:12:52 UTC
René. 

There is a side effect somewhere. To solve this problem, go to tags view and go back to album view. thumbs appears ?

Look also in the console if some error messages are visible.

At end, try to use current code from svn (beta4) where Marcel has fixed a lots of code relevent of Digikam::AlbumManager core component.

Gilles Caulier
Comment 3 René Krell 2008-09-19 11:26:47 UTC
Hi Gilles,

After starting digikam without doing anything:
---
Found dcraw version: 8.87
File '' is not readable.
---

Switching between the tags view and the album view doesn't have influence on this. Nothing happens on console during doing so.

On "Tag" -> "New" I get a popup with
Create new tag in "/".
On the console I get another
---
File '' is not readable.
---
but only once, not more times.

Tell me if I can provide you more information.

René
Comment 4 René Krell 2008-09-19 11:30:27 UTC
Oh sorry, you are right.
I tried only the "Caption/Tags" on the right side.
Checking the real "Tags" view and returning to the album view the preview is shown.
Sorry, I'm still not fit with the new Digikam features ;-)
Comment 5 caulier.gilles 2008-09-19 11:37:08 UTC
René,

This is a bug of course (:=)))

Marcel,

As you see this dysfunction from AlbumManager ?

Gilles
Comment 6 Andi Clemens 2008-09-19 11:45:54 UTC
I can confirm this, too. Neither a imported folder nor freshly detected image albums (by scan for new images) do appear in the album view. Of course I'm using latest trunk.
The same for is true when adding new album collections.
By the way: What is the purpose of giving names to the collections? They will be renamed anyway. Or am I misunderstanding this.
Comment 7 Andi Clemens 2008-09-19 11:47:15 UTC
Just wanted to mention that a restart of digiKam will display those new albums...
Comment 8 Marcel Wiesweg 2008-09-19 14:07:42 UTC
SVN commit 862616 by mwiesweg:

Restore these lines. I copied them and then inadvertently deleted them.

BUG:171310


 M  +2 -0      albummanager.cpp  


--- trunk/extragear/graphics/digikam/digikam/albummanager.cpp #862615:862616
@@ -2086,6 +2086,8 @@
     {
         case AlbumChangeset::Added:
         case AlbumChangeset::Deleted:
+            if (!d->scanPAlbumsTimer->isActive())
+                d->scanPAlbumsTimer->start();
             break;
         case AlbumChangeset::Renamed:
         case AlbumChangeset::PropertiesChanged:
Comment 9 Andi Clemens 2008-09-19 15:42:42 UTC
Hmm for me this still isn't fixed...
Comment 10 Andi Clemens 2008-09-22 15:37:39 UTC
Marcel,

is it really working for you now? I just tried it again in a pure KDE4 desktop as well as in a KDE3 environment, freshly imported albums and images don't appear.
I need to restart digiKam to see them.

Andi
Comment 11 Marcel Wiesweg 2008-09-23 14:02:24 UTC
Ok, I did fix a bug, but apparently not this one.
I can currently crash digikam by using Import->Add Images, and Image->Add Folders is not working for me. These are bugs of course.
What works is just copying over a folder from the command line outside digikam. This works well for me, the album and the contained picture appears when scanned. Does this work for you?
Comment 12 Andi Clemens 2008-09-23 14:30:40 UTC
"Add Images" or "add folders" works fine here, also copying on commandline will show the images. The only thing that is not working is adding a new collection, if I do so I need to restart digikam.
Comment 13 Andi Clemens 2008-09-23 14:32:04 UTC
Oh just found out that the new images are only visible if I copy or import them into an existing album, if I create a new one, the folder is visible but empty, just like if I had created a new collection.
Comment 14 Marcel Wiesweg 2008-09-24 14:37:39 UTC
I think I found the cause for the collection problem, a really tricky one, took a bit longer to find out: When a new collection is added, we start a complete scan, which uses a transaction; during the transaction, the changes I assume cannot yet be read from the db file, so the album is not available when the creation message comes to AlbumManager. I'll think about fixing that.

The other problem you mention in #13: How do you create the folder, from within digikam with New Album, from outside? How do you put images in there, from inside or from outside?
Comment 15 Andi Clemens 2008-09-24 14:42:36 UTC
I created the album from outside, by commandline this time, need to check if it behaves the same when creating an album inside of digikam.
Comment 16 caulier.gilles 2008-09-25 08:29:31 UTC
Marcel, CCBUG macro is not yet restored...

I CC your commit...

Gilles

SVN commit 864582 by mwiesweg:

When in a transaction, send out changesets only after completion of the
transaction, as other db connections will not be able to read the changes
so far.
Fixes the Collection-albums-empty problem for me.

CCBUG: 171310
Comment 17 Marcel Wiesweg 2008-09-25 14:40:24 UTC
SVN commit 864774 by mwiesweg:

Among some minor changes, fix one more stupid mistake:
Exclude the just added image from searching for identical files,
as obviously it will be falsely found otherwise, resulting in empty db entries.


 M  +14 -7     imagescanner.cpp  
Comment 18 Andi Clemens 2008-09-28 11:29:50 UTC
Hi Marcel,

it seems to be fixed for me here, too. I'll close it again...
Comment 19 Marcel Wiesweg 2008-09-28 14:44:36 UTC
Thanks for testing Andi. I did find some bugs now but didnt do extensive testing myself. If anyone finds further problems in this area, please report again.