Description
Describe the issue
We're shipping onnxruntime.dll with our product, Camtasia. We originally shipped v1.18.0, which was stable. Later, we updated to v1.20.0, and we started getting crash reports from our telemetry.
To troubleshoot this issue, we built from the v1.20.0 tag so we could get .pdb debug symbols for onnxruntime.dll. We then reproduced the crash, which gave us the crash call stack shown here:
It's unclear (to us) what ETW event is triggering this crash, and we don't have reliable repro steps. But we do know the following:
- The crash was introduced between v1.18.0 and v1.20.0 with the introduction of ETW logging.
- The crash seems to occur at random (apparently from some ETW event), while our application is open, but can occur without any user interaction, and more often on resume from sleep.
- The crash .dmp always has the same call stack as shown above.
We did note that the crash mentioned in this commit has a very similar call stack. Unfortunately, that commit was prior to the v1.20.0 tag and the crash persists.
Crashes by OSVersion
To reproduce
- Launch Camtasia Windows 2025.1.1 (current version, as of 5/15/2025), which uses onnxruntime v1.20.0
- Wait. 😐
As shown above, the crash occurs in onnxruntime.dll stemming from an ETW callback. But we don't have reliable repro steps to trigger it. ☹
Urgency
As of today (5/15/2025), we have over 2,000 crash reports from users who have voluntarily submitted them (users get a crash dialog with Send / Don't Send buttons). We think most users click "Don't Send", so the actual number is much higher.
We would prefer to use the Microsoft pre-built binaries, but we're unsure how to mitigate this issue. We could fork the code and comment out the ETW logging, and build onnxruntime.dll ourselves, but that's not ideal. We have tried to roll forward to v1.21.0, but ran into some other crash issues with our CI tests. We've considered rolling back to v1.18.0, but any security issue would force us to roll forward, so that workaround is temporary at best. We're open to any workarounds, if you have them.
Platform
Windows
OS Version
Windows 10 or 11. Most common on Win 11 24H2 (v10.0.26100). See above screenshot.
ONNX Runtime Installation
Released Package
ONNX Runtime Version or Commit ID
https://github.com/microsoft/onnxruntime/tree/v1.20.0
ONNX Runtime API
C++
Architecture
X64
Execution Provider
DirectML
Execution Provider Library Version
DirectML.dll v1.15.2.0