0xC0000005 on just library

I’m getting 0xC0000005 errors when I exit.
Python 3.12, wxPython 4.2.1

The following code fails on exit.

import wx


class app1(wx.App):
    def OnInit(self):
        return True

# --------------------------------- startup loop
if __name__ == "__main__":
    Dna = app1()

Process finished with exit code -1073741819 (0xC0000005)

So i created an entirely new Conda env and switched that over. And now it works. Not sure who or what was wrong, but now it’s working.

well, it’s enough just to import wx (nothing else) and in certain circumstances this error pops up, but the application runs perfect (PyQt6 doesn’t do it) :sweat_smile:

@cryptoref, can you try the latest version and see if the issue still occurs?

See: Problem with Python 3.12 on Windows - #3 by komoto48g