I just noticed that Slic3r is always crashing when I delete the first part in my parts list.
As long as I did not add any other part the delete button is grayed out. Adding a second part enables me to delete any of them. Deleting the second one in the list is fine. Deleting the first crashes Slic3r.
Windows 7 x64
Can you please provide detailed steps in order to reproduce the issue?
I hope you can reproduce that issue.
Okay, thank you. I'm able to reproduce this on Windows only. It looks like an ugly wxWidgets issue.
Bugfix: crash on Windows when deleting the first object part. #2774
After a long debugging session I was able to find the wxWidgets bug causing this behavior, and I pushed a workaround. The issue is now fixed, and Slic3r does not crash anymore. Thank you @cocoknight for reporting this.
Docs for wxTreeCtrl state that the DeleteChildren method "will not generate any events unlike Delete() method". However, close inspection of the wxWidgets code reveals that DeleteChildren is implemented in MSW as a call to Delete(). So it will generate events, including EVT_TREE_SEL_CHANGED.