microsoft / microsoft/onnxruntime-genai

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

Open
#1,067 1 comment 0 reactions 0 assignees View on GitHub
crash platform:windows
Dominant language
C++
Stars
1.1k
Forks
354
Avg merge
2d 16h
Merged PRs (30d)
85

Description

**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() 未知

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Windows C++ application scenario and the provided shutdown stack trace, especially the onnxruntime-genai.dll frames reached during process exit. Reproduce the crash with the reported 0.5.1.0 version, identify the shutdown path involved, and verify that the application closes without a crash.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
desktop, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.