Principia icon indicating copy to clipboard operation
Principia copied to clipboard

Crash when Kerbonaut exits the pod.

Open Draft3dd opened this issue 1 year ago • 4 comments

Every time I press exit Kerbal in flight (for example, an airplane), and collide with the wing of my airplane, Unity crashes.

Crash reproduction:

  1. Completely clean installation of KSP
  2. Installing Principia
  3. Let's start a new game in the sandbox
  4. Select any aircraft (let's say Aeris 3A)
  5. Takeoff
  6. Exit the pod, press "space" or not to press depends on the speed
  7. Kerbol will collide with part of the plane
  8. Unity crash

KSP WARNING.20241205-171422.15196.log ERROR.20241205-171422.15196.log INFO.20241205-171422.15196.log KSP.log

Draft3dd avatar Dec 05 '24 10:12 Draft3dd

We’ll need the Unity crash files, notably Player.log.

pleroy avatar Dec 05 '24 12:12 pleroy

Player.log

Draft3dd avatar Dec 05 '24 14:12 Draft3dd

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.

pleroy avatar Dec 24 '24 19:12 pleroy

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

bboy2812 avatar Oct 16 '25 10:10 bboy2812