question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unhandled exception in InteropRuntimeImplementer.TessApiSignaturesInstance on Windows Server 2019 with Tesseract 4/4.1

See original GitHub issue

Hi Charles,

For couple of days I’m trying to find out why I’m getting the unhandled exeception when calling tesseract using your wrapper (a couple of months I compiled and created nuget from your branch 321-tesseract-4 or the current develop 4.1.0-beta1) on Windows Server 2019 in my application compiled using x86 platform.

On my developper Windows 10 machine I have no issue. On server the MVCPP 2015-2019 are installed for x86 and x64.

I can reproduce the problem using your console sample application (and targeting net 4.7.2 for example [<TargetFrameworks>net45;net472;netcoreapp3.0</TargetFrameworks>] and using Any CPU or x86 platform): Exception non gérée : System.Runtime.InteropServices.SEHException: Un composant externe a levé une exception. à InteropRuntimeImplementer.TessApiSignaturesInstance.TessApiSignaturesImplementation.BaseApiRecognize(HandleRef handle, HandleRef monitor) à Tesseract.Page.Recognize() à Tesseract.Page.GetText() à Tesseract.ConsoleDemo.Program.Main(String[] args) dans C:\Users\ak\OneDrive\Dev\GitHub\tesseract-samples\src\Tesseract.ConsoleDemo\Program.cs:ligne 24

Remote debugging shows the following error: image

Do you have any ideas what is causing it?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:37 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
charleswcommented, Nov 15, 2020

FYI I’ve just released a new version 4.1.1 with the dlls built with AVX support disabled which should resolve theses issues. Sorry for the delay and thanks again @Soruk for identifying and sorting out this issue 😃

1reaction
Sorukcommented, Nov 3, 2020

No, it is not necessary to build nuget. I updated the DLLs and references to it and make some changes in order to build package (with Visual Studio 2019 there is an option on contextual menu to generate package)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unhandled exception when running Tesseract OCR
I am trying to use tesseract for the very first time and i get the following error when i compile: Unhandled exception at...
Read more >
Microsoft .Net Framework unhandled exception Category ...
Unhandled Exception : System.InvalidOperationException: Category does not exist. at System.Diagnostics.PerformanceCounterLib.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found