Bug 448328 - loading albums at startup extremely long, after forced application kill
Summary: loading albums at startup extremely long, after forced application kill
Status: CONFIRMED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (show other bugs)
Version: 7.4.0
Platform: Mint (Debian based) Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-01-12 15:24 UTC by Fabio
Modified: 2024-03-04 21:07 UTC (History)
3 users (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 Fabio 2022-01-12 15:24:43 UTC
SUMMARY
***
NOTE: If you are reporting a crash, please try to attach a backtrace with debug symbols.
See https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***
After using digiKam for few times, I have extremely long boot time, the splash screen is blocked on "loading Albums".
The animation of the three blue circles is not moving.

STEPS TO REPRODUCE
1. Start to use digiKam, with new database.
2. use the "detect duplicates function
3. when the 100% is reached, the program does not respond, and the progress bar is blocked on 100%
4. upon forced kill and reboot the loading time is long, with no moving circles in the splashscreen animation
5. the time grows over time, and after several sessions it becomes as long as 5 or 10 minutes

OBSERVED RESULT
Around 1 or 2 minutes of loading time at startup


EXPECTED RESULT
few seconds of loading time at startup


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Mint 20.2
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 5.15.3

ADDITIONAL INFORMATION

I have SQLlite database, with around 70'000 images
Comment 1 caulier.gilles 2022-01-12 15:37:05 UTC
Hi and happy new year,

Can you reproduce this problem with the AppImage linux bundle that we provide ?

I recommend to test with 7.5.0 pre release file available here :

https://files.kde.org/digikam/

Best regards

Gilles Caulier
Comment 2 caulier.gilles 2022-01-12 16:03:02 UTC
Maik,

In the components listed with this report i can see that Linux Mint 20.2 package Qt 5.15.3. How it's possible as this version is not published in open source ?

In Download Qt IO web site, there is no Qt 5.15.3 tarball :

https://download.qt.io/official_releases/qt/5.15/

Gilles
Comment 3 Maik Qualmann 2022-01-12 16:45:30 UTC
Hmm, Linux Mint and such a current Qt version I can't imagine.
We definitely need the log from the terminal with the Qt debug variable active, as described here:

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

Now it can take a while until the duplicate search is loaded if you have set the range too far and want to list thousands of duplicate items. For this reason we have limited the lower range to 40% (can be changed in the setup), which can still be too little for a large collection.

Maik
Comment 4 caulier.gilles 2022-01-21 09:19:12 UTC
Hi Maik,

I think i know where Linux Mint take the Qt 5.15.3. It come from the KDE Qt LTS repository certainly.

Look the version marked in this repository :

https://invent.kde.org/qt/qt/qtbase/-/blob/kde/5.15/.qmake.conf#L9

I prepared a script to checkout this Qt 5.15 LTS code from this git repository. The goal is to use it with AppImage bundle.

https://invent.kde.org/graphics/digikam/-/blob/master/project/bundles/3rdparty/ext_qt/5.15-LTS/kde-qt5-lts.sh

For MXE and Macports, i created 2 reports in the respective project.

Note : i don't know if this repository include yet the fix for Mysql compatibility. There is no filtered changelog in this repository, excepted the git log messages.

Gilles
Comment 5 caulier.gilles 2022-01-21 15:32:00 UTC
Maik,

I take a closed look in next Mageia 9 rpms to see how Qt 5.15 source code is taken. Look in log file :

http://sophie.zarb.org/rpms/966765c6dd33427e4294058a6828e7a8/changelog

The code is taken from KDE5.15-LTS repository, we have plenty of "Sync with Qt KDE Collection patches".

I currently compile this code now for the AppImage bundle. Until now it compile, but it take age, especially with QtWebEngine, as usual...

Gilles
Comment 6 caulier.gilles 2023-05-01 16:38:42 UTC
@Fabio

digiKam 8.0.0 is out. This entry still valid with this release ?

Best regards

Gilles Caulier
Comment 7 caulier.gilles 2023-10-11 05:56:02 UTC
@Fabio,

What's about this file using current 8.2.0 AppImage Linux bundle ? It's
reproducible ?

https://files.kde.org/digikam/

Thanks in advance

Gilles Caulier
Comment 8 Darkstar 2024-03-04 20:58:44 UTC
I have validated that this behavior is reproducible on Digikam 8.2 with a Windows 11 x64 installation, connecting to a network drive.  Prior to performing the "Find Duplicates" step, the time to load albums was around 10seconds.  Now, it never finishes, even after running for 10+ hours overnight.
Comment 9 Maik Qualmann 2024-03-04 21:07:43 UTC
Please try the pre-release digiKam-8.3.0 version from here:

https://files.kde.org/digikam/

Maik