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.
from multiprocessing import Processfrom psychopy import core, visual, event
def test(): win = visual.Window([2560,1440],fullscr=True,allowGUI=True, screen=0, units='pix') event.waitKeys() core.quit()
p = Process(target=test)p.start()p.join()Also, I was under the impression that the new process would need to import all the psychopy modules it needs. Does the subprocess inherit modules?
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/8b774574-bf80-444e-8db5-d72bf4844321%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
-- Jonathan Peirce University of Nottingham http://www.peirce.org.uk
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system, you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/56CAEF97.10508%40gmail.com.
from billiard import Process, forking_enable, freeze_supportforking_enable(0)
from psychopy import core, visual, event
def test(): win = visual.Window([0,0],fullscr=True,allowGUI=True, screen=0, units='pix') event.waitKeys()
if __name__ == '__main__': freeze_support()