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.

Exception thrown when OCR is used (1680x1050)

See original GitHub issue

i can 100 % reproduce that, it used to work with an older version, though i’m using 1680x1050 but even though “it is not working well” its already a huge time-saver

it doesn’t seem to affect the functionality, since after the error message the values are actually being passed and i just have to press enter

i have VS installed so here is the exception detail:

System.IndexOutOfRangeException was unhandled
  HResult=-2146233080
  Message=Index was outside the bounds of the array.
  Source=ARK Smart Breeding
  StackTrace:
       at ARKBreedingStats.Form1.doOCR(String imageFilePath, Boolean manuallyTriggered) in P:\dev\src\ARKStatsExtractor\ARKBreedingStats\Form1.cs:line 2810
       at ARKBreedingStats.Form1.btnReadValuesFromArk_Click(Object sender, EventArgs e) in P:\dev\src\ARKStatsExtractor\ARKBreedingStats\Form1.cs:line 3154
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at ARKBreedingStats.Program.Main() in P:\dev\src\ARKStatsExtractor\ARKBreedingStats\Program.cs:line 22
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException: 

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
Dessacommented, Feb 1, 2017

that worked, thanks!

0reactions
cadoncommented, Feb 1, 2017

It’s released, next try 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

exception when using tesseract ocr by java
i am trying to use tesseract ocr and ive got this exception while running it on eclipse. ... exception throwing code is -...
Read more >
OCR: Exception thrown by the target of an invocation
Hello, We have a Windows form application which utilizes GdPicture.NET v6 with the tesseract OCR plugin. Every once in a while a customer ......
Read more >
Question about resolution and pixel locations - For Beginners
For example if at 1680X1050 resolution at (100, 152) is where my health meter is at 10% and I hard ... I trust...
Read more >
Fix the OCR error Could Not Perform Recognition in Acrobat
When you start the Recognize Text Using OCR command, Adobe Acrobat returns the following error: Acrobat could not perform recognition (OCR) on ...
Read more >
Untitled
E office kota tangerang, What happens if you don't throw the head, Tiroler liga? ... How many ratings needed for app store, Instagram...
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