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.

AccessViolationException at OpenCvSharp.NativeMethods.videoio_VideoCapture_operatorRightShift_Mat

See original GitHub issue

Hi,

I capture live tv stream with`videocapture. I use this version 3.2.0.20170110
Sometimes my app crash with this error:

Application: AdsDetectionWF.exe Framework Version: v4.0.30319 Description: The process was terminated due to an unhandled exception. Exception Info: System.AccessViolationException at OpenCvSharp.NativeMethods.videoio_VideoCapture_operatorRightShift_Mat(IntPtr, IntPtr) at OpenCvSharp.VideoCapture.Read(OpenCvSharp.Mat) at AdsDetectionWF.MonitoringChannel.Start(Boolean, Boolean) at AdsDetectionWF.Form2+<>c__DisplayClass2_1.<button2_Click>b__0() at System.Threading.Tasks.Task.InnerInvoke() at System.Threading.Tasks.Task.Execute() at System.Threading.Tasks.Task.ExecutionContextCallback(System.Object) at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean) at System.Threading.Tasks.Task.ExecuteWithThreadLocal(System.Threading.Tasks.Task ByRef) at System.Threading.Tasks.Task.ExecuteEntry(Boolean) at System.Threading.Tasks.Task.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem() at System.Threading.ThreadPoolWorkQueue.Dispatch() at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback() `

Any suggestion ? thx for your help !

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bigjamcommented, Jan 23, 2017

24 hours with your code: it seems to run without crash… It sounds good. I’ll continue my test.

I have changed my code and i have “played” with opencv_ffmeg320 and OpenCvSharpExtern.dll x86 and x64 version … (My app is build in x86 and the 2 dll above is now x64 version in the parent directory, i don’t know if it’s correct ?)

Thanks for your help shimat !

0reactions
stale[bot]commented, Jan 2, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenCVSharp AccessViolationException in FindCirclesGrid
Since NativeMethods.calib3d_findCirclesGrid_InputArray(...) is called maybe something with an Unmanaged code attribute?
Read more >
AccessViolationException Class (System)
An access violation occurs in unmanaged or unsafe code when the code attempts to read or write to memory that has not been...
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