Bug 516863 - Removing Album, "digikam" Freezes
Summary: Removing Album, "digikam" Freezes
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Albums-Engine (other bugs)
Version First Reported In: 9.0.0
Platform: Microsoft Windows Microsoft Windows
: NOR major
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2026-02-28 17:36 UTC by Andy
Modified: 2026-03-01 20:53 UTC (History)
1 user (show)

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


Attachments
1 (119.18 KB, text/plain)
2026-02-28 17:36 UTC, Andy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andy 2026-02-28 17:36:49 UTC
Created attachment 190212 [details]
1

Hi!

I want to remove a Windows folder from the Collections.
The collection is located under the Network Shares category.
It's a NAS network share with the drive letter P:\......
The process takes forever, and Visual Studio displays an error for each folder.

I think it tries this with every one of the 160 folders. After 3.5 hours, it still wasn't finished, and the program froze.

An output screenshot is attached.

If I don't remove the folder and insert a folder from a local drive, the process also takes forever.

But I think something else might be broken, and I'll rebuild the database. This morning, I used the advanced search to find about 1600 files larger than 8MB in 170 folders and wanted to reduce the DPI using batch processing. After about 1100 photos, the program closed without an error message.

Regards
Andy
Comment 1 caulier.gilles 2026-02-28 17:42:31 UTC
Do you try to remove the folders from the Windows file manager while the digiKam session is open ?

Do you have an antivirus working in the background ?

Can you share the debug statements from the digiKam session following instructions from there :

https://www.digikam.org/contribute/#windows-host
Comment 2 caulier.gilles 2026-02-28 17:44:42 UTC
You Mysql database is locked. why  ?

"Error messages: "QMYSQL: Der Befehl konnte nicht ausgeführt werden" "Lock wait timeout exceeded; try restarting transaction" "1205" 2 "
Comment 3 Andy 2026-02-28 17:47:21 UTC
The database is not locked.

(QString, "40-/Klaus Fotos Familie/19791001 - allgemein"))

40-/ ?
Why not P:/  ?
Comment 4 Andy 2026-02-28 18:02:36 UTC
I'm not very good at phpMyAdmin
but I found this under AlbumRoots

networkshareid:?mountpath=P:/Klaus Fotos gescannt&...
Comment 5 Andy 2026-02-28 18:07:29 UTC
I want to remove the album directly in "digiKam," not via Windows Explorer.

Here is the complete path.
P:\Klaus Fotos gescannt\Klaus Fotos Familie
Comment 6 Andy 2026-03-01 09:26:14 UTC
Hi!

I shut down the MySQL server after a year. The database was most likely corrupted. It's now running again with SQLite because I've been the only one editing the photos for some time now.

This ticket can be closed.

Andy