Bug 302663 - Thumbnails are often shown empty
Summary: Thumbnails are often shown empty
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Thumbs-Image (show other bugs)
Version: 2.6.0
Platform: FreeBSD Ports FreeBSD
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-27 21:39 UTC by Yuri
Modified: 2016-07-15 21:02 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.1.0


Attachments
screenshot (91.66 KB, image/png)
2012-06-27 21:40 UTC, Yuri
Details
requested debug log (115.88 KB, text/plain)
2012-06-28 06:03 UTC, Yuri
Details
showfoto screenshot showing missing thumbnails (307.79 KB, image/png)
2012-06-28 07:34 UTC, Yuri
Details
showfoto terminal log (23.96 KB, text/plain)
2012-06-28 07:37 UTC, Yuri
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yuri 2012-06-27 21:39:04 UTC
Please see the attached screenshot.
This happens after I switch to map and back or to GEO location and back.


Reproducible: Always
Comment 1 Yuri 2012-06-27 21:40:06 UTC
Created attachment 72181 [details]
screenshot
Comment 2 caulier.gilles 2012-06-28 05:38:53 UTC
run kdebugdialog and turn on digiKam, kexiv2, kdcraw debug space, and run digiKam through a console. Report here all trace printed...

Gilles Caulier
Comment 3 Yuri 2012-06-28 06:03:42 UTC
Created attachment 72183 [details]
requested debug log

Attaching the console output with all requested debug spaces turned on.
Comment 4 caulier.gilles 2012-06-28 07:05:41 UTC
There is something wrong with KDE Kio slave interface. Job are started and broken for an obscure reason. 

Thumbnail are process in a separated process trough KIO slave. This is why thumb are empty.

Sound like a problem with KDE core, not digiKam.

Just to test, run Showfoto and open a folder with images. Look if thumb are visible in thumbbar. Showfoto do not use kioslave...

Gilles Caulier
Comment 5 Yuri 2012-06-28 07:34:38 UTC
Created attachment 72186 [details]
showfoto screenshot showing missing thumbnails

showFoto also has problem with thumbnails. See screenshot.
Comment 6 Yuri 2012-06-28 07:37:27 UTC
Created attachment 72187 [details]
showfoto terminal log
Comment 7 caulier.gilles 2012-06-28 07:41:56 UTC
This is strange because image are loaded from HDD :

showfoto(75506)/digikam (core) Digikam::DImg::load: "/home/yuri/Pictures/TX-Nov-2012-and-NorCal/DCIM-TX-2011-11-part1/101ND300/DSC_7493.JPG"  : JPEG file identified
showfoto(75506)/KEXIV2 KExiv2Iface::KExiv2::getImageDateTime: DateTime => Exif.Photo.DateTimeOriginal =>  QDateTime("Tue Nov 8 19:10:17 2011")
showfoto(75506)/digikam (core) Digikam::DImg::load: "/home/yuri/Pictures/TX-Nov-2012-and-NorCal/DCIM-TX-2011-11-part1/101ND300/DSC_8128.JPG"  : JPEG file identified
showfoto(75506)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation => Exif.Image.Orientation =>  1
showfoto(75506)/digikam (core) Digikam::DImg::load: "/home/yuri/Pictures/TX-Nov-2012-and-NorCal/DCIM-TX-2011-11-part1/101ND300/DSC_8127.JPG"  : JPEG file identified
showfoto(75506)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation => Exif.Image.Orientation =>  1
showfoto(75506)/digikam (core) Digikam::DImg::load: "/home/yuri/Pictures/TX-Nov-2012-and-NorCal/DCIM-TX-2011-11-part1/101ND300/DSC_8126.JPG"  : JPEG file identified
showfoto(75506)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation => Exif.Image.Orientation =>  1
showfoto(75506)/digikam (core) Digikam::DImg::load: "/home/yuri/Pictures/TX-Nov-2012-and-NorCal/DCIM-TX-2011-11-part1/101ND300/DSC_8125.JPG"  : JPEG file identified
showfoto(75506)/KEXIV2 KExiv2Iface::KExiv2::getImageOrientation: Orientation => Exif.Image.Orientation =>  1
showfoto(75506)/digikam (core) Digikam::DImg::load: "/home/yuri/Pictures/TX-Nov-2012-and-NorCal/DCIM-TX-2011-11-part1/101ND300/DSC_8124.JPG"  : JPEG file identified
showfoto(75506)/KEXIV2 KExiv2Iface::KExiv2::ge

... to get thumbnail, but nothing is show...

If you run dolphin with icon view mode through a folder where images are stored, do you see thumbnails properly ?

Gilles Caulier
Comment 8 Yuri 2012-06-28 07:57:48 UTC
dolphin thumbnails (with preview on) work fine.
gwenview thumbnails also work fine.
Comment 9 caulier.gilles 2012-06-28 08:10:14 UTC
Which libpgf you use ? Go to Help/Component Info for details.

libpgf is used to created compressed thumbnails.

Gilles Caulier
Comment 10 Yuri 2012-06-28 17:04:31 UTC
LibPGF: 6.11.42 - internal library
Comment 11 caulier.gilles 2012-06-28 18:20:10 UTC
ok. it's fine.

Do you compiled digiKam yourself or do you use a pre-compiled package ?

Do you use sqlite or mysql database ?

If you remove thumbnails-digikam.db file from your database folder, and you restart digiKam, it's fix the problem ?

Gilles Caulier
Comment 12 Yuri 2012-06-28 18:49:18 UTC
I compiled the FreeBSD port myself.

I chose mysql database option before compiling.

Removing thumbnails-digikam.db doesn't help the problem.
Comment 13 caulier.gilles 2012-06-28 18:57:00 UTC
1 / Please switch to sqlite to see if it's a thumbs DB problem under freeBSD

2/ If it doens't help, i suspect a libpgf port problem under freeBSD. With cmake use "-DENABLE_THUMBS_DB=off" to disable thumbnails DB and use fredesktop rules based on PNG thumbs (less faster and huge space disk)...

Gilles Caulier
Comment 14 Yuri 2012-06-28 19:39:20 UTC
1. switching to sqlite didn't help.

2. with cmake use "-DENABLE_THUMBS_DB=off"  thumbnails show fine.

I reported this issue to FreeBSD maintainers: kde@freebsd.org
Comment 15 caulier.gilles 2012-06-28 20:57:40 UTC
Ok.

That i suspected about libpgf.

If you want t investigate more, look into digikam/tests, there are 3 small command line tools to check libpgf.
One is  qtpgftest. create a small test.png image and copy it in same dir than qtpgftest. Run this one : it will save it as pgf and look if it can load it in reverse. It will do the same with JPG and PNG codec and print conversion time to compare. If all is fine, you must see no error on the console and test.pgf must be created. You can load it with showfoto so see if image is valid.

If something go wrong, there is libpgf port failure under FreeBSD. You ust report this problem to PGF team...

Gilles Caulier
Comment 16 Martin Bříza 2012-07-10 13:45:44 UTC
There is a similar report in the Red Hat Bugzilla for Fedora 17 (Digikam 2.6.0) on https://bugzilla.redhat.com/show_bug.cgi?id=836953 .
Comment 17 Rex Dieter 2012-08-07 12:02:02 UTC
the fedora downstream report in comment #16 seems to imply the problem is in libgphoto2-2.4.14
Comment 18 caulier.gilles 2013-12-04 17:28:04 UTC
To Rex from comment #17 : there is no relation between libgphoto2 and digiKam thumbnail interface...

Yuri,

Please, give use a fresh feedback to see if this entry still valid using last digiKam 3.5.0. Thanks in advance

Gilles Caulier
Comment 19 caulier.gilles 2014-08-31 11:59:12 UTC
Yurl,

this file still valid using last digiKam 4.2.0 ?

Gilles Caulier
Comment 20 caulier.gilles 2015-06-28 09:39:31 UTC
New digiKam 4.11.0 is available :

https://www.digikam.org/node/740

Can you reproduce the problem with this release ?

Gilles Caulier
Comment 21 caulier.gilles 2015-08-21 07:05:11 UTC
digiKam 4.12.0 is out :

https://www.digikam.org/node/741

We need a fresh feedback using this release please...
Thanks in advance.
Comment 22 Yuri 2015-08-21 07:37:01 UTC
Will provide feedback once will install this version.
Comment 23 caulier.gilles 2016-07-15 21:02:06 UTC
With digiKam 5.0.0, this problem is not reproducible.
I close this file now. Don't hesitate to re-open if necessary.
Gilles Caulier