Error when setting up a new or editing an existing monitor profile

Hi everyone,

We have just installed PsychoPy 2021.1.3 on a brand new PC desktop running Windows 10 and an re-imaged iMac running macOS Big Sur. On the PC, when creating a new monitor profile or editing an existing monitor profile in the monitor centre, and on the iMac when editing an existing monitor profile Psychopy threw the following error:

wx._core.wxAssertionError: C++ assertion "GetEventHandler() == this" failed at ..\..\src\common\wincmn.cpp(475) in wxWindowBase::~wxWindowBase(): any pushed event handlers must have been removed

The above exception was the direct cause of the following exception:

SystemError: <class 'wx._core.IdleEvent'> returned a result with an error set

The new profile is nevertheless saved in the monitor centre. But we are not sure if our paradigms are actually using the parameter values specified in the profile when the win is called with the new profile.

Does anyone know what the error means and what might have caused it?