I sometimes get this error when running multi-threaded code (Basically nested @spawn calls) error in running finalizer: ErrorException("concurrency violation detected")
. Does anyone know what could cause this?. The funny thing is that the error doesn’t stop my program or affect my results. I haven’t been able to trace the cause so i can’t provide a MWE. why It only happens after loading the function for the first time. Am running Generic Linux binaries with julia v1.4.1
Any help would be appreciated
I’m having this issue as well, did you ever find a resolution?
In my use case, reducing the number of tasks being created seems to have helped. The problem might be related to run finalizers on their own thread · Issue #35689 · JuliaLang/julia (github.com)
1 Like