Opening Coder Error

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

Hi There,

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 :crossed_fingers:

2 Likes

It fixed it for me.
It may be relevant, but it appeared right after I added online additional resources.