Bug 327827 - Some pictures not visible in digikam
Summary: Some pictures not visible in digikam
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 3.5.0
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-19 19:24 UTC by Nicofo
Modified: 2017-07-25 17:12 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicofo 2013-11-19 19:24:12 UTC
I use a test directory where I copy some pictures from my collection.
Strangely, all the pictures from that directory appear in digikam except 2 that have disappeared from the digikam view !
It is not possible to make them reappear, even if I copy these files into another directory of my collection.

What can cause an image not to be displayed in digikam ??

Remarks:
- the concerned images are copies from others from my collection where they do not appear neither (-> all copies of these 2 pictures are invisible)
- the pictures are 'normal' jpg files. I have tried using digikam from another user (=clean profile) -> the pictures all well present => it seems there is a problem in my profile but what ??
- I have had a look into digikam4.db -> the invisible pictures are well present 'normally' in the pictures table.  So: what can cause that they are not displayed in digikam ?
- I have moved, copied, renamed these 2 pictures -> no effect
- Launching digikam from konsole -> I don't see any particular message.

Reproducible: Always
Comment 1 caulier.gilles 2013-11-25 13:08:29 UTC
It sound like a dysfunction with digiKam KIOSlave.

Turn on right digiKam debug space with kdebugdialog, and run digiKam on the console to see more traces.

Look also in you ~./.xsession-errors file to see if some traces from digiKam kio-slaves are visible...

Gilles Caulier
Comment 2 caulier.gilles 2013-11-25 13:10:34 UTC
This command line must be verbose if something is wrong with digiKam KIO slave :

cat ~/.xsession-errors | grep digikam

Gilles Caulier
Comment 3 Nicofo 2013-11-27 22:24:07 UTC
Thank for your answer.

1) cat ~/.xsession-errors | grep digikam -> doesn't show anything
I launched digikam two times: here are the logs added in ~/.xsession-errors
 -> http://nicofo.tuxfamily.org/tmp/xsession-errors-digikam.txt

2) here are the logs given by digikam with debug mode:
 -> http://nicofo.tuxfamily.org/tmp/digikam-log.txt
I have not seen any particular error, but you could certainly better analyze theses logs that me.
Comment 4 caulier.gilles 2013-11-27 22:35:12 UTC
No there is nothing wrong about digiKAm kioslave.

Perhaps your database file is corrupted.

If you can, backup digikam4.db file and delete it. Run digiKam and rescan your collections. This solve the problem ?

Gilles Caulier
Comment 5 caulier.gilles 2013-11-28 22:47:50 UTC
Are you sure that problem is not relevant of digiKam versioning settings ?
Check on setup dialog for details, especially the section Editing Images where
"Always show original image" and "Always show intermediate snapshot" options
can be a solution...

Gilles Caulier
Comment 6 Nicofo 2013-12-01 10:25:16 UTC
(In reply to comment #5)
> Are you sure that problem is not relevant of digiKam versioning settings ?
Yes, I have already checked that.

I have tested to migrate database (from the menu).
I don't know what it has done, but it has lasted more than one hour ( I have a quite old pc) and the missing pictures are back. Unfortunately, I have lost all my tags ( and didnt made a backup of digikam4.db before ... ).

So it was probably well a database file corruped.
However I dont think it s normal that a database migration looses all the tags :-(
Comment 7 caulier.gilles 2013-12-01 10:27:39 UTC
Do yo u use a MySQL database ?

Gilles Caulier
Comment 8 Nicofo 2013-12-02 18:27:35 UTC
(In reply to comment #7)
> Do yo u use a MySQL database ?
> 
> Gilles Caulier

According to the settings window of digikam, I use SQLite and not MySQL.
Actually I use the default database with Fedora: I never changed the database settings.
Comment 9 caulier.gilles 2014-08-22 12:14:57 UTC
Nicofo,

Problem still reproducible using last digiKam 4.2.0 ?

Gilles Caulier
Comment 10 Nicofo 2014-08-22 16:31:41 UTC
Gilles,
I have seen this bug only once when I reported it and was not able to reproduce it.
Comment 11 caulier.gilles 2014-08-22 18:57:13 UTC
Thanks i close this file now

Gilles Caulier
Comment 12 caulier.gilles 2017-07-25 17:12:31 UTC
This problem is releavant of digiKam KIO Slaves and all of these have been dropped in favor of a multi-threaded interface to query the database.