https://bugs.kde.org/show_bug.cgi?id=475529
Bug ID: 475529
Summary: Possible database corruption by running rescans in
parallel
Classification: Applications
Product: kphotoalbum
Version: 5.11.0
Platform: Ubuntu
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: Backend
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
SUMMARY
Starting a rescan while another rescan is in progress can lead to duplicate
entries being added to the database.
Upon database reload, KPhotoAlbum may detect the inconsistency and exit.
STEPS TO REPRODUCE
1. Create new image(s)
2. Start a disk rescan
3. Start a disk rescan again while previous one is still in progress
OBSERVED RESULT
Duplicate images in the database. If database is saved, upon reloading
KPhotoAlbum may detect the issue and exit:
~ ᐅ kphotoalbum
kphotoalbum.DB: Merging duplicate entry for file "jean-pierre/Post
mortem/Inventaire/I10/I10,1/200105 b.tif"
~ ᐅ
EXPECTED RESULT
Either queue the rescan, or inform the user that a rescan is ongoing and ask
whether it should be cancelled and rescan started over.
SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Ubuntu 22.04.3 (only using KDE libs)
KDE Plasma Version: 5.24.7
KDE Frameworks Version: 5.92.0
Qt Version: 5.15.3
ADDITIONAL INFORMATION
I'm scanning a NAS shared folder, so rescanning can take a few minutes and
there's no visual clue that a rescan is still in progress. So it genuinely
happened a few times.
I've seen reloading fix the duplicates once, maybe image checksums helped?
--
You are receiving this mail because:
You are watching all bug changes.