When attempting to open the Coder window for this experiment I received the following error:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app_psychopyApp.py”, line 727, in showCoder
self.coder.setOutputWindow(True)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\coder\coder.py”, line 2731, in setOutputWindow
self.paneManager.Update()
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\framemanager.py”, line 6388, in Update
self.DoUpdate()
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\framemanager.py”, line 6582, in DoUpdate
self.Repaint()
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\framemanager.py”, line 8773, in Repaint
client_dc = wx.BufferedDC(wx.ClientDC(self._frame), wx.Size(w, h))
wx._core.wxAssertionError: C++ assertion “m_buffer && m_buffer->IsOk()” failed at …..\src\common\dcbufcmn.cpp(134) in wxBufferedDC::UnMask(): invalid backing store
I’ve seen this error before and it is bugging me too (we’re trying to figure out the source of the problem) - for me closing coder and then recompiling to coder always fixes it (the issue happens for me when coder is open with a script currently open and I try to open another .py file or compile from builder to coder)
Will keep you posted when we find a better fix, but for now closing coder should work
Version: Psychopy 2023.2.3 Standalone
OS: Windows X
I’m running into the exact same error as mentioned in the above thread:
Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app_psychopyApp.py”, line 727, in showCoder
self.coder.setOutputWindow(True)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\coder\coder.py”, line 2731, in setOutputWindow
self.paneManager.Update()
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\framemanager.py”, line 6388, in Update
self.DoUpdate()
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\framemanager.py”, line 6582, in DoUpdate
self.Repaint()
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\framemanager.py”, line 8773, in Repaint
client_dc = wx.BufferedDC(wx.ClientDC(self._frame), wx.Size(w, h))
wx._core.wxAssertionError: C++ assertion “m_buffer && m_buffer->IsOk()” failed at …..\src\common\dcbufcmn.cpp(134) in wxBufferedDC::UnMask(): invalid backing store
This is evident when I do the following:
Psychopy will not launch or rather quickly closes when the application is selected. The splash screen is shown for a couple of seconds and then a terminal window pops up and then the system closes rapidly.
I can launch both the Psychopy Runner and the Psychopy Builder but when I try and compile a builder code to launch the Coder view and new GUI launches with the above error.
I’ve done a complete uninstall and reinstall and continue to have the same problem.
Any other suggestions on how to best address this error?