charlesw / tesseract

A .Net wrapper for tesseract-ocr
Apache License 2.0
2.25k stars 743 forks source link

Random System.AccessVoilationException #610

Open RamanSggs opened 2 years ago

RamanSggs commented 2 years ago

We are facing random access violation issue while doing ocr. We have developed web application and using ocr in it. our application is crashing intermittently. Below is sample code.

using(var engine = new TesseractEngine("training data path", "eng) { engine.DefaultPageSegMode = PageSegMode.SingleColumn; using(var img = Pix.LoadFromMemory()) { using (var page = engine.Process(img)) { using (var itr = page.GetIterator()) { } } } }

We are not getting anything in crash dump. So please help to troubleshoot the issue.

charlesw commented 2 years ago

Does it look like issue #231

On Fri, 3 June 2022, 8:59 pm RamanSggs, @.***> wrote:

We are facing random access violation issue while doing ocr. We have developed web application and using ocr in it. our application is crashing intermittently. Below is sample code.

using(var engine = new TesseractEngine("training data path", "eng) { engine.DefaultPageSegMode = PageSegMode.SingleColumn; using(var img = Pix.LoadFromMemory()) { using (var page = engine.Process(img)) { using (var itr = page.GetIterator()) { } } } }

We are not getting anything in crash dump. So please help to troubleshoot the issue.

— Reply to this email directly, view it on GitHub https://github.com/charlesw/tesseract/issues/610, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAB7HSHCGQXRQQ6HJDEAQ5TVNHQQVANCNFSM5XYETYUQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

RamanSggs commented 2 years ago

We are not getting any callstack. Last many calls are in ntdll.dll. We are using tesseract 4.1.1