Bug 337692 - Template editor with author/rights is extremly slow
Summary: Template editor with author/rights is extremly slow
Status: RESOLVED NOT A BUG
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Template (show other bugs)
Version: 4.1.0
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-07-22 12:10 UTC by Christian
Modified: 2022-01-19 11:06 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.6.0


Attachments
bt before digikam settings dialog hangs (59.94 KB, text/plain)
2014-07-23 06:34 UTC, Christian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Christian 2014-07-22 12:10:11 UTC
OS/Release Details:
-------------------
Digikam/Kipi Plugins Release 4.1.0-11.1 (libkexiv2-11 4.11.5-298.11)
with and without MySQl DB (mariadb 5.5.33-2.2, libmysqlclient18 5.5.33-2.2
OpenSuse 13.2 from BuildService KDE:Extra, Windows 8.1 from Installer

Symptoms:
---------------
DigiKam (3 PCs with OpenSuse) freezes when I try to edit an author/rights template - or gets extremly slow. The template editor is also slow under Windows with a smaller image database.

Note: The database contains millions of images and a complex tag hierarchy. 
No image was selected.

Background:
When I select the option "Write Metadata templates to images" digiKam freezes for 20 minutes. After that any attempt to edit author/rights templates will cause the GUI to freeze (I restarted many times). I waited 6 hours but it did not terminate.

No idea what blocks the editor. I was not able to test if the templates are applied to images, because I do not want to write outdated template contents. There is just a single template around that was added a couple of years ago.
Comment 1 Christian 2014-07-23 06:34:33 UTC
Created attachment 87895 [details]
bt before digikam settings dialog hangs

The backtrace documents my attempt to do a clean install on my distro: after setting up db connection the dialog to choose a folder for the base collection hangs. In this example the plasma-desktop crashed after the freeze of the file dialog, so digikam was able to continue and I tried to set the collection path again which caused another freeze. 

Also the db-dialog hangs, the dialog to define author templates - like all other dialogs of the digikam settings.
Comment 2 Christian 2014-07-23 06:47:23 UTC
Note - this bug is similar to the issue in Bug 337443 - digikam hangs when opening the preferences window on the collection management ta
Reported: 	2014-07-14 15:40 UTC by Mathias Homann

(In reply to Mathias Homann from comment #0)
> I can't add a collection to digikam, it freezes up when i try to open the
> preferences window.

I suffer from the same symptom using OpenSuse 13.1 with digikam build 14.1.0-1.11. Sometimes I can open further dialogs if I act quickly, but there is no way e.g. to select the folder of the root collection or to edit the author template in the settings menu after a couple of seconds.

See attachment with backtrace - this example shows what happens before and after the freeze of a digikam setting dialog window (in this case: the file dialog to select collections). 

The freeze is not related to a particular window, it also freezes when I try to change db settings, color profile settings and the like. The KDE desktop is not blocked, but all digikam windows.

Some additional infos:
- I use nvidia native driver on all workstations
- large filesystems (> 4 TB) with many folders
- on this pc there are two high resolution monitors (2x 2016x1200)

I should contact the package provider. Do not think this package is ready for production.
Comment 3 Christian 2014-07-23 13:52:19 UTC
The bug is related to specific KDE Settings, large Fonts, or KDE Service Settings. It is obviously not an migration issue (3.5 - 4.1) or database issuse.

Proof:
In a virtual machine with a vanilla installation of openSuse 13.1 with a new user digikam 4.1.0 (build 11.1 and 11.8) and KDE 4.13.3 the settings windows can be opened, and none of the dialogs (database, collection ...) freezes.

I will try to change KDE Settings similar to the one used on my workstation where this bug is a severe blocker at time of the installation, but also later on, as all settings have to be configured in the kede rc file without gui.
Comment 4 Christian 2014-07-23 17:22:47 UTC
This bug was closed because it is not focused on the real cause of the problem:

The digikam 4.x settings window (and collection setup at installation) freezes once a mysql connection was setup successfully with latest mariadb and mysql libs at least in OpenSuse 12.3 and 13.1.

This bug is moved to a new one.