I cannot open Psychopy 2024.2.3 on macOS 14.6.1

It was working for several weeks then I made same changes to a code and now I can’t open it. I copied new code to the ‘welcome file’ called something like main.py (I don’t remember the exact name). I tried reinstalling several times without any success.
Here is the first parts of my error message:


Translated Report (Full Report Below)

Process: PsychoPy [4164]
Path: /Applications/PsychoPy.app/Contents/MacOS/PsychoPy
Identifier: org.opensciencetools.psychopy
Version: 2024.2.3 (2024.2.3)
Code Type: X86-64 (Native)
Parent Process: launchd [1]
User ID: 501

Date/Time: 2024-10-16 12:35:25.9583 +0200
OS Version: macOS 14.6.1 (23G93)
Report Version: 12
Bridge OS Version: 8.6 (21P6074)
Anonymous UUID: 981CC4EC-DFCD-F736-F6C8-031F38400D6F

Sleep/Wake UUID: FEC3C982-09C3-4C6E-9EBE-B12BA4DB339A

Time Awake Since Boot: 13000 seconds
Time Since Wake: 2071 seconds

System Integrity Protection: enabled

Crashed Thread: 0 PTB mainthread Dispatch queue: com.apple.main-thread

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000

Termination Reason: Namespace SIGNAL, Code 6 Abort trap: 6
Terminating Process: PsychoPy [4164]

Application Specific Information:
abort() called

Kernel Triage:
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter
VM - (arg = 0x3) mach_vm_allocate_kernel failed within call to vm_map_enter

Thread 0 Crashed:: PTB mainthread Dispatch queue: com.apple.main-thread

Could you move these 2 files somewhere and restart the app, to see if that fixes it:
~/.psychopy3/appData.cfg
~/.psychopy3/userPrefs.cfg
(it can help if you go to your home folder and do Cmd-Shift-. to show hidden files)

Quite often the issue is a corrupt prefs/config file

Thank you, Jon!
appData.cfg is doing it (Psychopy opens when I move it). On the other hand, every single time I close the app, the issue comes back; I have to remove the regenerated appData.cfg each time I want to open Psychopy.

Thanks @Domonkos_Nagy
I’ll contact you on email, in the hope you can send over a copy of the appdata.cfg breaking the app, so I can try to track down what setting in there is breaking things