Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ObjectDetection-Onnx System.AccessViolationException: 'Attempted to read or write protected memory. #7359

Open
eddylai opened this issue Jan 8, 2025 · 0 comments
Labels
untriaged New issue has not been triaged

Comments

@eddylai
Copy link

eddylai commented Jan 8, 2025

System Information (please complete the following information):

  • OS & Version: Windows 10/11
  • ML.NET Version: ML.NET v1.6
  • .NET Version: .NET 8.0

Describe the bug
bulild and run the download OnnxObjectDetectionApp code got exception:
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
(Visual Studo 2022 17.13.0)

To Reproduce
Steps to reproduce the behavior:

  1. open project samples\csharp\end-to-end-apps\ObjectDetection-Onnx\OnnxObjectDetection.sln
  2. buld and run OnnxObjectDetectionApp
  3. See error

Expected behavior
renders a live-stream of the device's web cam, runs the video frames through an object detection model using ML.NET, and paints bounding boxes with labels indicating the objects detected in real-time.

Screenshots, Code, Sample Projects

Image

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged label Jan 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
untriaged New issue has not been triaged
Projects
None yet
Development

No branches or pull requests

1 participant