OS Any (tried Windows 11, Mac OS Sonoma):
PsychoPy version: v2022.2.4
Standard Standalone? (y/n) If not then what?: Yes
I have a serial reaction time task in which subjects tap one of two circles on a screen when it is filled with a certain color. This is done for 230 trials for 5 blocks, for a total of 1150 trials. Everything works as intended, but after the experiment is done, the screen turns black and the computer freezes, sometimes for ~5 minutes, sometimes indefinitely. Once the screen returns to normal, sometimes the csv file doesn’t save.
Prior to reducing how much data it saved, I would occasionally get this error:
Error in atexit. run_exitfuncs:
Traceback (most recent call last):
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\data\experiment.py", line 422, in saveAsPickle
pickle.dump(self, f)
MemoryError
************### Experiment ended with exit code 8 [pid:16176]################
Obviously it seems something is wrong with the pickling process, but I’m not sure how to go about fixing this.
Here is a link to a github repository with the code for the experiment:
What did you try to make it work?:
I’ve tried to turn off data saving for every component we don’t need data from, and that has reduced how often it will crash without saving the csv, but it still always freezes.
What specifically went wrong when you tried that?:
The crashing/freezing persists, but without the error message most of the time.