-
Notifications
You must be signed in to change notification settings - Fork 9.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tesseract hangs #3960
Comments
Did you install the Tesseract which is provided by FreeBSD? Can you run it with a debugger and get a stack trace when it is hanging? Or build it from source and debug the hanging process? |
Yes, Tesseract is from binary packages (pkg install tesseract-5.2.0_1) It's not possible to attach debugger or dump process with kill -QUIT. |
Does this hang happen with any image (as the name of the image indicates)? Does this hang happen with this command:
|
You can also try to prepend this to the tesseract command:
|
Also interesting: is this issue limited to one specific installation / computer, or does it occur with any installation of FreeBSD / on several or all computers? |
Another thing I just noticed. According to your |
That's indeed very strange because any amd64 platform should at least show support for SSE 4.1. |
First 64-bit CPU from AMD came out in 2003, a few years before SSE4.1 was introduced. Still, in practice you are right (unless the machine is antique). https://en.wikipedia.org/wiki/X86-64 |
Currently we have 2 FreeBSD servers. tesseract 5.2.0 Nothing about SSE here but than doesn's stop Running inside vm used by https://www.hetzner.com/cloud |
Following trace may give additional info: |
The discussion in the FreeBSD forum indicates the issue is related to OpenMP.
It's not clear how you used this environment variable. You need to do either of these:
Or
|
That's a bug in Tesseract (fixed in commit adbefa8) which also caused bad performance for recognition and training on FreeBSD. |
Looks very strange but now tesseract started working. This happened before any software or OS updates. |
Environment
tesseract 5.2.0
leptonica-1.82.0
libgif 5.2.1 : libjpeg 8d (libjpeg-turbo 2.1.4) : libpng 1.6.37+apng : libtiff 4.4.0 : zlib 1.2.12 : libwebp 1.2.4
Found OpenMP 201811
Found libarchive 3.6.1 zlib/1.2.12 liblzma/5.2.5 bz2lib/1.0.8 liblz4/1.9.4 libzstd/1.5.2
Found libcurl/7.85.0 OpenSSL/1.1.1o zlib/1.2.12 libpsl/0.21.1 (+libidn2/2.3.3) libssh2/1.10.0 nghttp2/1.48.0
FreeBSD hostname.com 13.1-RELEASE-p3 FreeBSD 13.1-RELEASE-p3 GENERIC amd64
Current Behavior:
Tesseract hangs without any result. Hanged process even can not be killed.
Commands like
tesseract anyimage.png stdout
ortesseract -l eng+rus anyimage.png stdout
Expected Behavior:
Tesseract works (produces result and exits)
The text was updated successfully, but these errors were encountered: