Skip to content

Error: Illegal Parameter specification! with Tesseract4Alpha #1010

@nachobit

Description

@nachobit

After upgrade to Tesseract-4-Alpha, I found this error making the OCR from my JAVA code:

ITesseract instance = new Tesseract(); instance.setDatapath("/usr/share/tessdata/"); instance.setLanguage("spa"); (...) result = instance.doOCR(imageFile);


Environment

  • Tesseract Version: tesseract 4.00.00alpha
  • Leptonica Version: leptonica-1.74.4
  • Platform: CentOS 6.7
  • Server: Wildfly 10.1

Current Behavior:

Error: Illegal Parameter specification!
"Fatal error encountered!" == NULL:Error:Assert failed:in file globaloc.cpp, line 75

A fatal error has been detected by the Java Runtime Environment:

SIGSEGV (0xb) at pc=0x00007ff1b3098549, pid=25091, tid=0x00007ff29d7d7700

JRE version: OpenJDK Runtime Environment (8.0_121-b13) (build 1.8.0_121-b13)
Java VM: OpenJDK 64-Bit Server VM (25.121-b13 mixed mode linux-amd64 compressed oops)
Problematic frame:
C [libtesseract.so+0x26f549] ERRCODE::error(char const*, TessErrorLogCode, char const*, ...) const+0x129

Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again

An error report file with more information is saved as:
/opt/wildfly/wildfly-10.1.0.Final/hs_err_pid25091.log

If you would like to submit a bug report, please visit:
http://bugreport.java.com/bugreport/crash.jsp
The crash happened outside the Java Virtual Machine in native code.
See problematic frame for where to report the bug.

*** JBossAS process (25091) received ABRT signal ***

Suggested Fix:

Any idea?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions