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\”, line 727, in showCoder
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\coder\”, line 2731, in setOutputWindow
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\”, line 6388, in Update
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\”, line 6582, in DoUpdate
File “C:\Program Files\PsychoPy\lib\site-packages\wx\lib\agw\aui\”, 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:


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