I’m using Python 3.7.8 and wxPython 4.1.1a1.dev4876… on macOS Catalina and similar (the wxPython is a slightly older daily build) on Windows 10.
I have a TreeCtrl in my program where users can sort items, using drag and drop, into an arbitrary order in the tree that meets their needs. It works great on Windows and crashes reliably on the SECOND data drop on macOS with the error message “zsh: illegal hardware instruction”.
I have attached a simple sample that exhibits the problem. Run the sample and try to sort the items in the tree control. On macOS, you can move one tree item, but not a second one using drag and drop.
The “DragAndDrop” sample in the wxPython Demo does not seem to show this problem, but the “CustomDragAndDrop” sample program also crashes on the second Drop action.
Any feedback is appreciated, as always.
DragAndDropMac.py (6.5 KB)