psychopy.org | Reference | Downloads | Github

Psychopy crashes at startup

I have been running an experiment locally for 3 months now without any issues. Couple of days ago, I tried to open it to make some changes and realized I couldn’t run the experiment. There were 4 windows (python, builder, runner and a compatibility information tab) and when I press OK on the compatibility information tab, all the windows close one after the other. I downloaded it from pavlovia and tried to run it again, to no avail. I get this behavior ONLY when I try to run this experiment, while all my other tasks work absolutely fine. I deleted appData but this didn’t fix the issue. Any ideas? I am using a windows 10 machine, psychopy 2020.1.3 standalone.

This is what is in the “last_app_load” txt document:

pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
3.9944 	INFO 	Loaded SoundDevice with PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
3.9945 	INFO 	sound is using audioLib: sounddevice
3.9945 	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).
4.0483 	INFO 	Loaded monitor calibration from ['2020_03_12 13:58']
4.0740 	INFO 	Loaded monitor calibration from ['2020_03_12 13:58']
4.3094 	DEBUG 	PavloviaLoggedIn
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
3.9944 	INFO 	Loaded SoundDevice with PortAudio V19.6.0-devel, revision 396fe4b6699ae929d3a685b3ef8a7e97396139a4
3.9945 	INFO 	sound is using audioLib: sounddevice
3.9945 	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).
4.0483 	INFO 	Loaded monitor calibration from ['2020_03_12 13:58']
4.0740 	INFO 	Loaded monitor calibration from ['2020_03_12 13:58']
4.3094 	DEBUG 	PavloviaLoggedIn
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]

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>