Reproducable crash in OcrTools.x64.dll in function OCR_GetText

PDF-X OCR SDK is a New product from us and intended to compliment our existing PDF and Imaging Tools to provide the Developer with an expanding set of professional tools for Optical Character Recognition tasks

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan

Post Reply
uhonermann
User
Posts: 10
Joined: Wed Jan 23, 2019 11:49 am

Reproducable crash in OcrTools.x64.dll in function OCR_GetText

Post by uhonermann » Wed Jan 23, 2019 12:07 pm

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.
Uwe Honermann
Leiter Entwicklung

windream GmbH
Wasserstraße 219
44799 Bochum

User avatar
Will - Tracker Supp
Site Admin
Posts: 6806
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

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

Post by Will - Tracker Supp » Wed Jan 23, 2019 12:10 pm

Hi uhonermann,

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

Cheers,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

uhonermann
User
Posts: 10
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann » Wed Jan 23, 2019 12:11 pm

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"
Uwe Honermann
Leiter Entwicklung

windream GmbH
Wasserstraße 219
44799 Bochum

uhonermann
User
Posts: 10
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann » Wed Jan 23, 2019 12:14 pm

Version of OcrTools.x64.dll ist 7.0.0326.0001

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

windream GmbH
Wasserstraße 219
44799 Bochum

uhonermann
User
Posts: 10
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann » Wed Jan 23, 2019 12:17 pm

Uwe Honermann
Leiter Entwicklung

windream GmbH
Wasserstraße 219
44799 Bochum

User avatar
Will - Tracker Supp
Site Admin
Posts: 6806
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

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

Post by Will - Tracker Supp » Wed Jan 23, 2019 12:42 pm

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.tracker-software.com/versio ... ge-pro-sdk

Thanks,
If posting files to this forum, you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded.
Thank you.

Best regards

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

uhonermann
User
Posts: 10
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann » Wed Jan 23, 2019 1:42 pm

Tried with Version 328, no crash any more.
Will try again with the real application now.
Uwe Honermann
Leiter Entwicklung

windream GmbH
Wasserstraße 219
44799 Bochum

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 13548
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

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

Post by Tracker Supp-Stefan » Wed Jan 23, 2019 2:29 pm

Glad to hear that Uwe!

Regards,
Stefan

uhonermann
User
Posts: 10
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann » Thu Jan 24, 2019 10:02 am

Ok, no crash in the real application, problem is solved.
Uwe Honermann
Leiter Entwicklung

windream GmbH
Wasserstraße 219
44799 Bochum

User avatar
Sasha - Tracker Dev Team
User
Posts: 4325
Joined: Fri Nov 21, 2014 8:27 am
Contact:

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

Post by Sasha - Tracker Dev Team » Thu Jan 24, 2019 10:06 am

:)
Join us at Google+:
https://plus.google.com/+PDFXChangeEditorTS
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ

Post Reply