Psychopy crashes immediately upon launching it on iMac Apple M3 MacOS Sequoia 15

Hello everyone,

I was unable to open Psychopy after installation on my Macbook air (M1). It always says “Psychopy quits unexpectively”. I have added it in the Security & Privacy settings, for both Input Monitoring and Accessibility. Moreover, I remember after installation, a message popped up, saying “the git command requires command line developer tools”. I installed these tools although I didn’t know what they were. I attached a screenshot of the error report. I was just wondering if anyone can help me sort out this problem

OK, I’ve found another possible cause of crashes on macos depending on how you shut down. If you closed all the windows before closing the app (which some people do if they come from Windows where closing the window and closing the app are synonymous) then PsychoPy stores the last open window as “None”. That then confuses PsychoPy when you next open because it tries to get the views back to the previous state and there is none.
This will be an easy one to fix now I’ve found it but, in the meantime, you can:
edit your file ~/.psychopy3/appData.cfg to include

lastFrame = builder

and then make sure you close the app by Cmd-Q rather than closing the windows

Ah, cool. This wasn’t the case for me initially as the crash happened right after installing on a brand new “virgin” machine. And it always drove me nuts that you closed the window to quit the app.

Yes @LKCormack the first issue (that solved things for you) was definitely also a problem. But I was puzzled that, when we found that issue a small number of people still had problems, and some of them it was after the first launch. I think this was the cause of that second group.

There will be a 2024.2.4 very soon

Hopefully that will be the end of it! :wink:

1 Like

Hi, I am having problem with starting Psychopy. It says it’s quit immediately because of a crash. My laptop is M2 Macbook, running on Sonoma version 14.2.This is my translated report.

Translated Report (Full Report Below)

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

Date/Time: 2024-10-30 18:17:56.9932 +0000
OS Version: macOS 14.2 (23C64)
Report Version: 12
Anonymous UUID: 24D5B6E6-FB76-3A86-CBC8-61FB932F712D

Sleep/Wake UUID: 6BB17C8F-B6E0-4764-8D61-4F1CB07AA82D

Time Awake Since Boot: 12000 seconds
Time Since Wake: 4849 seconds

System Integrity Protection: enabled

Notes:
PC register does not match crashing frame (0x0 vs 0x7FF895746A78)

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 [12069]

Application Specific Information:
abort() called

Error Formulating Crash Report:
PC register does not match crashing frame (0x0 vs 0x7FF895746A78)

Thread 0 Crashed:: PTB mainthread Dispatch queue: com.apple.main-thread
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518e7a2 __pthread_kill + 10
2 libsystem_pthread.dylib 0x7ff8051c6f30 pthread_kill + 262
3 libsystem_c.dylib 0x7ff8050e5a49 abort + 126
4 libsystem_malloc.dylib 0x7ff804ff126a malloc_vreport + 885
5 libsystem_malloc.dylib 0x7ff804ff46ba malloc_report + 151
6 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x129714281 wxWindowBase::DestroyChildren() + 113
7 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x12952e5bd wxNonOwnedWindow::~wxNonOwnedWindow() + 93
8 _core.cpython-310-darwin.so 0x1283c8df2 sipwxFrame::~sipwxFrame() + 50
9 libwx_baseu-3.2.0.3.0.dylib 0x1137ceb39 wxAppConsoleBase::ProcessIdle() + 169
10 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x129625556 wxAppBase::ProcessIdle() + 22
11 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x1295746aa wxApp::ProcessIdle() + 26
12 libwx_baseu-3.2.0.3.0.dylib 0x1138af81c wxCFEventLoop::OSXCommonModeObserverCallBack(__CFRunLoopObserver*, int, void*) + 92
13 CoreFoundation 0x7ff8052a2ccc CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 23
14 CoreFoundation 0x7ff8052a2bf1 __CFRunLoopDoObservers + 493
15 CoreFoundation 0x7ff8052a22a7 __CFRunLoopRun + 1158
16 CoreFoundation 0x7ff8052a1859 CFRunLoopRunSpecific + 557
17 Foundation 0x7ff80619d481 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 216
18 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x1295df215 wxGUIEventLoop::DoDispatchTimeout(unsigned long) + 197
19 libwx_baseu-3.2.0.3.0.dylib 0x1138afdd2 wxCFEventLoop::DispatchTimeout(unsigned long) + 34
20 libwx_baseu-3.2.0.3.0.dylib 0x1138aff5a wxCFEventLoop::OSXDoRun() + 186
21 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x1295df7fe wxModalEventLoop::OSXDoRun() + 110
22 libwx_baseu-3.2.0.3.0.dylib 0x1138b007d wxCFEventLoop::DoRun() + 29
23 libwx_baseu-3.2.0.3.0.dylib 0x1138020a7 wxEventLoopBase::Run() + 167
24 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x12952c9fd wxDialog::ShowModal() + 93
25 libwx_osx_cocoau_core-3.2.0.3.0.dylib 0x1297da96b wxShowTip(wxWindow*, wxTipProvider*, bool) + 43
26 _adv.cpython-310-darwin.so 0x12b6c6d50 0x12b6bd000 + 40272
27 Python 0x10b5e1f04 0x10b4f7000 + 962308
28 Python 0x10b57ab14 _PyObject_MakeTpCall + 132
29 Python 0x10b6bc5a3 0x10b4f7000 + 1856931
30 Python 0x10b6b285a _PyEval_EvalFrameDefault + 24122
31 Python 0x10b6ab04f 0x10b4f7000 + 1785935
32 Python 0x10b57ebdf 0x10b4f7000 + 555999
33 Python 0x10b57b645 PyVectorcall_Call + 149
34 Python 0x10b6b2fb2 _PyEval_EvalFrameDefault + 26002
35 Python 0x10b6ab04f 0x10b4f7000 + 1785935
36 Python 0x10b57ae26 _PyObject_FastCallDictTstate + 214
37 Python 0x10b610089 0x10b4f7000 + 1151113
38 Python 0x10b606922 0x10b4f7000 + 1112354
39 Python 0x10b57ab14 _PyObject_MakeTpCall + 132
40 Python 0x10b6bc5a3 0x10b4f7000 + 1856931
41 Python 0x10b6b295c _PyEval_EvalFrameDefault + 24380
42 Python 0x10b6ab04f 0x10b4f7000 + 1785935
43 Python 0x10b6bc4df 0x10b4f7000 + 1856735
44 Python 0x10b6b295c _PyEval_EvalFrameDefault + 24380
45 Python 0x10b6ab04f 0x10b4f7000 + 1785935
46 Python 0x10b6bc4df 0x10b4f7000 + 1856735
47 Python 0x10b6b28a1 _PyEval_EvalFrameDefault + 24193
48 Python 0x10b6ab04f 0x10b4f7000 + 1785935
49 Python 0x10b6bc4df 0x10b4f7000 + 1856735
50 Python 0x10b6b28a1 _PyEval_EvalFrameDefault + 24193
51 Python 0x10b6ab04f 0x10b4f7000 + 1785935
52 Python 0x10b6a514d 0x10b4f7000 + 1761613
53 Python 0x10b5e2706 0x10b4f7000 + 964358
54 Python 0x10b6bc4df 0x10b4f7000 + 1856735
55 Python 0x10b6b28a1 _PyEval_EvalFrameDefault + 24193
56 Python 0x10b6ab04f 0x10b4f7000 + 1785935
57 Python 0x10b6bc4df 0x10b4f7000 + 1856735
58 Python 0x10b6b28a1 _PyEval_EvalFrameDefault + 24193
59 Python 0x10b6ab04f 0x10b4f7000 + 1785935
60 Python 0x10b7209fd 0x10b4f7000 + 2267645
61 Python 0x10b7201bd _PyRun_SimpleFileObject + 365
62 Python 0x10b723cad PyRun_SimpleFileExFlags + 109
63 PsychoPy 0x100ae6ec5 0x100ae2000 + 20165
64 PsychoPy 0x100ae5357 main + 257
65 dyld 0x200b5f386 start + 1942

Thread 1:: com.apple.rosetta.exceptionserver
0 runtime 0x7ff7ffe59294 0x7ff7ffe55000 + 17044

Thread 2:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 3:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 4:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 5:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 6:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 7:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 8:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 9:
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff80518a5ce __psynch_cvwait + 10
2 libsystem_pthread.dylib 0x7ff8051c776b _pthread_cond_wait + 1211
3 interpreter.so 0x12cd53ba3 th_worker(void*) + 115
4 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
5 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 10:: com.apple.NSEventThread
0 ??? 0x7ff895746a78 ???
1 libsystem_kernel.dylib 0x7ff805187a2e mach_msg2_trap + 10
2 libsystem_kernel.dylib 0x7ff805195e3a mach_msg2_internal + 84
3 libsystem_kernel.dylib 0x7ff80518eb62 mach_msg_overwrite + 653
4 libsystem_kernel.dylib 0x7ff805187d1f mach_msg + 19
5 CoreFoundation 0x7ff8052a3909 __CFRunLoopServiceMachPort + 143
6 CoreFoundation 0x7ff8052a237c __CFRunLoopRun + 1371
7 CoreFoundation 0x7ff8052a1859 CFRunLoopRunSpecific + 557
8 AppKit 0x7ff80896efac _NSEventThread + 122
9 libsystem_pthread.dylib 0x7ff8051c7202 _pthread_start + 99
10 libsystem_pthread.dylib 0x7ff8051c2bab thread_start + 15

Thread 11:
0 runtime 0x7ff7ffe7794c 0x7ff7ffe55000 + 141644

Thread 12:
0 runtime 0x7ff7ffe7794c 0x7ff7ffe55000 + 141644

Thread 13:
0 runtime 0x7ff7ffe7794c 0x7ff7ffe55000 + 141644

Thread 14:
0 runtime 0x7ff7ffe7794c 0x7ff7ffe55000 + 141644

Thread 15:
0 runtime 0x7ff7ffe7794c 0x7ff7ffe55000 + 141644

Thread 16:
0 runtime 0x7ff7ffe7794c 0x7ff7ffe55000 + 141644

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x0000000000000000
rdi: 0x0000000000000050 rsi: 0x0000000200c05240 rbp: 0x0000000000000000 rsp: 0x000000000000002e
r8: 0x000000030573cab8 r9: 0x0000000000000000 r10: 0x0000000000000000 r11: 0x0000000000000000
r12: 0x0000000000000103 r13: 0x0000000000000000 r14: 0x0000000200c05240 r15: 0x0000000000000016
rip: rfl: 0x0000000000000287
tmp0: 0xffffffffffffffff tmp1: 0x00007ff895746a4c tmp2: 0x00007ff80518e798