I designed the experiment from scratch but I am still getting the same behavior. I followed what’s mentioned on this thread PsychoPy3 crashes at startup but this didn’t fix the problem. @Jon do you have any idea where this issue is coming from?
This is what’s in the last_app_load file after the experiment crashes:
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
8.4593 INFO Loaded SoundDevice with PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
8.4594 INFO sound is using audioLib: sounddevice
8.4594 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
Traceback (most recent call last):
File "C:\Program Files\PsychoPy3\Lib\site-packages\psychopy\app\psychopyApp.py", line 104, in <module>
main()
File "C:\Program Files\PsychoPy3\Lib\site-packages\psychopy\app\psychopyApp.py", line 100, in main
start_app()
File "C:\Program Files\PsychoPy3\Lib\site-packages\psychopy\app\psychopyApp.py", line 28, in start_app
app = PsychoPyApp(0, showSplash=showSplash)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\_psychopyApp.py", line 210, in __init__
self.onInit(testMode=testMode, **kwargs)
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\_psychopyApp.py", line 440, in onInit
logging.flush()
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\logging.py", line 300, in flush
logger.flush()
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\logging.py", line 286, in flush
target.write(formatted[thisEntry] + '\n')
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\logging.py", line 206, in write
stream.write(txt)
File "C:\Program Files\PsychoPy3\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0391' in position 52: character maps to <undefined>
Error in atexit._run_exitfuncs:
wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(478) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed
8.4593 INFO Loaded SoundDevice with PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
8.4594 INFO sound is using audioLib: sounddevice
8.4594 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\logging.py", line 300, in flush
logger.flush()
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\logging.py", line 286, in flush
target.write(formatted[thisEntry] + '\n')
File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\logging.py", line 206, in write
stream.write(txt)
File "C:\Program Files\PsychoPy3\lib\encodings\cp1252.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_table)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u0391' in position 52: character maps to <undefined>