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, Chris - Tracker Supp, Sean - Tracker, Tracker Supp-Stefan

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

Reproducable crash in OcrTools.x64.dll in function OCR_GetText

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

windream GmbH
Wasserstraße 219
44799 Bochum
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
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 »

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: 21
Joined: Wed Jan 23, 2019 11:49 am

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

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

windream GmbH
Wasserstraße 219
44799 Bochum
uhonermann
User
Posts: 21
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann »

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: 21
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann »

Uwe Honermann
Leiter Entwicklung

windream GmbH
Wasserstraße 219
44799 Bochum
User avatar
Will - Tracker Supp
Site Admin
Posts: 6815
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 »

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,
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: 21
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann »

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: 17823
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 »

Glad to hear that Uwe!

Regards,
Stefan
uhonermann
User
Posts: 21
Joined: Wed Jan 23, 2019 11:49 am

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

Post by uhonermann »

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

windream GmbH
Wasserstraße 219
44799 Bochum
Sasha - Tracker Dev Team
User
Posts: 5522
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 »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply