Bug 506861 - Digikam crashes when trying to start scanning, if no album is selected.
Summary: Digikam crashes when trying to start scanning, if no album is selected.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-DigitalScanner (other bugs)
Version First Reported In: 8.7.0
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-10 12:59 UTC by Kostevich Arseniy
Modified: 2025-07-10 18:30 UTC (History)
1 user (show)

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


Attachments
bug (3.69 MB, video/mp4)
2025-07-10 14:59 UTC, Kostevich Arseniy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kostevich Arseniy 2025-07-10 12:59:48 UTC
SUMMARY
Digikam crashes when trying to start scanning, if no album is selected.

STEPS TO REPRODUCE
1. Connect scanner to your computer. 
2. Open digikam -> Import -> Import from Scanner

OBSERVED RESULT
The app crashes

EXPECTED RESULT
The scan starts successfully

SOFTWARE/OS VERSIONS
Operating System: ALT Workstation K 11.0
KDE Plasma Version: 6.3.5
KDE Frameworks Version: 6.15.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
When you first start the program, you are prompted to select a directory for saving images (By default, /home/<user>/Images).
After the setup is completed, the album "Images" is created.
If you try to start scanning immediately after setting up (without explicitly selecting an album in the interface), the error is reproduced. 
If you click on any album in the Albums section, the error will not be reproduced.
I am attaching a video with a reproduction of the error.
Comment 1 caulier.gilles 2025-07-10 14:44:05 UTC
> If you try to start scanning immediately after setting up (without explicitly selecting an album in the interface), the error is reproduced. 

How did you do it exactly under digiKam. The album select dialog is always displayed to save the current scanned image.

Defenitively, we need a screencast of the dysfunction...

Gilles Caulier
Comment 2 Kostevich Arseniy 2025-07-10 14:59:57 UTC
Created attachment 183129 [details]
bug
Comment 3 Maik Qualmann 2025-07-10 18:30:05 UTC
Git commit 2644a685cf5e694e5849d0e8577b3bac83bc491b by Maik Qualmann.
Committed on 10/07/2025 at 18:29.
Pushed by mqualmann into branch 'master'.

fix possible crash in DBInfoIface::defaultUploadUrl()
FIXED-IN: 8.8.0

M  +1    -1    NEWS
M  +8    -2    core/libs/database/utils/ifaces/dbinfoiface.cpp

https://invent.kde.org/graphics/digikam/-/commit/2644a685cf5e694e5849d0e8577b3bac83bc491b