Bug 422208 - digiKam sporadically becomes totally unresponsive (freezes up) when editing Tags
Summary: digiKam sporadically becomes totally unresponsive (freezes up) when editing Tags
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Tags-Keywords (other bugs)
Version First Reported In: 6.4.0
Platform: Microsoft Windows Microsoft Windows
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-29 07:03 UTC by Galen Adams
Modified: 2023-04-20 05:24 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In: 8.1.0
Sentry Crash Report:


Attachments
attachment-3603-0.html (2.23 KB, text/html)
2020-05-31 17:57 UTC, Galen Adams
Details
attachment-5888-0.html (1.23 KB, text/html)
2020-05-31 19:16 UTC, Galen Adams
Details
attachment-3917030-0.html (960 bytes, text/html)
2023-04-19 22:38 UTC, Galen Adams
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Galen Adams 2020-05-29 07:03:01 UTC
SUMMARY
digiKam sporadically becomes totally unresponsive (freezes up) when editing Tags; especially likely when right-clicking a tag to choose "Properties"
Sometimes it will crash immediately when I right-click the Tag; other times, it will crash when I click "Properties" in the right-click context menu (Tags)

Lately, it also frequently crashes when I drag/drop an image on the tag so as to become the tags thumbnail.

I have completely uninstalled and re-installed several times and the problem either immediately returns, or will occur after a bit of use.

I have described some of the problem here:
https://discuss.pixls.us/t/digikam-freezes-when-right-click-a-tag/18381

It doesn't seem to matter whether it is a parent Tag or a child Tag, and is very random as to which and when it chooses to crash.
It has happened in both the Left Tags Search panel and the Right Tags apply panel.

When it does crash, everything about digiKam becomes totally unresponsive and never recovers to operable no matter how long I wait.

When it crashes, many of the Tags thumbnail images disappear; however, a sure-fire way to make it crash again is to attempt to drag/drop another image - any image - onto any Tag that has had it's thumbnail to disappear. 
I only ever load jpegs in digiKam; digiKam only ever sees my finished jpegs.

STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


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

ADDITIONAL INFORMATION First, I will say this, in theory, design, and layout, digiKam has the absolute best means of applying and searching Keyword Tags; better than any other program I have ever used and I have many....; HOWEVER, when dealing with more than just a handful of Tags, the entire Keyword Tag feature of digiKam is highly problematic and prone to unexpected results and crashes; it is my opinion that the stability of this wonderful Tagging system needs be addressed thoroughly.

There are only two features in digiKam that I ever use; the Geolocation Editor and applying and searching Keyword Tags; I wish you guys would build a rock-solid Windows package that had only those two features - the Geolocation Editor and the exact same Tags feature, except rock-solid.

Thanks for reading and all help is appreciated.
Comment 1 Maik Qualmann 2020-05-29 07:25:08 UTC
First test the current digiKam-7.0.0-RC version from here:

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

If the problem persists, download and start DebugView from Microsoft. Start digiKam and post the log from DebugView if there is a problem in digiKam.

Maik
Comment 2 Maik Qualmann 2020-05-30 09:17:15 UTC
Please give us minimal feedback, otherwise we cannot help.
I see your other messages on PIXLS.US.
It is not a good idea to downgrade from digiKam-6.x.x to digiKam-5.9.0 due to database changes.

If you have a problem that plugins do not appear in the menu, you must delete the kxmlgui5 directory (in Windows under "AppData/Local"

From digiKam-7.0.0 there is a new option in the metadata settings, here the writing of GPS information in images must be activated.

Maik
Comment 3 Galen Adams 2020-05-31 17:57:15 UTC
Created attachment 128958 [details]
attachment-3603-0.html

Update on my situation with digiKam freezing-up and crashing when
performing operations in the Tags panels (64-bit Windows 7 Pro)

I completely uninstalled everything and installed digiKam 6.4 Stable
Release and gave it one more try = it froze and crashed with the very first
operation I performed = force closed, re-opened, and tried again two more
times with the same result.

It finally dawned on me to try "Run as Administrator"

With digiKam 6.4 running "as Administrator", I was able to successfully Tag
and also edit Tags on several hundred images without a single crash.

With digiKam opened with "Run as Administrator", everything I did seemed
faster and more responsive.

I have downloaded the "digiKam-7.0.0-rc-20200531T011237-Win64.exe" and
intend to try it as soon as time allows.

Thank you.

On Sat, May 30, 2020 at 4:17 AM Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=422208
>
> --- Comment #2 from Maik Qualmann <metzpinguin@gmail.com> ---
> Please give us minimal feedback, otherwise we cannot help.
> I see your other messages on PIXLS.US.
> It is not a good idea to downgrade from digiKam-6.x.x to digiKam-5.9.0 due
> to
> database changes.
>
> If you have a problem that plugins do not appear in the menu, you must
> delete
> the kxmlgui5 directory (in Windows under "AppData/Local"
>
> From digiKam-7.0.0 there is a new option in the metadata settings, here the
> writing of GPS information in images must be activated.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 4 Galen Adams 2020-05-31 18:03:09 UTC
Sunday_31-May-2020
Update on my situation with digiKam freezing-up and crashing when performing operations in the Tags panels (64-bit Windows 7 Pro)

I completely uninstalled everything and installed digiKam 6.4 Stable Release and gave it one more try = it froze and crashed with the very first operation I performed = force closed, re-opened, and tried again two more times with the same result.

It finally dawned on me to try "Run as Administrator"

With digiKam 6.4 running "as Administrator", I was able to successfully Tag and also edit Tags on several hundred images without a single crash.

With digiKam opened with "Run as Administrator", everything I did seemed faster and more responsive.

I have downloaded the "digiKam-7.0.0-rc-20200531T011237-Win64.exe" and intend to try it as soon as time allows.
Comment 5 Maik Qualmann 2020-05-31 19:08:19 UTC
DigiKam does not need administrator rights. Your database or images may have incorrect user rights. Then the right solution would be to set the correct file rights.

Maik
Comment 6 Galen Adams 2020-05-31 19:16:34 UTC
Created attachment 128959 [details]
attachment-5888-0.html

To the best of my knowledge, I have all rights in all related image and
database folders set for full read/write access for all listed Users plus
"Everyone", including full LAN access to all of our other machines.
Is there some special rights that I must assign specifically for digiKam ?
Thanks.

On Sun, May 31, 2020 at 2:08 PM Maik Qualmann <bugzilla_noreply@kde.org>
wrote:

> https://bugs.kde.org/show_bug.cgi?id=422208
>
> --- Comment #5 from Maik Qualmann <metzpinguin@gmail.com> ---
> DigiKam does not need administrator rights. Your database or images may
> have
> incorrect user rights. Then the right solution would be to set the correct
> file
> rights.
>
> Maik
>
> --
> You are receiving this mail because:
> You reported the bug.
Comment 7 caulier.gilles 2020-07-14 09:41:27 UTC
Hi,

Can you check if this problem still exist with last weekly bundle build of digiKam 7.0.0 available here:

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

Thanks in advance

Gilles Caulier
Comment 8 caulier.gilles 2020-07-30 09:45:14 UTC
digiKam 7.0.0 stable release is now published:

https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/

We need a fresh feedback on this file using this version.

Thanks in advance

Gilles Caulier
Comment 9 caulier.gilles 2021-03-30 06:53:29 UTC
digiKam 7.2.0 official release is published with more than 360 files closed from bugzilla:

https://www.digikam.org/news/2021-03-22-7.2.0_release_announcement/

Can you reproduce the dysfunction with this version ?

Thanks in advance for your feedback

Gilles Caulier
Comment 10 caulier.gilles 2021-12-15 09:33:13 UTC
Galem,

Stable digiKam 7.4.0 is published. Please check if problem is reproducible.

https://www.digikam.org/download/

Thanks in advance
Comment 11 Maik Qualmann 2022-10-22 06:41:44 UTC
Git commit 0e0a3bc734e6841ee7c0b40084cd45b7e82ad2c7 by Maik Qualmann.
Committed on 22/10/2022 at 06:36.
Pushed by mqualmann into branch 'master'.

default tag models not sort on face tag counter update
Related: bug 460786, bug 446616, bug 438429

M  +9    -6    core/libs/tags/widgets/tagfolderview.cpp

https://invent.kde.org/graphics/digikam/commit/0e0a3bc734e6841ee7c0b40084cd45b7e82ad2c7
Comment 12 Maik Qualmann 2022-10-22 13:14:31 UTC
Git commit f48d78ecc04ba234f2010792cc679c9ce0c69992 by Maik Qualmann.
Committed on 22/10/2022 at 13:13.
Pushed by mqualmann into branch 'master'.

use a QHash for album and tag counters
Related: bug 460786, bug 446616, bug 438429

M  +2    -1    core/libs/album/manager/albummanager.cpp
M  +12   -12   core/libs/album/manager/albummanager.h
M  +6    -6    core/libs/album/manager/albummanager_album.cpp
M  +11   -11   core/libs/album/manager/albummanager_falbum.cpp
M  +4    -4    core/libs/album/manager/albummanager_p.h
M  +1    -1    core/libs/album/manager/albummanager_palbum.cpp
M  +7    -7    core/libs/album/manager/albummanager_talbum.cpp
M  +14   -14   core/libs/database/coredb/coredb.cpp
M  +6    -6    core/libs/database/coredb/coredb.h
M  +7    -7    core/libs/database/dbjobs/dbjob.cpp
M  +3    -3    core/libs/database/dbjobs/dbjob.h
M  +6    -6    core/libs/database/dbjobs/dbjobsthread.cpp
M  +4    -4    core/libs/database/dbjobs/dbjobsthread.h
M  +2    -2    core/libs/models/abstractalbummodel.h
M  +10   -10   core/libs/models/abstractalbummodel_counting.cpp
M  +14   -3    core/libs/models/albumfiltermodel.cpp
M  +3    -3    core/libs/models/albummodel.cpp
M  +1    -1    core/libs/models/albummodel.h
M  +5    -5    core/libs/models/albummodel_date.cpp
M  +9    -9    core/libs/models/albummodel_tag.cpp
M  +11   -11   core/tests/albummodel/albummodel_utest.cpp
M  +3    -3    core/tests/albummodel/albummodel_utest.h
M  +9    -9    core/tests/database/databasetags_utest.cpp
M  +2    -2    core/tests/database/databasetags_utest.h
M  +2    -2    core/utilities/maintenance/facesdetector.cpp

https://invent.kde.org/graphics/digikam/commit/f48d78ecc04ba234f2010792cc679c9ce0c69992
Comment 13 Maik Qualmann 2022-10-22 13:40:02 UTC
Git commit 447c28157c556387dd9044169b3e882fe6b82c4a by Maik Qualmann.
Committed on 22/10/2022 at 13:36.
Pushed by mqualmann into branch 'master'.

optimize tag counter update in the model
Related: bug 460786, bug 446616, bug 438429
FIXED-IN: 8.0.0

M  +2    -2    NEWS
M  +1    -1    core/libs/models/abstractalbummodel.h
M  +9    -11   core/libs/models/abstractalbummodel_counting.cpp

https://invent.kde.org/graphics/digikam/commit/447c28157c556387dd9044169b3e882fe6b82c4a
Comment 14 Maik Qualmann 2022-10-22 13:50:08 UTC
Git commit 94c6c851bb1608ae7fd16ea2a60c72b21fc91faa by Maik Qualmann.
Committed on 22/10/2022 at 13:49.
Pushed by mqualmann into branch 'qt5-maintenance'.

backport from master the main tag counter fix
Related: bug 460786, bug 446616, bug 438429

M  +9    -11   core/libs/models/abstractalbummodel.cpp
M  +1    -1    core/libs/models/abstractalbummodel.h
M  +9    -6    core/libs/tags/widgets/tagfolderview.cpp

https://invent.kde.org/graphics/digikam/commit/94c6c851bb1608ae7fd16ea2a60c72b21fc91faa
Comment 15 caulier.gilles 2023-04-19 14:55:05 UTC
@Adams

digiKam 8.0.0 is out. Problem still reproducible ?

Best regards
Gilles Caulier
Comment 16 Galen Adams 2023-04-19 22:38:48 UTC
Created attachment 158221 [details]
attachment-3917030-0.html

So far; so good.

I have not had a freeze-up since switching to 8.0.0

Hopefully that will be the end of it.

On Wed, Apr 19, 2023 at 9:55 AM <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=422208
>
> --- Comment #15 from caulier.gilles@gmail.com ---
> @Adams
>
> digiKam 8.0.0 is out. Problem still reproducible ?
>
> Best regards
> Gilles Caulier
>
> --
> You are receiving this mail because:
> You reported the bug.