Comments (3)
Same here on Windows, versions 1.16.0 to 1.17.3 work fine over multiple threads, however 1.18.0 gives Windows fatal exception: access violation
with the following stack trace produced by my own Windows SEH handler:
-----------
Caught unhandled exception...
-----------
Terminating from thread id 10152
Non-C++ exception:
Error: EXCEPTION_ACCESS_VIOLATION
Type: Read
Addr: 0x0
Trace:
40: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
39: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
38: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
37: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
36: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
35: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
34: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
33: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
32: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
31: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
30: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
29: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
28: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
27: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
26: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
25: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
24: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
23: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
22: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
21: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
20: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
19: ?: PyInit_onnxruntime_pybind11_state (onnxruntime_pybind11_state.pyd)
18: ?: pybind11::error_already_set::discard_as_unraisable (onnxruntime_pybind11_state.pyd)
17: ?: PyObject_MakeTpCall (python311.dll)
16: ?: PyObject_Vectorcall (python311.dll)
15: ?: PyEval_EvalFrameDefault (python311.dll)
14: ?: PyFunction_Vectorcall (python311.dll)
13: ?: PyFunction_Vectorcall (python311.dll)
12: ?: PyObject_CallObject (python311.dll)
11: ?: PyEval_EvalFrameDefault (python311.dll)
10: ?: PyFunction_Vectorcall (python311.dll)
9: ?: PyObject_CallObject (python311.dll)
8: ?: PyEval_EvalFrameDefault (python311.dll)
7: ?: PyFunction_Vectorcall (python311.dll)
6: ?: PyFunction_Vectorcall (python311.dll)
5: ?: PyObject_Call (python311.dll)
4: ?: PyInterpreterState_Delete (python311.dll)
3: ?: PyInterpreterState_Delete (python311.dll)
2: ?: recalloc (ucrtbase.dll)
1: ?: BaseThreadInitThunk (KERNEL32.DLL)
0: ?: RtlUserThreadStart (ntdll.dll)
from onnxruntime.
Tagging @PatriceVignola @smk2007 @fdwr for visibility.
from onnxruntime.
We’ve noted the issue with GPU resource contention due to multiple threads. This usage pattern is not recommended as it makes multiple threads request all of the GPU resources, and can cause contention. Also, the allocator in python API (both CUDA and DML) is explicitly not thread safe because it initializes the allocator as a global singleton due it living outside of the session.
We’re investigating the recent failure and will address it. Meanwhile, please avoid this pattern to prevent GPU contention.
from onnxruntime.
Related Issues (20)
- [Build] Unable to build ONNX Runtime against CUDA 12.5 HOT 8
- How to run test file HOT 2
- [JAVA] Ability to construct a Tensor from a GPU memory pointer HOT 5
- Request for Hidden States Access in Phi-3 with ONNX Runtime HOT 3
- [Web] LinkError when using custom built WASM artifacts HOT 1
- [Build] Unable to build onnxruntime from source (with oneDNN EP) HOT 2
- How QLinearConv layer absorb the Relu function HOT 4
- [Web] Latest version does nonstandard imports HOT 8
- [Feature Request] Extend quantization tool to support blocked quantization
- [Performance] Severe performance penalty with transformer model and DirectML HOT 5
- After adding preprocessing steps to the model, on inference an error throws: Non-zero status code returned while running Add node. HOT 2
- [Build] moduleNotfoundError: no module named 'onnxruntime.training' & 'No matching distribution found for onnxruntime-training' HOT 7
- Mismatch in results for TensorRT session and cuda Session HOT 4
- [Feature Request] DFT/STFT WebGPU op support (web/js) HOT 2
- [Feature Request] Assess performance capability before a model is loaded HOT 1
- [Feature Request] Error code for terminated Session::run
- [Bug] The accuracy of the A16W16 quantized model is very poor if per_channel is True HOT 3
- ONNXRuntime 1.18 crashing with TensorRT EP when dealing with big inputs HOT 5
- [Mobile] React-native OnnxruntimeJSIHelper install segfaults when registering functions HOT 1
- DML incorrect results, probably Split node HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from onnxruntime.