-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Description
Describe the issue
Hello,
I am trying to use the latest onnxruntime release (1.21.X) (tried both 0 and 1), they work fine for unix and windows but for mac I get the following issue at the end of the inference when everything seems to be closing down:
libc++abi: terminating with uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument
No code changes from my side, the issue is only present on the latest onnxruntime release and only for Mac.
On previous releases all are working just fine, the only thing changed is the onnx runtime.
Googling says it has something todo with static mutex and the order in which they get destroyed/accessed - see more here.
This happens both on the cpu case and on the gpu (coreML) case.
I have got in my hands only macOS 12 and macOS13 and both fail. Also both arm64 and x86 fail on all scenarios.
Important to note is that I can compile and link against onnxruntime just fine, its during running that the issue appears. I believe more specifically when the inference has finished and things are getting destructed/closing down
To reproduce
For the current moment can't share a model to repro, and not sure If I will ever get approval for this.
Sharing to see if anyone has seen this or if it brings something in mind.
Urgency
No response
Platform
Mac
OS Version
MacOs 12 and MacOs13
ONNX Runtime Installation
Built from Source
ONNX Runtime Version or Commit ID
1.21.0 and 1.21.1
ONNX Runtime API
C++
Architecture
X64
Execution Provider
Default CPU
Execution Provider Library Version
No response