Bug 447133 - Hangs after changing database settings
Summary: Hangs after changing database settings
Status: CONFIRMED
Alias: None
Product: digikam
Classification: Applications
Component: Setup-Database (show other bugs)
Version: 7.4.0
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-12-17 14:12 UTC by Jonathan Kamens
Modified: 2024-04-20 03:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Kamens 2021-12-17 14:12:28 UTC
I upgraded from 7.3.0 to 7.4.0. AppImage downloaded from digikam web site, running on Ubuntu 21.10 64-bit.

I am using a mariadb database backend.

I was previously using local SQLite in ~/.digikam, and there were old files, including an old thumbnails database, left over in that directory from before I migrated to mariadb.

I launched 7.4.0, opened the digikam settings, hanged thumbnails from the database to ~/.digikam, and clicked OK.

Digikam has now been hung for something like ten minutes.

I ran strace on it early in the hang and it was doing a whole of work reading from a file descriptor. By the time I used lsof to find out what that file descriptor was it was gone, so I don't know whether it was the database or the thumbnails file.

Now strace doesn't show it doing much of anything at all, it's just sitting and showing an occasional call to poll or futex.

After all of the above I killed and restarted digikam and it's working fine now.

P.S. Thanks for all the work that goes into digikam, it is much appreciated.
Comment 1 Maik Qualmann 2021-12-17 19:41:18 UTC
It is not the new option when the thumbnail database is activated. I also rarely see this problem, when changes are made to the database settings tab, the core database is also reloaded and the albums etc. Very rarely a freeze occurs here. Since the problem rarely occurs, it is difficult to fix.

Maik
Comment 2 caulier.gilles 2022-01-09 14:55:10 UTC
Jonathan,

Give you give us a feedback using digiKam 7.5.0 pre-release bundle available here :

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

Thanks in advance and happy new year

Gilles Caulier
Comment 3 Jonathan Kamens 2022-01-10 01:45:48 UTC
Hi, I only have my production digikam environment, no testbed environment, and I'm not in any position to play around with switching back and forth between sqlite backend and mysql backend for thumbnails, so I can't really meaningfully attempt to reproduce this in 7.5.0.
Comment 4 caulier.gilles 2023-05-01 07:57:09 UTC
Maik,

I remember to be faced to this problem in the past, but i must admit that i never try to reproduce this. Did you already to try to switch database on a test computer ?

Gilles
Comment 5 caulier.gilles 2024-04-20 03:23:05 UTC
Hi all,

The digiKam 8.4.0 Appimage bundle pre-release is now based on last modern frameworks Qt 6.7.0 and KDE 6.2.0.

File can be downloaded at usual place : https://files.kde.org/digikam/
Take a  care : the bundle is named with the suffix "-Qt6" not "-Qt5". This bundle is compiled under Ubuntu 22.04 and require a Linux with GlibC version >= 2.35 to run.

Can you reproduce the dysfonction with this version?

Thanks in advance

Gilles Caulier