Got the project, thanks. I see the same crash and the state of the objects, though I'm not clear how they could get in that state. I tried various steps to reproduce (duplicate bones with slots, etc) but couldn't make it happen. I added some code that should fix it, though without being able to reproduce it I can't be sure.
Edit: Turns out these steps cause the issue:
viewtopic.php?f=3&t=752
Verified it is fixed for sure!