Skip to content
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

pathos.helpers.mm.Process.start() not thread-safe on MacOS #245

Open
xiay-lcw opened this issue Aug 28, 2022 · 2 comments
Open

pathos.helpers.mm.Process.start() not thread-safe on MacOS #245

xiay-lcw opened this issue Aug 28, 2022 · 2 comments

Comments

@xiay-lcw
Copy link

xiay-lcw commented Aug 28, 2022

It is probably MacOS problem since the error I got is exactly the same when I try to run os.fork() from multiple threads:

objc[73552]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called.
objc[73552]: +[__NSCFConstantString initialize] may have been in progress in another thread when fork() was called. We cannot safely call it or ignore it in the fork() child process. Crashing instead. Set a breakpoint on objc_initializeAfterForkError to debug.

Python Version:

Python 3.9.8 (main, Nov 10 2021, 03:55:42)
[Clang 13.0.0 (clang-1300.0.29.3)] on darwin

pathos version: 0.2.9

Works fine on linux.

@xiay-lcw
Copy link
Author

@mmckerns
Copy link
Member

This issue is with multiprocess, as noted here: uqfoundation/multiprocess#65.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants