Bug 497975

Summary: Skanpage crashes at startup: No such file or directory [/usr/share/tessdata/]
Product: [Applications] Skanpage Reporter: MBR <mbr>
Component: generalAssignee: Alexander Stippich <a.stippich>
Status: RESOLVED DOWNSTREAM    
Severity: crash CC: john.kizer
Priority: NOR    
Version First Reported In: 24.12.0   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
URL: https://forums.opensuse.org/t/skanpage-wont-open/181606
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description MBR 2024-12-28 10:54:54 UTC
SUMMARY
Skanpage crashes at startup with the following in journal:
Dec 28 11:35:42 openSUSE systemd[2502]: Started Skanpage - Multi-Page Document Scanning Application.
Dec 28 11:35:42 openSUSE skanpage[12142]: terminate called after throwing an instance of 'std::filesystem::__cxx11::filesystem_error'
Dec 28 11:35:42 openSUSE skanpage[12142]:   what():  filesystem error: recursive directory iterator cannot open directory: No such file or directory [/usr/share/tessdata/]
Dec 28 11:35:42 openSUSE skanpage[12142]: KCrash: Application 'skanpage' crashing... crashRecursionCounter = 2
Dec 28 11:35:42 openSUSE systemd-coredump[12166]: Process 12142 (skanpage) of user 1000 terminated abnormally with signal 6/ABRT, processing...


STEPS TO REPRODUCE
1. Try to start skanpage
2. Observe journalctl

OBSERVED RESULT
Skanpage doesn't start

EXPECTED RESULT
Skanpage starts


SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20241223
KDE Plasma Version: 6.2.4
KDE Frameworks Version: 6.9.0
Qt Version: 6.8.1
Kernel Version: 6.12.6-1-default (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 5700X 8-Core Processor
Memory: 31.3 GiB of RAM
Graphics Processor: AMD Radeon RX 6650 XT
Manufacturer: Micro-Star International Co., Ltd.
Product Name: MS-7C56
System Version: 2.0

ADDITIONAL INFORMATION
Creating the folder allows skanpage to start
Comment 1 John Kizer 2025-01-08 07:17:04 UTC
Hi - thanks for your bug report! This specific crash has come up on the openSUSE Forums, and appears to stem from the package tesseract-ocr not being marked as a required dependency of the Skanpage package, meaning the former doesn't necessarily get installed when the latter is installed.

Until the openSUSE Tumbleweed packaging is changed to reflect that, you can directly install the tesseract-ocr package to resolve the issue.

Thanks!