Open dev-jam opened 1 year ago
Thanks. It seems that different multiprocessing methods have different issues on different systems, so I don't want to revert this commit just yet. As a hacky workaround, you can now specify the multiprocessing method on Linux by setting the OPENSESAME_MULTIPROCESSING_METHOD
environment variable. In other words, running the following command in the terminal will allow you to change the method from spawn
to fork
:
export OPENSESAME_MULTIPROCESSING_METHOD=fork && opensesame
Let's keep this on the radar.
Thanks! That is an elegant and easy to maintain solution/workaround. I put a conf file with this env variable in /etc/environment.d and it works perfectly.
The new spawn method for multiprocessing makes opensesame on debian bullseye (python 3.9) and bookworm (python 3.10) unusable on my machines. The main window crashes but it keeps the experiment running for some time. This happens both with psychopy and expyriment as backend.
When I comment out the new method in the following commit, everything works fine again:
commit: https://github.com/open-cogsci/OpenSesame/commit/b42a91feeb341fe5d35e5b20ed21a9a463a327f7
Some relevant debug info:
The last error seems like a bug in python 3.10
Machines I tested were nvidia and intel gpu machines.