Bug 419847 - If user/group opens Digikam without write access to databases, system will hang with high CPU and write attempts
Summary: If user/group opens Digikam without write access to databases, system will ha...
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Database-Engine (show other bugs)
Version: 6.4.0
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-04-08 16:37 UTC by cshrimpt+kde
Modified: 2020-07-25 14:28 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 7.1.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description cshrimpt+kde 2020-04-08 16:37:51 UTC
SUMMARY

If Digikam is opened without write access to db, CPU will spike to 100% and I/O writes will completely consume disk capacity. Process and CPU issues persist even after app is closed. Only a manual kill of the process will stop the excessive disk and CPU action.

I discovered this after setting up Digikam for group access without setting group write permissions to the db files.

Would be nice if Digikam could detect write failures and terminate instead of locking up the PC with excessive CPU and I/O writes.

STEPS TO REPRODUCE
1. Remove write access to database files (user or group).
2. Start Digikam
3. 

OBSERVED RESULT
CPU spikes to 100% and I/O writes exceed disk capability thus locking up system.

EXPECTED RESULT
Digikam should be able to detect improper file permissions.

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

ADDITIONAL INFORMATION
Comment 1 Maik Qualmann 2020-04-08 18:08:44 UTC

*** This bug has been marked as a duplicate of bug 418594 ***
Comment 2 caulier.gilles 2020-07-25 14:28:51 UTC
Fixed with #418594