I work on a wxPython plugin for Kicad, the circuit board designer.
Recently I made a change, to use wx.QueueEvent() to send log text to the main thread for processing as calling TextCtrl::WriteText() was resulting in hangs or missing text.
After this change users have been reporting these RuntimeErrors, Exception on python action plugin code · Issue #475 · Bouni/kicad-jlcpcb-tools · GitHub
Any pointers to what the issue is would be helpful. I’m stumped and we could revert the change but then we’d be back calling UI functions from outside of the UI thread (which I understand isn’t a good thing).