Psychopy freezes - troubleshooting advice?

I also have this problem! The program works perfectly about 7/10 times I run it. But the other times, it becomes unresponsive on the final screen. The program should quit once the participant presses the spacebar, but sometimes it does not respond. This is a problem because the .csv data file does not save if the program does not quit properly.

I’m using psychopy v 1.90.2 on MacOS High Sierra v 10.13.6. The program was built in and runs from the coder view.

Here’s the code where the problem sometimes arises. The program remains on that final screen (with text displayed) regardless of which keys are pressed. When this happens, the only way to get rid of the final screen is to force quit, but the .csv data file does not save in those cases.

if end == 1:
    win.clearBuffer() #make screen black
    endText = visual.TextStim(win, text='Thanks!  You have finished the experiment.\n\nPlease notify the experimenter.', color='white', height=40, wrapWidth=winWidth)
    endText.draw()
    win.flip()
    event.waitKeys()
    core.quit()
1 Like