Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when Kerbonaut exits the pod. #4142

Open
Draft3dd opened this issue Dec 5, 2024 · 3 comments
Open

Crash when Kerbonaut exits the pod. #4142

Draft3dd opened this issue Dec 5, 2024 · 3 comments

Comments

@Draft3dd
Copy link

Draft3dd commented Dec 5, 2024

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

@pleroy
Copy link
Member

pleroy commented Dec 5, 2024

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

@Draft3dd
Copy link
Author

Draft3dd commented Dec 5, 2024

Player.log

@pleroy
Copy link
Member

pleroy commented Dec 24, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants