Bug 435772

Summary: digikam scans my entire collection every time I launch the program, even if "scan new items at startup" is disabled
Product: [Applications] digikam Reporter: Paolo Niccolo Giubelli <paoloniccolo.giubelli>
Component: Database-ScanAssignee: Digikam Developers <digikam-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: caulier.gilles
Priority: NOR    
Version: 7.2.0   
Target Milestone: ---   
Platform: macOS (DMG)   
OS: macOS   
Latest Commit: Version Fixed In: 7.5.0
Sentry Crash Report:
Attachments: Scanning collection

Description Paolo Niccolo Giubelli 2021-04-15 13:56:46 UTC
SUMMARY
digikam scans my entire collection every time I launch the program.

STEPS TO REPRODUCE
1. Go to Preferences -> Miscellaneous
2. Disable "Scan for new items at startup"
3. Close and re-open digikam

OBSERVED RESULT
Digikam scans my catalogue all over again (I have to wait several minutes)

EXPECTED RESULT
Digikam should start very fast

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
I'm using an external USB drive with ~200GB of photos.
Comment 1 caulier.gilles 2021-04-15 15:00:43 UTC
Not reproducible here, with my MacBook pro 2015 and last MacOS BigSur.

I use digiKam 7.3.0 pre-release available here: https://files.kde.org/digikam/

When i active "Scan for New Item..." option from Setup/Misc, I can see the progress bar on the bottom right at startup, as expected. When option is disabled, the progress is not here.

Can you check if in Setup/Collections the option "Monitor the Album..." is enabled or not. Here the option is turned off, as specified in the dialog for MacOS.

GilleS Caulier
Comment 2 Paolo Niccolo Giubelli 2021-04-15 15:59:41 UTC
Created attachment 137639 [details]
Scanning collection

The window I see when I launch digikam.
Comment 3 Paolo Niccolo Giubelli 2021-04-15 16:01:10 UTC
In Preferences -> Collections the option "Monitor the Album... " is disabled.
 In the attachment you'll see the window I get when I launch digikam.

(In reply to caulier.gilles from comment #1) 
> Can you check if in Setup/Collections the option "Monitor the Album..." is
> enabled or not. Here the option is turned off, as specified in the dialog
> for MacOS.
> 
> GilleS Caulier
Comment 4 caulier.gilles 2021-04-15 16:03:15 UTC
Ah it's different. This is the first run progress dialog.

If it appear, sound like the scan is not completed for a technical reason, and at next start digiKam try again.

Please, run digiKam in a Terminal following instructions here:

https://www.digikam.org/contribute/

Gilles Caulier
Comment 5 Paolo Niccolo Giubelli 2021-04-15 16:10:49 UTC
Oh, you are right! I let it finish the job and now starts with no delay.

I would make this procedure clearer for new users, perhaps indicating that it is a job necessary for the first scan of the catalog. It's just advice.

Thank you for your support.


(In reply to caulier.gilles from comment #4)
> Ah it's different. This is the first run progress dialog.
> 
> If it appear, sound like the scan is not completed for a technical reason,
> and at next start digiKam try again.
> 
> Please, run digiKam in a Terminal following instructions here:
> 
> https://www.digikam.org/contribute/
> 
> Gilles Caulier
Comment 6 caulier.gilles 2021-12-28 11:48:52 UTC
Git commit 821757ac25671ea2c71e8da2e0d7bae900e6bc38 by Gilles Caulier.
Committed on 28/12/2021 at 11:47.
Pushed by cgilles into branch 'master'.

Add note in progress dialog if previous scan of collections have not be fully completed
FIXED-IN: 7.5.0

M  +3    -1    core/libs/database/utils/scan/scancontroller.cpp

https://invent.kde.org/graphics/digikam/commit/821757ac25671ea2c71e8da2e0d7bae900e6bc38