Changing theme to HiVisDark on v2022.2.2 causes crash on Mac

Switching the theme to HiVisDark on PsychoPy v2022.2.2 seems to cause a crash. I had to remove the UserPrefs.cfg file in the .psychopy3 folder to get PsychoPy to start working again. Not sure if this issue is specific to this theme or Mac.

Thanks for flagging this up, I’ll look into why that might be! Usually when changing a theme causes a crash it’s to do with the icons used, but HiVisDark uses the same icons as PsychopyDark, so does setting the theme to PsychopyDark also cause this?

Yep, Dark and MinimalDark also result in a crash. Sounds great thank you!

In that case I’d wager it’s something to do with the icons - I wonder if it’s to do with retina displays… Could be that it’s looking for an @2x version of a particular icon (as retina screens need all pixel sizes to be doubled) and not finding it. What error message do you get when it crashes?

Sorry for the late response, I’ve pasted the error report below. I tried to look through it, but I wasn’t able to understand anything! I’m only able to post part of the error report, so if there’s anything else that would be helpful let me know.


Translated Report (Full Report Below)

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

Exception Type: EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000000
Exception Codes: 0x0000000000000001, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Termination Reason: Namespace SIGNAL, Code 11 Segmentation fault: 11
Terminating Process: exc handler [12925]

VM Region Info: 0 is not in any region. Bytes before following region: 4294967296
REGION TYPE START - END [ VSIZE] PRT/MAX SHRMOD REGION DETAIL
UNUSED SPACE AT START
—>
__TEXT 100000000-100006000 [ 24K] r-x/rwx SM=COW …acOS/PsychoPy

Thread 0 Crashed:: PTB mainthread Dispatch queue: com.apple.main-thread
0 libwx_osx_cocoau_core-3.1.5.0.0.dylib 0x13ba6ed5d wxBitmapRefData::GetImage() const + 13
1 libwx_osx_cocoau_core-3.1.5.0.0.dylib 0x13bb2f1d7 0x13ba44000 + 963031
2 libwx_osx_cocoau_core-3.1.5.0.0.dylib 0x13bb32146 wxToolBar::DoInsertTool(unsigned long, wxToolBarToolBase*) + 1702
3 libwx_osx_cocoau_core-3.1.5.0.0.dylib 0x13bc4a78c wxToolBarBase::InsertTool(unsigned long, wxToolBarToolBase*) + 124
4 libwx_osx_cocoau_core-3.1.5.0.0.dylib 0x13bc4a6c6 wxToolBarBase::InsertTool(unsigned long, int, wxString const&, wxBitmap const&, wxBitmap const&, wxItemKind, wxString const&, wxString const&, wxObject*) + 166
5 libwx_osx_cocoau_core-3.1.5.0.0.dylib 0x13bc4a60f wxToolBarBase::DoAddTool(int, wxString const&, wxBitmap const&, wxBitmap const&, wxItemKind, wxString const&, wxString const&, wxObject*, int, int) + 79
6 _core.cpython-38-darwin.so 0x1223df1be 0x122000000 + 4059582
7 _core.cpython-38-darwin.so 0x1223d8d37 0x122000000 + 4033847
8 Python 0x10cc66838 0x10cc45000 + 137272
9 Python 0x10cc662a5 _PyObject_MakeTpCall + 373
10 Python 0x10cd34ea5 0x10cc45000 + 982693
11 Python 0x10cd31dd8 _PyEval_EvalFrameDefault + 25976
12 Python 0x10cc66bf0 0x10cc45000 + 138224
13 Python 0x10cd34e4c 0x10cc45000 + 982604
14 Python 0x10cd31c8a _PyEval_EvalFrameDefault + 25642
15 Python 0x10cc66bf0 0x10cc45000 + 138224
16 Python 0x10cd34e4c 0x10cc45000 + 982604
17 Python 0x10cd31d45 _PyEval_EvalFrameDefault + 25829
18 Python 0x10cc66bf0 0x10cc45000 + 138224
19 Python 0x10cd34e4c 0x10cc45000 + 982604
20 Python 0x10cd31cae _PyEval_EvalFrameDefault + 25678
21 Python 0x10cc66bf0 0x10cc45000 + 138224
22 Python 0x10cd34e4c 0x10cc45000 + 982604
23 Python 0x10cd31c8a _PyEval_EvalFrameDefault + 25642
24 Python 0x10cc66bf0 0x10cc45000 + 138224
25 Python 0x10cc68446 0x10cc45000 + 144454
26 Python 0x10cc686ac PyObject_CallFunctionObjArgs + 156
27 Python 0x10cc707a8 0x10cc45000 + 178088
28 Python 0x10cca76d8 _PyObject_GenericSetAttrWithDict + 136
29 Python 0x10cca6b49 PyObject_SetAttr + 73
30 Python 0x10cd2eada _PyEval_EvalFrameDefault + 12922
31 Python 0x10cc66bf0 0x10cc45000 + 138224
32 Python 0x10cc68446 0x10cc45000 + 144454
33 Python 0x10cc686ac PyObject_CallFunctionObjArgs + 156
34 Python 0x10cc707a8 0x10cc45000 + 178088
35 Python 0x10cca76d8 _PyObject_GenericSetAttrWithDict + 136
36 Python 0x10cca6b49 PyObject_SetAttr + 73
37 Python 0x10cd2eada _PyEval_EvalFrameDefault + 12922
38 Python 0x10cc66bf0 0x10cc45000 + 138224
39 Python 0x10cc68446 0x10cc45000 + 144454
40 Python 0x10cc686ac PyObject_CallFunctionObjArgs + 156
41 Python 0x10cc707a8 0x10cc45000 + 178088
42 Python 0x10cca76d8 _PyObject_GenericSetAttrWithDict + 136
43 Python 0x10cca6b49 PyObject_SetAttr + 73
44 Python 0x10cd2eada _PyEval_EvalFrameDefault + 12922
45 Python 0x10cc66bf0 0x10cc45000 + 138224
46 Python 0x10cc68446 0x10cc45000 + 144454
47 Python 0x10cc686ac PyObject_CallFunctionObjArgs + 156
48 Python 0x10cc707a8 0x10cc45000 + 178088
49 Python 0x10cca76d8 _PyObject_GenericSetAttrWithDict + 136
50 Python 0x10cca6b49 PyObject_SetAttr + 73
51 Python 0x10cd2eada _PyEval_EvalFrameDefault + 12922
52 Python 0x10cd35c94 _PyEval_EvalCodeWithName + 2804
53 Python 0x10cc66d8e _PyFunction_Vectorcall + 270
54 Python 0x10cc66085 _PyObject_FastCallDict + 133
55 Python 0x10cc676ff _PyObject_Call_Prepend + 143
56 Python 0x10ccbdb41 0x10cc45000 + 494401
57 Python 0x10ccb9039 0x10cc45000 + 475193
58 Python 0x10cc662a5 _PyObject_MakeTpCall + 373
59 Python 0x10cd34ea5 0x10cc45000 + 982693
60 Python 0x10cd31dd8 _PyEval_EvalFrameDefault + 25976
61 Python 0x10cd35c94 _PyEval_EvalCodeWithName + 2804
62 Python 0x10cc66d8e _PyFunction_Vectorcall + 270
63 Python 0x10cc692ba 0x10cc45000 + 148154
64 Python 0x10cd34e4c 0x10cc45000 + 982604
65 Python 0x10cd31dd8 _PyEval_EvalFrameDefault + 25976
66 Python 0x10cd35c94 _PyEval_EvalCodeWithName + 2804
67 Python 0x10cc66d8e _PyFunction_Vectorcall + 270
68 Python 0x10cc6939c 0x10cc45000 + 148380
69 Python 0x10cc665cd PyVectorcall_Call + 109
70 Python 0x10cd321b8 _PyEval_EvalFrameDefault + 26968
71 Python 0x10cd35c94 _PyEval_EvalCodeWithName + 2804
72 Python 0x10cc66d8e _PyFunction_Vectorcall + 270
73 Python 0x10cc66085 _PyObject_FastCallDict + 133
74 Python 0x10cc676ff _PyObject_Call_Prepend + 143
75 Python 0x10ccbdb41 0x10cc45000 + 494401
76 Python 0x10ccb9039 0x10cc45000 + 475193
77 Python 0x10cc662a5 _PyObject_MakeTpCall + 373
78 Python 0x10cd34ea5 0x10cc45000 + 982693
79 Python 0x10cd31dd8 _PyEval_EvalFrameDefault + 25976
80 Python 0x10cd35c94 _PyEval_EvalCodeWithName + 2804
81 Python 0x10cc66d8e _PyFunction_Vectorcall + 270
82 Python 0x10cd34e4c 0x10cc45000 + 982604
83 Python 0x10cd31dd8 _PyEval_EvalFrameDefault + 25976
84 Python 0x10cc66bf0 0x10cc45000 + 138224
85 Python 0x10cd34e4c 0x10cc45000 + 982604
86 Python 0x10cd31d45 _PyEval_EvalFrameDefault + 25829
87 Python 0x10cc66bf0 0x10cc45000 + 138224
88 Python 0x10cd34e4c 0x10cc45000 + 982604
89 Python 0x10cd31d45 _PyEval_EvalFrameDefault + 25829
90 Python 0x10cd35c94 _PyEval_EvalCodeWithName + 2804
91 Python 0x10cd2b784 PyEval_EvalCode + 100
92 Python 0x10cd28b72 0x10cc45000 + 932722
93 Python 0x10cca2e3f 0x10cc45000 + 384575
94 Python 0x10cd34e4c 0x10cc45000 + 982604
95 Python 0x10cd31d45 _PyEval_EvalFrameDefault + 25829
96 Python 0x10cc66bf0 0x10cc45000 + 138224
97 Python 0x10cd34e4c 0x10cc45000 + 982604
98 Python 0x10cd31d45 _PyEval_EvalFrameDefault + 25829
99 Python 0x10cd35c94 _PyEval_EvalCodeWithName + 2804
100 Python 0x10cd2b784 PyEval_EvalCode + 100
101 Python 0x10cd7ab99 PyRun_SimpleFileExFlags + 1081
102 PsychoPy 0x10000271c 0x100000000 + 10012
103 PsychoPy 0x1000010d7 main + 1705
104 PsychoPy 0x100000880 start + 52

Thread 1:: com.apple.rosetta.exceptionserver
0 runtime 0x7ff7ffde58e4 0x7ff7ffde1000 + 18660
1 runtime 0x7ff7ffdf2928 0x7ff7ffde1000 + 71976
2 runtime 0x7ff7ffdf40a4 0x7ff7ffde1000 + 77988

Thread 2:
0 runtime 0x7ff7ffe03814 0x7ff7ffde1000 + 141332

Thread 3:
0 runtime 0x7ff7ffe03814 0x7ff7ffde1000 + 141332

Thread 4:
0 runtime 0x7ff7ffde57dc 0x7ff7ffde1000 + 18396
1 runtime 0x7ff7ffdfc9e4 0x7ff7ffde1000 + 113124
2 runtime 0x7ff7ffdf5dc0 0x7ff7ffde1000 + 85440
3 runtime 0x7ff7ffdf6340 0x7ff7ffde1000 + 86848
4 runtime 0x7ff7ffe0386c 0x7ff7ffde1000 + 141420
5 libsystem_kernel.dylib 0x7ff814c3717a __workq_kernreturn + 10

Thread 5:: com.apple.NSEventThread
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c35aba mach_msg_trap + 10
2 CoreFoundation 0x7ff814d38df1 __CFRunLoopServiceMachPort + 319
3 CoreFoundation 0x7ff814d374af __CFRunLoopRun + 1329
4 CoreFoundation 0x7ff814d368a9 CFRunLoopRunSpecific + 567
5 AppKit 0x7ff8177fafd8 _NSEventThread + 132
6 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
7 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 6:
0 runtime 0x7ff7ffe03814 0x7ff7ffde1000 + 141332

Thread 7:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 8:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 9:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 10:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 11:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 12:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 13:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 14:
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c38506 __psynch_cvwait + 10
2 interpreter.cpython-38-darwin.so 0x17d998f8f th_worker(void*) + 191
3 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
4 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 15:: AMCP Logging Spool
0 ??? 0x7ff8a5202940 ???
1 libsystem_kernel.dylib 0x7ff814c35af6 semaphore_wait_trap + 10
2 caulk 0x7ff81db3108a caulk::concurrent::details::worker_thread::run() + 36
3 caulk 0x7ff81db30d4e void* caulk::thread_proxy<std::__1::tuple<caulk::thread::attributes, void (caulk::concurrent::details::worker_thread::)(), std::__1::tuplecaulk::concurrent::details::worker_thread* > >(void) + 41
4 libsystem_pthread.dylib 0x7ff814c724f4 _pthread_start + 125
5 libsystem_pthread.dylib 0x7ff814c6e00f thread_start + 15

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x00000000000002a8 rbx: 0x0000000000000000 rcx: 0x0000000000000000 rdx: 0x00000001828f1bb0
rdi: 0x0000000000000000 rsi: 0x00007ff83025121e rbp: 0x000000030418b1e0 rsp: 0x000000030418b1c0
r8: 0x0000000000000100 r9: 0x000000010aecfc50 r10: 0x000000013bfcca88 r11: 0x000000013bb2efb0
r12: 0x00000001828f1cc0 r13: 0x00000001828f1bb0 r14: 0x00000001828f1bb0 r15: 0x00000001828f1be8
rip: 0x000000013ba6ed5d rfl: 0x0000000000000202
tmp0: 0x0000000000000065 tmp1: 0x0000000000000065 tmp2: 0x000000013bb2f1d7

Binary Images:
0x13ba44000 - 0x13bf15fff libwx_osx_cocoau_core-3.1.5.0.0.dylib () <4fee96c1-006c-39e2-b33b-2cd78de96f41> /Applications/PsychoPy.app/Contents/Resources/lib/python3.8/wx/libwx_osx_cocoau_core-3.1.5.0.0.dylib
0x122000000 - 0x122577fff _core.cpython-38-darwin.so (
) /Applications/PsychoPy.app/Contents/Resources/lib/python3.8/wx/_core.cpython-38-darwin.so
0x10cc45000 - 0x10ce7cfff org.python.python (3.8.10, (c) 2001-2019 Python Software Foundation.) <7cd14e77-ce2d-311d-b166-d9e0d1170f39> /Applications/PsychoPy.app/Contents/Frameworks/Python.framework/Versions/3.8/Python
0x100000000 - 0x100005fff org.opensciencetools.psychopy (2022.2.2) /Applications/PsychoPy.app/Contents/MacOS/PsychoPy
0x7ff7ffde1000 - 0x7ff7ffe10fff runtime () /usr/libexec/rosetta/runtime
0x7ff814c35000 - 0x7ff814c6bfff libsystem_kernel.dylib (
) /usr/lib/system/libsystem_kernel.dylib
0x0 - 0xffffffffffffffff ??? () <00000000-0000-0000-0000-000000000000> ???
0x7ff814cb9000 - 0x7ff8151b9fff com.apple.CoreFoundation (6.9) <1d1db08b-810c-316e-b9d9-eecdff8ee6e3> /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
0x7ff81764e000 - 0x7ff8184dffff com.apple.AppKit (6.9) <9d3ab204-4858-3120-b002-5c38b02edec4> /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit
0x7ff814c6c000 - 0x7ff814c77fff libsystem_pthread.dylib (
) /usr/lib/system/libsystem_pthread.dylib
0x17d977000 - 0x17d99dfff interpreter.cpython-38-darwin.so (*) <18c1d5cf-f728-3bff-9946-2882c0e41242> /Applications/PsychoPy.app/Contents/Resources/lib/python3.8/numexpr/interpreter.cpython-38-darwin.so
0x7ff81db2f000 - 0x7ff81db51fff com.apple.audio.caulk (1.0) <0a60f9ec-f83c-388e-bcb1-43b785c997d1> /System/Library/PrivateFrameworks/caulk.framework/Versions/A/caulk

External Modification Summary:
Calls made by other processes targeting this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by this process:
task_for_pid: 0
thread_create: 0
thread_set_state: 0
Calls made by all processes on this machine:
task_for_pid: 0
thread_create: 0
thread_set_state: 0