Bug 507905 - Skanpage should not crash if dependency is missing
Summary: Skanpage should not crash if dependency is missing
Status: REPORTED
Alias: None
Product: Skanpage
Classification: Applications
Component: general (other bugs)
Version First Reported In: 25.04.3
Platform: Other Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Stippich
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-08-05 15:30 UTC by joshas
Modified: 2025-08-10 14:23 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description joshas 2025-08-05 15:30:14 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports

Please remove this comment after reading and before submitting - thanks!
***

SUMMARY
In freshly installed Fedora Linux 42 (KDE Plasma Desktop) Skanpage does not work out of the box and leaves bad impression of unstable and incomplete desktop environment.

STEPS TO REPRODUCE
1. Install Fedora Linux 42 (KDE Plasma Desktop)
2. Try to start Skanlite

OBSERVED RESULT
Program does not start, crashes. It is caught by KDE crash handler and Fedora's own abrt reporter.

EXPECTED RESULT
Even if there were a mistake in packaging, it would be great if Skanlite could check if required files exist on startup and display an error message about "missing dependencies". Simple "tesseract package is not installed" would be much better user experience than crashing. It would be even better if Skanlite could work without tesseract installed, as some users might prefer scanning photos and do not require text recognition. Maybe even add alternative OCR providers in the future?

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: Fedora Linux 42
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1

ADDITIONAL INFORMATION
I saw previous bug reports and one upstream about fixed dependencies, but even after installing latest updates Skanlite still does not work, and I need to manually install tesseract.
Comment 1 Joe Bidondo 2025-08-10 14:23:03 UTC
On Fedora 42 KDE Spin got:

> $ skanpage 
> terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
> what():  filesystem error: recursive directory iterator cannot open directory: No such file or directory [/usr/share/tesseract/tessdata/]
> KCrash: Application 'skanpage' crashing... crashRecursionCounter = 2
> Abandon (core dumped)

Solved client-side by installing tesseract.