Error -- ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): macOS Catalina 10.15.7
PsychoPy version (e.g. 1.84.x): v2021.2.0
Standard Standalone? (y/n) If not then what?: yes
What are you trying to achieve?: run a simple experiment (I can’t run anything, not even a simple “hello” text)

What did you try to make it work?: I’ve made sure the privacy settings and security options are correct, I tried running the following in the terminal, but nothing works:

$defaults write org.python.python ApplePersistenceIgnoreState NO 
$ defaults write org.python.python3 ApplePersistenceIgnoreState NO
$ defaults write org.python.python ApplePersistenceIgnoreState YES

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
When I press Run, the screen turns gray (as if the experiment would start), but then it just crashes and the following error message appears:

2021-07-09 10:17:12.719 python[64404:2690691] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)

Experiment ended.

Also, this Problem Report came up a couple of times:
Process: python [64058]
Path: /Applications/
Identifier: org.opensciencetools.psychopy
Version: 2021.2.0 (2021.2.0)
Code Type: X86-64 (Native)
Parent Process: PsychoPy [64030]
Responsible: PsychoPy [64030]
User ID: 501

Date/Time: 2021-07-09 09:56:13.521 -0400
OS Version: Mac OS X 10.15.7 (19H2)
Report Version: 12
Bridge OS Version: 4.6 (17P6610)
Anonymous UUID: 2EA23EFA-44C6-9A70-CEFB-C90E23DD02C1

Sleep/Wake UUID: 176477C2-8DA7-4797-8653-840F06427F81

Time Awake Since Boot: 340000 seconds
Time Since Wake: 170 seconds

System Integrity Protection: enabled

Crashed Thread: 0 PTB mainthread Dispatch queue:

Exception Codes: 0x0000000000000001, 0x0000000000000000

Termination Signal: Illegal instruction: 4
Termination Reason: Namespace SIGNAL, Code 0x4
Terminating Process: exc handler [64058]

Application Specific Information:
BUG IN CLIENT OF LIBDISPATCH: dispatch_sync called on queue already owned by current thread
Invalid dylib load. Clients should not load the unversioned libcrypto dylib as it does not have a stable ABI.

Thread 0 Crashed:: PTB mainthread Dispatch queue:

I really don’t know what to do with this; I’ve looked into posts all over the internet, but I did not find any solution. I also don’t have any coding experience so I am a little bit lost here. I would really appreciate any help you can provide! Thank you so much in advance!

I run into the same issue, though my error message is a bit different:

ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/zn/vtpthrxs3k73zg4dl1g65gy40000gn/T/org.opensciencetools.psychopy.savedState

Also, I experience frames that are dropped but I don’t know if the two errors are related. I have also tried setting ApplePersistenceIgnoreState to no or yes, with no result.
Have you come up with a solution in the meantime @ledablaires?

Hello, perhaps this forum post will help: