Linux FineReader Engine crashes JVM with SIGSEGV

  • 2.1K Views
  • Last Post 18 June 2014
smokindoug posted this 17 June 2014

I am using FineReader Engine 11.1.3_glibc_2.5 via the java JNI interface. The JVM version is Oracle jdk1.6.0_45.

I use JUnit to stress test a simple OCR Java class that loads the Engine, performs an OCR operation

document = engine.CreateFRDocument();

document.AddImageFile(filePath, null, null);

document.Process(null);

result = document.getPlainText().getText();

Then unloads the engine. It repeats this for various files (png and pdf - embedded image). When this test is run in a loop I get JVM crashes (SIGSEGV) occasionally. Of the form:

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

SIGSEGV (0xb) at pc=0x00002aaabc370063, pid=11551, tid=1082636608

JRE version: 6.0_45-b06

Java VM: Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode linux-amd64 compressed oops)

Problematic frame:

C [libFREngine.so+0x370063] CFRDocument::removeAllData()+0x73

If you would like to submit a bug report, please visit:

http://java.sun.com/webapps/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

To me this looks like something in the finalization. Does this occur elsewhere? Is there a workaround?

Thanks

Doug McNeil

SDK_support posted this 18 June 2014

Can you please provide the description of your issue and the serial number you use to dev_support@abbyyusa.com?

Close