GithubHelp home page GithubHelp logo

Comments (9)

pvorb avatar pvorb commented on May 17, 2024

Thanks for the bug report. I'll have a look.

Did you use the batch recognition or recognition tab?

from tesseract4java.

pvorb avatar pvorb commented on May 17, 2024

Unfortunately I cannot reproduce the error. Does it also occur with other traineddata files or images? If not, can you send me the traineddata file?

from tesseract4java.

Shreeshrii avatar Shreeshrii commented on May 17, 2024

This was just with the recognition tab. I tried with various images/traineddata. The program window just disappears without any dialogue. I later found the error logs in the directory where the jar file is.

I will test again later and report.

from tesseract4java.

Shreeshrii avatar Shreeshrii commented on May 17, 2024

Seems to be some conflict with libtesseract.
I updated java.
I also tried using a batch file such as follows:

set TESSDATA_PREFIX=C:\Users\User\Documents\shree
echo %TESSDATA_PREFIX%
start javaw -Xms128m -Xmx1024m -jar tesseract4java-0.1.0-windows-x86.jar

The program used to start and work for a while before crashing, I was able to open box files and view them by character. After one of the crashes, now program does not start at all - just creates error log ..

#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x68d7359d, pid=7672, tid=0x000007a0
#
# JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)
# Java VM: Java HotSpot(TM) Client VM (25.101-b13 mixed mode, sharing windows-x86 )
# Problematic frame:
# C  [libtesseract-3.dll+0x17359d]
#

Complete log file is attached.

hs_err_pid7672.log.txt

from tesseract4java.

pvorb avatar pvorb commented on May 17, 2024

The program window just disappears without any dialogue.

Unfortunately it is not easy to prevent the JVM from crashing when there's such an EXCEPTION_ACCESS_VIOLATION. The only way would be to run Tesseract from another JVM process, which would make things more complex -- but probably that's the way to go.

Thanks for the new error log. This seems to be a similar but different issue than your problem yesterday. I can see from the log that the error occurred when running batch recognition. Probably you selected a traineddata file that causes Tesseract (or at least the bundled dll) to crash.

Yesterday the error occurred directly in the recognition tab, so it is a different problem, but both should be solved.

If you can't start the software any more, you can delete the Windows Registry key HKEY_CURRENT_USER\Software\JavaSoft\Prefs\de\vorb\tesseract\gui\model\training_file. Alternatively, you can change it to another traineddata file (try "eng").

from tesseract4java.

pvorb avatar pvorb commented on May 17, 2024

It would be great if you could send me the traineddata file, so I can reproduce and fix the error.

from tesseract4java.

Shreeshrii avatar Shreeshrii commented on May 17, 2024

I deleted the Windows registry entry and now it is NOT crashing. You may close the issue.

from tesseract4java.

Shreeshrii avatar Shreeshrii commented on May 17, 2024

Problem was coming with the eng.traineddata also but NOT anymore - so it was related to conflict because of pointing to an external directory for tesseract executable.

Qn. Is eng.traineddata included with program?

from tesseract4java.

pvorb avatar pvorb commented on May 17, 2024

No, it's not included with the program. The program has no bundled traineddata files.

from tesseract4java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.