Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#31213 - [tesseract] segfault
Attached to Project:
Community Packages
Opened by Tim Sears (timsears) - Monday, 20 August 2012, 15:35 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 18 September 2012, 20:23 GMT
Opened by Tim Sears (timsears) - Monday, 20 August 2012, 15:35 GMT
Last edited by Sergej Pupykin (sergej) - Tuesday, 18 September 2012, 20:23 GMT
|
DetailsDescription:
After pacman -Syu, tesseract exits with segmentation fault. Recompile/reinstall from ABS results in the same behavior. Suspect one of its upstream dependencies needs to be recompiled. |
This task depends upon
Closed by Sergej Pupykin (sergej)
Tuesday, 18 September 2012, 20:23 GMT
Reason for closing: Fixed
Additional comments about closing: optdepends added to tesseract
Tuesday, 18 September 2012, 20:23 GMT
Reason for closing: Fixed
Additional comments about closing: optdepends added to tesseract
sudo pacman -U /var/cache/pacman/pkg/leptonica-1.68-3-i686.pkg.tar.xz
sudo pacman -U /var/cache/pacman/pkg/tesseract-3.01-1-i686.pkg.tar.xz
This stopped the segfault when invoking tesseract. Regard as workaround.
Perhaps off-topic, but I have an ubuntu 12.04 box with leptonica 1.69-2 and tesseract-3.02.01-2 and that combination works fine.
tesseract testocr.tiff testocr -psm 7
Runs correctly on my reverted system.
$ sudo pacman -S tesseract tesseract-data-eng
$ tesseract qwe.tiff testocr -psm 7
Tesseract Open Source OCR Engine v3.01 with Leptonica
Page 0
$ cat testocr.txt
HE|Nz KETCHUP 4002
There is a requirement for at least one file .trainedata to be there.
Otherwise you get...
timsears@archlinux32:~$ tesseract /mnt/hgfs/timsears/Dropbox/labels/data/test.tiff test -l eng -psm 7
Error opening data file /usr/share/tessdata/eng.traineddata
Tesseract Open Source OCR Engine v3.01 with Leptonica
Page 0
Segmentation fault
This provides a clue, but only if you give the flag.
Entering this fixes the problem...
sudo pacman -S tesseract-data-eng
Suggest this somehow be encoded in the dependencies for the package tesseract. I have been using this package and the source version for a year and still got tripped up.