-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Runtime issue with onnxruntime-win-x64-1.18.1 #21543
Comments
Tested all other release versions 1.12 - 1.18.0 and could load the library without the issue. |
Describe the issue Platform OS Version ONNX Runtime Installation ONNX Runtime Version or Commit ID ONNX Runtime API Architecture Execution Provider Notes |
It's obviously that we missed a DLL called msvcp140.dll in our system from your debug exception , so download the Microsoft Visual C++ 2015 - 2022 Redistributable according to https://answers.microsoft.com/en-us/windows/forum/all/vcruntime140dll-and-msvcp140dll-missing-in-windows/220f1caf-8eb9-413d-a7fe-1b13df1bfa5d and install it, now the issue got fixed. |
I encountered the same issue with The error is the same:
|
It is not enough. You need check what DLL was actually loaded. Because you may have multiple msvcp140.dll on the same machine. See: #21102 (comment) |
Updated our nuget packages to use this latest version in our deployed clients can confirm it's throwing access violation exceptions on all deployments. Rolled back to 1.16.3 and it's fine. |
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. |
i run on 1.16.3 but same error. |
Not a bug of ONNX Runtime. Please use a debugger to check which msvcp140.dll was loaded into the process and check the DLL's version. |
Describe the issue
With the latest version of the prebuilt release files downloaded from https://github.com/microsoft/onnxruntime/releases?page=1 , this specific download onnxruntime-win-x64-1.18.1.zip
I can correctly link the libraries and compile the project (i have stripped it down to the minimum dependencies) but whenever i execute it I get a runtime error before any code executes.
Exception thrown at 0x00007FFFBCA03080 (msvcp140.dll) in CoreORTwVS.exe: 0xC0000005: Access violation reading location 0x0000000000000000.
I have double checked the configuration of the project, have tested with both a cmake project and a Visual Studio project, made sure dlls are in the execution directory but still can't fix the issue.
Additionally, if i change the include and library files to the 1.12.1 release, I can load the dependencies and perform tests with different models with no issues at all.
To reproduce
Urgency
We are trying to migrate our application to the new releases of Onnxruntime, to use some new operators that our models need that are not found on older versions of the runtime
Platform
Windows
OS Version
Version 10.0.17763 Build 17763
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
1.18.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response
The text was updated successfully, but these errors were encountered: