Summary: | Possible database corruption by running rescans in parallel | ||
---|---|---|---|
Product: | [Applications] kphotoalbum | Reporter: | Pierre Etchemaïté <pe-kde> |
Component: | Backend | Assignee: | KPhotoAlbum Bugs <kpabugs> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | johannes |
Priority: | NOR | ||
Version: | 5.11.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/graphics/kphotoalbum/-/commit/5667e29083004009cf60510c62ea690f1d234bc3 | Version Fixed In: | |
Sentry Crash Report: |
Description
Pierre Etchemaïté
2023-10-12 18:40:48 UTC
Starting a rescan while the rescan is still running in the background actually crashed on me, so I'm treating this as "bug confirmed". Thanks for reporting this! Git commit 5667e29083004009cf60510c62ea690f1d234bc3 by Johannes Zarl-Zierl. Committed on 12/10/2023 at 23:42. Pushed by johanneszarl into branch 'master'. Prevent scanning for new images in parallel Add a mutex to prevent the user from starting a scan for new images while another scan is still running. This fixes a failed assertion if assertions are enabled, and potential database corruption if assertions are not enabled. M +1 -0 CHANGELOG.md M +24 -3 DB/NewImageFinder.cpp M +13 -4 DB/NewImageFinder.h https://invent.kde.org/graphics/kphotoalbum/-/commit/5667e29083004009cf60510c62ea690f1d234bc3 |