Impossible Innovations /L

Impossible Innovations /L

12.6k Downloads

[Support] Game silently crashes due to stack overflow

Monniasza opened this issue ยท 3 comments

commented

Error log:
KSP.log

After I installed Impossible Innovations, the game does not start up and crashes.

commented

Dude!! This thing is for KSP 1.1 !!!

The IFS, CRP, "Extraplanetary Launchpads" and even TweakScale are horribly outdated - and this explains the marvellous bork on IFS (one of the most resilient add'ons I know).

Delete everything that is not Year2200, delete the while Year2200/Plugins too (and not only KSPAPIExtensions), install the updated dependencies I mentioned and I think this thing can have better chances of running.

commented

We have some weird interaction on Year2200's DLL (KSPAPIExtensions).

[LOG 15:55:04.425] [UIPartActionsExtendedRegistration] Elected unopposed version= 1.7.5.0 at C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Year2200\Plugins\KSPAPIExtensions.dll
[EXC 15:55:04.429] MissingMethodException: void PopupDialog.SpawnPopupDialog(string,string,string,bool,UnityEngine.GUISkin)
        UnityEngine.DebugLogHandler:LogException(Exception, Object)
        ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
        UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

This triggers a bug on the runtime due a glitch on Reflection. I used to thing it was a Mono/C# problem, but I'm convinced it's something on KSP itself, as the switch to Unity 2019 (using MS C#'s runtime) didn't fixed the problem.

In a way or another, what really crashed your game we IFS (perhaps due a Toe Stomping Fest triggered by that glitch above, but I would need to reproduce your setup to check it properly).

[ERR 15:59:06.623] [IFS]: nextTankSetupEvent Error: The requested operation caused a stack overflow.

[EXC 15:59:07.955] StackOverflowException: The requested operation caused a stack overflow.
        InterstellarFuelSwitch.InterstellarFuelSwitch.nextTankSetupEvent () (at <ea4dd4781d454ca69f1a9cb5ca798a0f>:0)
<infinite repetitings of the last log entry until the tragic end).
commented

I would suggest to delete C:\Program Files (x86)\Steam\steamapps\common\Kerbal Space Program\GameData\Year2200\Plugins\KSPAPIExtensions.dll to see what happens.