Bug 383711 - All Albums Disappear
Summary: All Albums Disappear
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Media (show other bugs)
Version: 5.6.0
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-08-19 17:48 UTC by hardy.public
Modified: 2018-09-02 08:52 UTC (History)
4 users (show)

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


Attachments
Screenshot Of Lost Collections (60.82 KB, image/jpeg)
2017-09-14 19:11 UTC, hardy.public
Details

Note You need to log in before you can comment on or make changes to this bug.
Description hardy.public 2017-08-19 17:48:36 UTC
I have my database on a local HDD. All my photos are on a NAS drive.

If I leave my PC on for a few hours unattended and I come back, all the albums  disappeared in album view. I then restart digiKam and it automatically rescans. My albums appear but after a very long delay as if it is reading the photos from the NAS drive for the first time.

What could be the reason the albums disappear? The NAS is not set to go into any sleep mode during this time.
Comment 1 hardy.public 2017-09-14 19:11:48 UTC
Created attachment 107861 [details]
Screenshot Of Lost Collections
Comment 2 hardy.public 2017-09-14 19:13:36 UTC
Anyone?

I have to close and re-open DigiKam but it has to read all he photos again to restore the collection.
Comment 3 Maik Qualmann 2017-10-12 06:12:21 UTC
Have you added your collection on the NAS as a network collection under digiKam setup?

Maik
Comment 4 hardy.public 2017-10-12 18:34:49 UTC
Thanks Maik. Yes the collection is under Network Shares.

I noticed that the mapped drives in Windows Explorer show a red X more or less at the same time. I looked up the red X symptom and it seems there is an auto disconnect if the drives are idle for a period.

https://support.microsoft.com/en-gb/help/297684/mapped-drive-connection-to-network-share-may-be-lost

I am currently experimenting with registry settings (KeepConn)to see if I can prevent the auto-disconnect and therefore preventing digiKam from thinking the collections are gone. I'll report back.
Comment 5 vxd 2017-11-17 16:07:32 UTC
I too have experience this issue many times. My albums are on an external HDD and are marked as an external HDD.

If the HDD is not connected after using Digikam the albums from the external HDD will be removed when I close and open Digikam.
Comment 6 hardy.public 2017-11-17 18:58:19 UTC
(In reply to vxd from comment #5)
> I too have experience this issue many times. My albums are on an external
> HDD and are marked as an external HDD.
> 
> If the HDD is not connected after using Digikam the albums from the external
> HDD will be removed when I close and open Digikam.

So are you removing the HDD with digiKam open? If so, then I'm not surprised that digiKam removes the albums. I think it constantly scans for file changes.
Comment 7 vxd 2017-11-19 15:02:55 UTC
(In reply to hardy.public from comment #6)

> So are you removing the HDD with digiKam open? If so, then I'm not surprised
> that digiKam removes the albums. I think it constantly scans for file
> changes.

No, I did not say I removed the HDD with Digikam open. I have some of the albums on the external HDD and some albums on the local hdd.

If the HDD is not connected then the albums from the external HDD are removed.
Comment 8 Maik Qualmann 2017-11-19 16:18:38 UTC
If it is not certain that the external removable media is always available, then add it as a network collection. As a network collection, the albums are not removed when they are not available, only deactivated.

Maik
Comment 9 caulier.gilles 2017-11-19 17:17:22 UTC
Maik,

Yes, i can confirm this expected behavior, at least in theory.

Here, we depend of Solid API to identify the partition UUID registered in database, and of course, under Windows, as i know the Partition identification is not implemented or not complete.

Note : Under MacOS, the implementation will arrive soon, as i can see the big patch under testing in KDE Phabricator.

So, for me the dysfunction is normal for the moment under Windows.

Gilles Caulier
Comment 10 hardy.public 2017-12-21 14:12:52 UTC
I think that deactivation of albums on my NAS is now nothing to do with Windows dropping the drive connection to the NAS. After all, the database is not on the NAS, it is on a local SSD.

I came back to my PC after leaving it on and unattended with digiKam open. After logging in to Windows, digiKam has no albums in the collection.

I had to restart digiKam twice and then digiKam behaves like it has no database and begins to rebuilding by adding the photos all over again. So the behaviour indicates that it is the database that is being emptied or corrupted.


Looking at the debug log after I relaunch digiKam after album disappearance, there are lines mentioning a NULL album ID and removed image:

14.36514759	[196] digikam.database: Detected identical image info with id  425  and album id NULL of a removed image for image  "IMG_2701.JPG"	


I will try to capture the problem while leaving the PC unattended.
Comment 11 MarcP 2018-01-30 18:07:07 UTC
This might be a duplicate of bug #377849
Comment 12 Maik Qualmann 2018-01-31 07:56:20 UTC

*** This bug has been marked as a duplicate of bug 377849 ***
Comment 13 caulier.gilles 2018-09-02 08:52:43 UTC
Not reproducible with 6.0.0