Problem: can't run experiment, crashes immediately!

Psychopy won’t run any experiments. As soon as I put in participant name, it goes full screen gray, then crashes. I have a newer MacBook Pro with M1 chip. Please help!!

It says the following:

Running: /Users/____Desktop/PsychoPy_Simon_Tutorial/simon_lastrun.py

39.2095 INFO Loaded monitor calibration from [‘2022_03_12 15:23’]
2022-03-12 17:29:10.664 python[39503:614345] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/xd/cy6_wd1d7dv876nmtsq50tjw0000gn/T/org.opensciencetools.psychopy.savedState
2022-03-12 17:29:16.006 python[39503:614345] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fe51fde0c00>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2022-03-12 17:29:16.006 python[39503:614345] Warning: Expected min height of view: (<NSButton: 0x7fe51fde6210>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2022-03-12 17:29:16.008 python[39503:614345] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fe538509ac0>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
2022-03-12 17:29:16.009 python[39503:614345] Warning: Expected min height of view: (<NSPopoverTouchBarItemButton: 0x7fe538513920>) to be less than or equal to 30 but got a height of 32.000000. This error will be logged once per view in violation.
################ Experiment ended with exit code -4 [pid:39503] ################

What version of PsychoPy are you using?

if you are on mac please can you try:

Security and privacy ( in mac settings not psychopy) > privacy tab > allow psychopy accessibility and input monitoring

then restart psychopy and try again.

I believe this is a bug in version 2022.1.1 where sometimes error messages do not show (and restarting the program fixes it) but on mac if you are using psychopy the first time you need to enable keyboard access for the application in your mac settings.

Becca

Hello! Thanks so much for this! I was using the absolute newest version, 2022. But it now works for 2021.1.3, which I just downloaded. Although it says that the experiment was built in an updated version and it recommends changing some experiment setting. I’ll continue to build in this version, until newer version smoothed out. Good to know that that people are working on this. Thanks again.

1 Like

Thanks so much for this, Becca! I had the input setting, but not the accessibility. I think this helped it get running in the 2021.1.3 version at least. I greatly appreciate your help.

pleased you have something running - can confirm this is due to be fixed in the next bugfix release

Becca

great news! thanks again.