-
Notifications
You must be signed in to change notification settings - Fork 7
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
error in running finalizer: ErrorException("task switch not allowed from inside gc finalizer") #11
Comments
Currently running into the same problem. The error appears when I run with 1.9.x but does not appear using version 1.7.2 (available on the cluster I'm using via |
BachoSeven
added a commit
to BachoSeven/homotopy-continuation
that referenced
this issue
Dec 26, 2023
Still getting this on 1.10.0-betaX. |
kbtang28
added a commit
to kbtang28/SlurmClusterManager.jl
that referenced
this issue
Jul 2, 2024
Today I ran into this with Julia 1.9.3. |
Does anyone have a minimal reproducible example for this bug? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not sure if this is something new to more recent Julia versions, but I’m getting the following when using SlurmClusterManager and Julia exits:
which seems to be due to the calls to
wait
/sleep
in the finalizer defined inlaunch()
:https://github.com/kleinhenz/SlurmClusterManager.jl/blob/0bfcf079889ce3a7f64b9aef1c1cbe3136bf5e44/src/slurmmanager.jl#L89-L94
See the docstring for
finalizer
:The following avoids the error, but I’m not sure if that still accomplishes the same as the existing code (although I haven’t had any issues so far):
A workaround which doesn’t involve changing the package source code is to call
finalize
on theSlurmManager
at the end of the program.The text was updated successfully, but these errors were encountered: