Bug 501698 - Segmentation error in digiKam after closing Scan Image window
Summary: Segmentation error in digiKam after closing Scan Image window
Status: CONFIRMED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-DigitalScanner (show other bugs)
Version: 8.5.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-18 16:03 UTC by Olga
Modified: 2025-03-25 11:56 UTC (History)
2 users (show)

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


Attachments
backtrace (75.80 KB, text/x-log)
2025-03-18 16:03 UTC, Olga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Olga 2025-03-18 16:03:47 UTC
Created attachment 179544 [details]
backtrace

STEPS TO REPRODUCE
1.  Connect your scanner(s) with ADF/ADF Duplex to your computer with USB cable/Wi-Fi/Ethernet 
2.  Open digiKam -> Import -> Import from Scanner -> Preview -> Close Scan Image window without waiting for preview to complete.

OBSERVED RESULT
Image scan window closes without program crashing

EXPECTED RESULT
Program crashes with segmentation error (Backtrace attached)

SOFTWARE/OS VERSIONS
Linux/KDE Plasma:  ALT Workstation K 11.0 Beta
KDE Frameworks Version:  6.11.0
Qt Version:  6.8.2

ADDITIONAL INFORMATION
Comment 1 caulier.gilles 2025-03-18 17:24:32 UTC
We need a gdb backtrace of the crash :

https://www.digikam.org/contribute/#linux-host-1
Comment 2 Olga 2025-03-25 10:13:43 UTC
(In reply to caulier.gilles from comment #1)
> We need a gdb backtrace of the crash :
> 
> https://www.digikam.org/contribute/#linux-host-1

I've already attached backtrace. It's coredump, which is debugged by gdb.
Comment 3 Maik Qualmann 2025-03-25 11:28:59 UTC
Git commit 1ae161fae0c2d81d0f002e0c0f66ea9de1cbecbb by Maik Qualmann.
Committed on 25/03/2025 at 11:28.
Pushed by mqualmann into branch 'master'.

call KSaneWidget::cancelScan( ) to stop scanning

M  +1    -0    core/dplugins/generic/import/dscanner/scandialog.cpp

https://invent.kde.org/graphics/digikam/-/commit/1ae161fae0c2d81d0f002e0c0f66ea9de1cbecbb
Comment 4 Maik Qualmann 2025-03-25 11:56:41 UTC
The last commit doesn't fix the problem yet; more is needed. I had to reactivate my scanner to test it.

Maik