microsoft / onnxruntime

ONNX Runtime: cross-platform, high performance ML inferencing and training accelerator
https://onnxruntime.ai
MIT License
14.54k stars 2.91k forks source link

[Build] Access Violation error on using 'new InferenceSession(filepath)' in 1.18.1 #21707

Open vishnupadakath1 opened 2 months ago

vishnupadakath1 commented 2 months ago

Describe the issue

I created a .net 6 console application using VS 2022. Installed Microsoft.ML.OnnxRunTime(1.18.1). Add the code 'var Session = new InferenceSession(modelFilePath);' . Run the project and it throws the below error. The program '[44616] ' has exited with code 3221225477 (0xc0000005) 'Access violation'.

The application works perfectly fine if I use OnnxRunTime 1.18.0. It looks like an issue with the latest runtime 1.18.1 . Could you please look into this ?

Thanks

Urgency

No response

Target platform

Windows 11

Build script

Create a .net console application using Visual studio 2022. Installed Microsoft.ML.OnnxRunTime(1.18.1) using Nuget package manager Add the code 'var Session = new InferenceSession(modelFilePath);' Run the app

Error / output

The program has exited with code 3221225477 (0xc0000005) 'Access violation'.

Visual Studio Version

2022/2019

GCC / Compiler Version

No response

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale due to inactivity and will be closed in 30 days if no further activity occurs. If further support is needed, please provide an update and/or more details.