Onnxruntime crashes on some machines because ort::global<void>::api_ was nullptr #22406
Unanswered
LearnedLately
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I built a C++ application on Win 11 that dynamically links to onnxruntime.dll and it runs fine, but when some other Windows 11 users run the application it crashes in Env::Env(OrtLoggingLevel, char*) because ort::global::api_ was nullptr. I'm guessing this is a dll issue. I did distribute MSVCP140 and the VCRUNTIME140_1.dll in the application folder, though the crash minidump seems to show these are being loaded from C:\Windows\System32 instead of the application folder. Could this be causing the ort::global::api_ to be nullptr?
Beta Was this translation helpful? Give feedback.
All reactions