mockingbirdnest / Principia

š¯‘›-Body and Extended Body Gravitation for Kerbal Space Program
MIT License
772 stars 70 forks source link

Crash while in orbit (Linux, RSS/RP-1) #4127

Open jenden0 opened 2 weeks ago

jenden0 commented 2 weeks ago

I've had a sudden and mysterious crash a few times now on both the current and previous versions of principia. Unfortunately due to the very sudden/abrupt nature of the crash (immediate drop to desktop, no error messages, crash dialogs, or initial freezes) I have a hard time remembering exactly what I was doing at the time. I believe I was watching an active vessel, probably in map view. I was certainly not interacting with a flight plan (and did not have a flight plan created for the most recent crash). The vessel in question was in a stable orbit over earth. No other vessels are currently live.

I believe all cases I've been in a simulated flight from RP-1's simulator feature. It also seems to happen primarily/exclusively after an extended playing session (1-2+ hours of play time, potentially with some long breaks while the game is in the background paused). The first several launches never seem to be an issue.

The Player.log file (attached) contains a stack trace with some references to principia code, so I'm filing the bug here as a first step. INFO.20241103-165819.9118.log WARNING.20241103-165819.9118.log ERROR.20241103-165819.9118.log

gist isn't letting me post right now (maybe too big?), so here are drive links for the KSP.log and Player.log files: Player.log KSP.log

pleroy commented 2 weeks ago

I'm afraid that we won't be able to do much. As you point out the stack does have Principia frames. What Principia is doing at the point of the crash is to send lines to Unity to be drawn, and there are many frames on top of that (that are not decoded) and that probably are in Unity and/or the graphics libraries. Since this works everywhere (including on Linux), I am going to claim that Principia is not the root cause.

Note that, even if this you had a deterministic scenario, we probably wouldn't be able to debug it, as you are running Gentoo and this is not a distro that we support.