-
Notifications
You must be signed in to change notification settings - Fork 69
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
Vessel glitching and game crashing with stack overflow #4070
Comments
I forgot to mention that I'm using the latest version of Principia and that I narrowed down what mod or mods were crashing my game. |
Thanks for reporting, and for providing us with the information necessary to investigate the bug. Note to self: the recursive call that is causing trouble is, most surprisingly, this one. Interesting variables include:
@AidenUsername If you are able to reproduce the problem, could you give us a journal by following the instructions here? This would be useful in understanding how your game ended up in this situation. |
Possibly useful information extracted from the dump here:
|
So the proximate cause is that the evaluation of the elliptic integral requires an angle reduction, and that angle reduction fails because φ expressed in units of π doesn't fit on The original cause is more interesting, though: how do we end up with such a large value of φ, which surely is not physically realistic? The journal contains some interesting information:
Note how part 1179018494 ( The torque in the first call above is about 2×10⁶ N.m, or 200 tons at 1 metre. It's hard to believe that the poor fin would resist such a torque (and it only goes up after that). Presumably that torque represents the way that the fin opposes the rotation of the rocket, but it should not cause the rotation to invert: the real world doesn't work that way. I have a hunch that the part (and possibly others) is misconfigured. The scaling that happens here is suspicious. It's also notable that the angular drag is not scaled. This being said, I am not debugging other people's mods. You might want to try using Ferram Aerospace Research as it doesn't depend on somewhat arbitrary coefficients in a configuration file, but, as far as I can tell, properly computes the effect of aerodynamics on parts based on their geometry. |
Thanks for the reply and I am glad that I could help. |
Playing on 1.12.5 launched a vessel from launchpad and flying 100m/s or above using Wacapella mod parts (WAC Corporal) would suddenly go 100km/s+ and crashing the game.
The mods used during the crash were: CNAR, Taerobee, Wacapella, Module Manager. Mods are downloaded from CKAN.
crash.dmp
ERROR.20240818-003704.18540.log
error.log
INFO.20240818-003704.18540.log
KSP.log
Player.log
WARNING.20240818-003704.18540.log
The text was updated successfully, but these errors were encountered: