-
Notifications
You must be signed in to change notification settings - Fork 606
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OpenImageIO.dll can freeze at app exit #1795
Comments
any news on this one? |
We have the same issue in AliceVision/Meshroom. Is it something that can be addressed in OpenImageIO? |
@fabiencastan did you try |
@devernay Where can I apply this work around in AliceVision/Meshroom? Any hint? |
At app startup, but it will turn off all multithreading in OIIO - significantly decrease performance in ImageAlgo for example... |
Need to test if the problem still exists after the merge of #2013. |
@yann-lty I built your modified oiio, and the problem seems solved! Thanks for you work! |
I can confirm, that it has been resolved (1.8.16) |
…on#1795) * Tentative fix for macos failure Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> * checking for llvm@15 instead as that version is installed by homebrew in the runner Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> * Trying to trigger the dependencies workflow by making a temporary changes in it. Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> * Using same version of compiler as LLVM_ROOT when building OSL Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> * Adding LLVM_ROOT for macOS only and testing the usage of "llvm" only instead of llvm@15. Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> * Changing back to llvm@15 Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> * last test to confirm Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> * removing temporary change in dependencies_workflow Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com> --------- Signed-off-by: Cédrik Fuoco <cedrik.fuoco@autodesk.com>
Problem
OpenImageIO.dll freezes on some Windows 7 machines at application exit.
I've debug this issue and it freezes in thread.cpp at line 205:
this->cv.notify_all(); // stop all waiting threads
The problem is similar to:
https://social.msdn.microsoft.com/Forums/en-US/7f91e360-2108-40ca-8728-e295f17cb26b/visual-c-2015-stdconditionvariablenotifyall-may-get-stuck?forum=vcgeneral
It can be related to: #1572
Expected behavior:
Providing public Initialise/DeInitialise functions could be a stable solution.
Versions
The text was updated successfully, but these errors were encountered: