Page 1 of 1

Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 12:07 pm
by uhonermann
OCR_GetText crashes on a particular PDF (321 pages) after a long time.

Exception Information:

Exception thrown at 0x00007FF940FA94FC (OcrTools.x64.dll) in TEST_OCR.exe: 0xC0000005: Access violation reading location 0x0000000000000000. occurred

The process does not consume much memory.

This issue can be reproduced with SDK sample TEXT_OCR.

PDF is attached.

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 12:10 pm
by Will - Tracker Supp
Hi uhonermann,

Thanks for the post and sample - Can you advise on the specific version and build of the DLL you're using?

Cheers,

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 12:11 pm
by uhonermann
The following message is displayed in the command window prior to the crash:


"start >= 0 && start + num <= length_:Error:Assert failed:in file d:\workprg\pdf5\trunk\ocrlib\tesseract\tesseract-ocr\ccstruct\ratngs.cpp, line 321"

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 12:14 pm
by uhonermann
Version of OcrTools.x64.dll ist 7.0.0326.0001

Seems the file is too big, even as ZIP (19,9 MB).

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 12:17 pm
by uhonermann

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 12:42 pm
by Will - Tracker Supp
Hi uhonermann,

Thanks for that - You're using an older release, so please download and test the latest OCR module, and advise on whether or not the crash still occurs:
https://www.pdf-xchange.com/versio ... ge-pro-sdk

Thanks,

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 1:42 pm
by uhonermann
Tried with Version 328, no crash any more.
Will try again with the real application now.

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Wed Jan 23, 2019 2:29 pm
by Tracker Supp-Stefan
Glad to hear that Uwe!

Regards,
Stefan

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Thu Jan 24, 2019 10:02 am
by uhonermann
Ok, no crash in the real application, problem is solved.

Re: Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Posted: Thu Jan 24, 2019 10:06 am
by Sasha - Tracker Dev Team
:)