I've run into a very game-breaking issue that causes the entire Unity Editor to freeze indefinitely during my game. I have been trying to get a reproducible sample for a bug report without sharing all of my code, but I think the issue lies within Unity Physics' BVH generation so it's extremely difficult to create an abstract sample that crashes since the BVH changes with any added/removed objects. Essentially, my game consists of physics objects being split and separated into independent objects, leading to compound colliders interacting with each other. Unity Physics typically does a great job of handling this (generally less than 10ms for a large world of compound colliders), but sometimes will completely lock up (same symptoms as an infinite while loop). I have confirmed that nothing in my code is infinitely looping, so it seems that Unity Physics is the culprit. (There's no errors in the console or logs.)
I haven't seen anyone online with this issue and it's very difficult to predict or analyze the issue because Unity just locks up, but has anyone here ever encountered an issue like this or have any ideas as to how to work around it or track down its source? I've been working on this all day so I'll take any ideas you've got.