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

multiprocessing Python 3.8 macOS #628

Open
joachimwolff opened this issue Nov 9, 2020 · 0 comments
Open

multiprocessing Python 3.8 macOS #628

joachimwolff opened this issue Nov 9, 2020 · 0 comments
Assignees
Labels

Comments

@joachimwolff
Copy link
Collaborator

Python changed in version 3.8 for macOS the start method from 'fork' to 'spawn', because fork is considered as unsafe. However, our usage of multiprocessing leads to crashes with the new start method. A workaround is to set the start method manually to 'fork':

import multiprocessing as mp
mp.set_start_method('fork')

This is done starting with HiCExplorer 3.6 version to support Python 3.8 on Linux and macOS. In the long run, this issue should be fixed.

https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods
https://bugs.python.org/issue33725

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

No branches or pull requests

1 participant