Crash when Kerbonaut exits the pod.
Every time I press exit Kerbal in flight (for example, an airplane), and collide with the wing of my airplane, Unity crashes.
Crash reproduction:
- Completely clean installation of KSP
- Installing Principia
- Let's start a new game in the sandbox
- Select any aircraft (let's say Aeris 3A)
- Takeoff
- Exit the pod, press "space" or not to press depends on the speed
- Kerbol will collide with part of the plane
- Unity crash
WARNING.20241205-171422.15196.log
ERROR.20241205-171422.15196.log
INFO.20241205-171422.15196.log
KSP.log
We’ll need the Unity crash files, notably Player.log.
We were able to reproduce the problem. It seems that the kerbal is subject to very large aerodynamic forces and torques that ultimately cause the physics computation of Principia to return NaNs. Sometimes, this confuses Unity and cause the crash above; at other times, it causes the vessel to self-destruct with a speed larger than the speed of light and the camera to move to a distant viewpoint.
It is unclear what is causing these large forces/torques. It's worth noting that the kerbal is a ragdoll at the time of the crash, which implies that KSP is subjecting it to physics even weirder than the normally weird KSP physics.
As far as we can tell, the problem doesn't occur when using FAR, so installing FAR is an easy fix. We'll keep looking into this bug, but it's actually pretty tough to figure out what KSP is trying to do.
I have had this same crash occur (with the exact same NaNs showing up at the end of the KSP.log file) when large spacecraft with sepratrons explode. Only the sepratrons appear with NaNs in KSP.log
Here's all my logs from one time it happened. KSP.log Player.log ERROR.20251016-060806.8076.log INFO.20251016-060806.8076.log FATAL.20251016-061058.8076.log WARNING.20251016-060806.8076.log