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

The onnxruntime-genai.dll(0.5.1.0) crashes when the windows C++ application is closed. #1067

Open
luomaojiang2016 opened this issue Nov 16, 2024 · 1 comment

Comments

@luomaojiang2016
Copy link

Describe the bug
The C application using ONNX Runtime for inference works fine during inference, but crashes when the application is closed.

ucrtbase.dll!00007ffd0b19f6fe()	未知
onnxruntime-genai.dll!00007ffcb447c2d6()	未知
ucrtbase.dll!00007ffd0b173a93()	未知
ucrtbase.dll!00007ffd0b14042e()	未知
ucrtbase.dll!00007ffd0b13dddd()	未知
onnxruntime-genai.dll!00007ffcb446a79d()	未知
onnxruntime-genai.dll!00007ffcb446a8b9()	未知
ntdll.dll!00007ffd0d538b5f()	未知
ntdll.dll!00007ffd0d561566()	未知
ntdll.dll!00007ffd0d56115d()	未知
kernel32.dll!00007ffd0c507fab()	未知
ucrtbased.dll!00007ffc34661eda()	未知
ucrtbased.dll!00007ffc34661e85()	未知
ucrtbased.dll!00007ffc346621f6()	未知

LLMSDKDlgTest.exe!__scrt_common_main_seh() 行 297 C++
LLMSDKDlgTest.exe!__scrt_common_main() 行 331 C++
LLMSDKDlgTest.exe!wWinMainCRTStartup(void * __formal) 行 17 C++
kernel32.dll!00007ffd0c50257d() 未知
ntdll.dll!00007ffd0d56af08() 未知

@baijumeswani
Copy link
Collaborator

Are you calling OgaShutdown at the end of your application?

/* \brief Call this on process exit to cleanly shutdown the genai library & its onnxruntime usage
*/
OGA_EXPORT void OGA_API_CALL OgaShutdown();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants