You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
libc++abi: terminating due to uncaught exception of type std::__1::system_error: mutex lock failed: Invalid argument #409
Hey @decahedron1 - any chance you could submit the patch upstream? We're using ort using the precompiled objects from the microsoft/onnxruntime repo (because they support a newer glibc version) - and might be hitting this issue.
I'd offer to submit the patch myself but unfortunately not familiar with the internals. So apologies for adding to the maintenance burden.
Please try to not declare OrtEnv as a global var. Even though @decahedron1 's PR fixed the crash, there might other problems. You may either leak the OrtEnv* pointer(if you use the latest onnx runtime main instead of the 1.22 release), or delete it before main is returned. Because we want to make sure that OrtEnv's destructor won't be called after Ort itself was already half destroyed.
Activity
decahedron1 commentedon Jun 17, 2025
This was fixed in pyke binaries with this patch: https://github.com/pykeio/ort-artifacts/blob/77ec493e3495901a361469951ab992181e52fd05/src/patches/all/0003-leak-logger-mutex.patch
You could build ONNX Runtime from source with that patch applied, or just ignore the error. I'd recommend the former.
utdemir commentedon Jun 23, 2025
Hey @decahedron1 - any chance you could submit the patch upstream? We're using
ortusing the precompiled objects from themicrosoft/onnxruntimerepo (because they support a newer glibc version) - and might be hitting this issue.I'd offer to submit the patch myself but unfortunately not familiar with the internals. So apologies for adding to the maintenance burden.
decahedron1 commentedon Jun 23, 2025
@utdemir Sure: https://github.com/microsoft/onnxruntime/pull/25134
snnn commentedon Jun 25, 2025
Please try to not declare OrtEnv as a global var. Even though @decahedron1 's PR fixed the crash, there might other problems. You may either leak the OrtEnv* pointer(if you use the latest onnx runtime main instead of the 1.22 release), or delete it before main is returned. Because we want to make sure that OrtEnv's destructor won't be called after Ort itself was already half destroyed.
T0.1.11 Phase 3 fix-forward: ADR-033 macOS ORT-loading test cfg-skip …
ci(ocr): tolerate macOS ONNX Runtime teardown SIGABRT after tests pass
feat(ocr): real OCR backend for Smart Redaction (RapidOCR/ONNX, bundl…