Bug 497975 - Skanpage crashes at startup: No such file or directory [/usr/share/tessdata/]
Summary: Skanpage crashes at startup: No such file or directory [/usr/share/tessdata/]
Status: RESOLVED DOWNSTREAM
Alias: None
Product: Skanpage
Classification: Applications
Component: general (other bugs)
Version First Reported In: 24.12.0
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Alexander Stippich
URL: https://forums.opensuse.org/t/skanpag...
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-28 10:54 UTC by MBR
Modified: 2025-01-08 07:17 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!