-
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
Forking on macOS #277
Labels
bug
Something isn't working
Comments
and then the same lines from "Break on" to "You MUST exec()." many many times. Modules before that work well (Testing get_diffuse_flux util functions. Testing get_rates util functions.) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running the test demo on macOS 10.15.7 (in a conda environment with python 3.10.11) results in an error
"The process has forked and you cannot use this CoreFoundation functionality safely. You MUST exec().
Break on THE_PROCESS_HAS_FORKED_AND_YOU_CANNOT_USE_THIS_COREFOUNDATION_FUNCTIONALITY___YOU_MUST_EXEC() to debug.”
To reproduce it run
python -m unittest discover tests/
Apparently fork() is unsafe on macOS, spawn* functions should be used instead.
I solved the problem of forking by adding the line
mp.set_start_method('forkserver')
below theif __name__ == "__main_":
line of multiprocess_wrapper.py.The text was updated successfully, but these errors were encountered: