Closed alvinhochun closed 2 years ago
I have tried to reproduce the issue with no success. The code is called and critical section initialized. How you managed to get this error?
Are you testing with a Krita release? When I enabled the check in Application Verifier and start krita.exe in a debugger I always get the warning when starting up.
Oh, I see. This may be due to recent changes. It is harmless, but AppVerifier complains. So, there is a fix for that on 0728390fb452d26c445546a912c634f186d58381
Thanks for the fix! :)
I can't test it now, but as soon as we update our dependencies to include the fix I will test it and report back.
Verified that I no longer get the warning with AppVerifier after updating lcms to 2.13rc2. Thanks again!
https://bugs.kde.org/show_bug.cgi?id=444875
It appears that the critical section is to be initialized in
cmsCreateContext
, but in Krita we never call this function. This leads me to believe that placing the block of code which handles initialization of the critical section insidecmsCreateContext
is not correct.