Bug 338724 - Symlink from one collection to another causes high CPU usage, freeze and DB lockup errors
Summary: Symlink from one collection to another causes high CPU usage, freeze and DB l...
Status: RESOLVED WORKSFORME
Alias: None
Product: digikam
Classification: Applications
Component: Database-Scan (show other bugs)
Version: 4.2.0
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-01 09:40 UTC by Adrian Dziubek
Modified: 2023-10-24 12:14 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.2.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Adrian Dziubek 2014-09-01 09:40:52 UTC
My local collections include: 
- a path to separate partition with few hundred GB pictures and 
- a path to my desktop folder, where I ocassionaly put some pictures.

Recently I added a symlink on my desktop to quickly get to the folder with data which is a parent directory of my collection of pictures. When I ran digikam few days after:
- it took a few minutes to show any pictures,
- switching to other albums freezed the UI for few seconds,
- after switching albums it wasn't showing any thumbnails,
- htop showed two digikam processes eating 100% CPU.
- I killed it and ran it in console and the output showed output showed multiple lines being logged (about 3 times a second):
checkRetrySQLiteLockError: Detected locked database file. There is an active transaction. Waited but giving up now.

I killed digikam, I removed the symlink and everything went back to normal.

Reproducible: Always

Steps to Reproduce:
1. add two folders including images to collection,
2. add symlink from one to parent of another.


Actual Results:  
A big freeze.

Expected Results:  
Normal operation: either not following the symilnks or treating them as links to albums.
Comment 1 caulier.gilles 2014-09-01 11:26:39 UTC

*** This bug has been marked as a duplicate of bug 202094 ***
Comment 2 Adrian Dziubek 2014-09-01 12:47:45 UTC
I don't think it's a duplicate. The other item, which I read before reporting this one, is more of a feature request. It mentions errors about usability of links, but not the general freeze up of the application, when encountering a symlink.
Comment 3 Adrian Dziubek 2014-09-01 12:48:44 UTC
On the other hand it could be a duplicate development-wise.
Comment 4 caulier.gilles 2023-10-23 14:49:25 UTC
@Adrian,

The digiKam 8.2.0 pre-release for Windows is available for testing :

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

Problem still reproducible on your computer ?

Thanks in advance

Gilles Caulier
Comment 5 Adrian Dziubek 2023-10-24 11:45:41 UTC
Sorry, I have not been using digiKam or any other album software for some time. I lost control over my pictures mostly.
Comment 6 caulier.gilles 2023-10-24 12:14:04 UTC
thanks for the feedback. I close this bug as not reproducible...