Jump to content

Stack Overflow crash


Recommended Posts

Uh, KSC, we have a problem.

In KSP 1.11.2 and 1.12.2, while flying a particular ship (Citadel 3) in solar orbit with a Jool intercept and maneuver nodes ahead, I'm getting a stack overflow, log spam and in 1.12.2 it also crashed to desktop.  I used Planning Node previously for this ship so that's my first suspicion. Only difference between the installs was [x]Science beta from LGG was only on 1.11.2.  Have 38 other mods installed with CKAN.

I'm seeing this on both versions... but again [x] Science wasn't on 1.12.2 so I don't know where this is coming from.  It does this at the start of every scene change, not just flight. Anybody see this in stock?

[LOG 15:03:21.904] ------------------- initializing flight mode... ------------------
[LOG 15:03:21.905] Loading Depletion Nodes
[LOG 15:03:21.905] DepNodeCount:  0
[LOG 15:03:21.905] Loading Biome Nodes
[LOG 15:03:21.905] BiomeNodeCount:  26
[LOG 15:03:21.906] Loading Planet Nodes
[LOG 15:03:21.906] PlanetNodeCount:  3
[ERR 15:03:22.019] [ScienceSubject] - Error in converting Situation InSpaceHigh_System.ArgumentException: Requested value 'InSpaceHigh_' was not found.
  at System.Enum+EnumResult.SetFailure (System.Enum+ParseFailureKind failure, System.String failureMessageID, System.Object failureMessageFormatArgument) [0x00023] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.Enum.TryParseEnum (System.Type enumType, System.String value, System.Boolean ignoreCase, System.Enum+EnumResult& parseResult) [0x0017a] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.Enum.Parse (System.Type enumType, System.String value, System.Boolean ignoreCase) [0x00010] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.Enum.Parse (System.Type enumType, System.String value) [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at ScienceUtil.GenerateLocalizedTitle (System.String id, System.Boolean skipAsteroidsComets) [0x0019e] in <06f13185617646e5bc801baeab53ab75>:0 

[ERR 15:03:22.019] [ScienceSubject] - Error in converting Situation InSpaceHigh_System.ArgumentException: Requested value 'InSpaceHigh_' was not found.
  at System.Enum+EnumResult.SetFailure (System.Enum+ParseFailureKind failure, System.String failureMessageID, System.Object failureMessageFormatArgument) [0x00023] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.Enum.TryParseEnum (System.Type enumType, System.String value, System.Boolean ignoreCase, System.Enum+EnumResult& parseResult) [0x0017a] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.Enum.Parse (System.Type enumType, System.String value, System.Boolean ignoreCase) [0x00010] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at System.Enum.Parse (System.Type enumType, System.String value) [0x00000] in <ad04dee02e7e4a85a1299c7ee81c79f6>:0 
  at ScienceUtil.GenerateLocalizedTitle (System.String id, System.Boolean skipAsteroidsComets) [0x0019e] in <06f13185617646e5bc801baeab53ab75>:0 

[LOG 15:03:22.031] [ScenarioDestructibles]: Loading... 0 objects registered
[LOG 15:03:22.032] [ScenarioUpgradeableFacilities]: Loading... 0 objects registered
[LOG 15:03:22.038] 8/21/2021 3:03:22 PM,KerbalAlarmClock,BaseLoadDone. Alarms Count (Should be 0):0
[LOG 15:03:22.043] 8/21/2021 3:03:22 PM,KerbalAlarmClock,Found 0 Maneuver Nodes to deserialize

Also seeing this error on Simple Fuel Switch when loading Citadel 3 but this ship is stock. 

[ERR 17:33:20.712] Module ModuleSimpleFuelSwitch threw during OnStart: System.NullReferenceException: Object reference not set to an instance of an object
  at SimpleFuelSwitch.ModuleSimpleFuelSwitch.OnStart (PartModule+StartState state) [0x0000d] in <83adba40348745b29af7ae28ff479c61>:0 
  at Part.ModulesOnStart () [0x00120] in <06f13185617646e5bc801baeab53ab75>:0 

And the real fun one....

[LOG 17:33:25.376] Unpacking Citadel 3
[LOG 17:33:25.494] [UIMasterController]: ShowUI
[LOG 17:33:25.756] CheckEncounter: failed to find any intercepts at all
[LOG 17:33:25.873] CheckEncounter: failed to find any intercepts at all
[LOG 17:33:25.916] CheckEncounter: failed to find any intercepts at all
[LOG 17:33:25.962] CheckEncounter: failed to find any intercepts at all
[LOG 17:33:26.037] CheckEncounter: failed to find any intercepts at all
[LOG 17:33:26.520] CheckEncounter: failed to find any intercepts at all
[LOG 17:33:26.601] CheckEncounter: failed to find any intercepts at all
[EXC 17:33:26.984] StackOverflowException: The requested operation caused a stack overflow.
	Targeting+Interval.Create () (at <06f13185617646e5bc801baeab53ab75>:0)
	Smooth.Pools.Pool`1[T].Borrow () (at <06f13185617646e5bc801baeab53ab75>:0)
	Targeting+Interval.Borrow (Targeting+Sample s1, Targeting+Sample s2, System.Int32 tgt_index) (at <06f13185617646e5bc801baeab53ab75>:0)
	Targeting+Interval.Subdivide () (at <06f13185617646e5bc801baeab53ab75>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <06f13185617646e5bc801baeab53ab75>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <06f13185617646e5bc801baeab53ab75>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <06f13185617646e5bc801baeab53ab75>:0)
	Targeting.add_crossing_subdivisions (System.Collections.Generic.List`1[T] intervals, Targeting+Interval ival, System.Boolean reversed) (at <06f13185617646e5bc801baeab53ab75>:0)

It continues to spam after this. I noticed on the map view, the orbit patch is rapidly flickering, sometimes intercepting Jool, sometimes not. I've seen this before without any problem though.

I'll pull out Planning Node and see what happens. 

Files:

KSP 1.11.2 abridged log

Player 1.11.2 abridged

KSP 1.12.2 log

Player 1.12.2 abridged log

UPDATE:

I tried removing Planning Node on 1.12.2 and it initially seemed OK flying Citadel 3 but when I zoomed to Jool and edited a man node, it started spamming the log and CTDT when I pressed ESC.

Edited by Krazy1
Link to comment
Share on other sites

To be perfectly honest, your best bet in situations like this where your log isn't obviously blaming a candidate is to start doing the binary method.

Remove half your mods (make sure you leave any dependencies) and see if you can reproduce the issue (probably in a new save, as loading an old save with half it's mods installed is asking for trouble). If the issue disappears, you know the problem is in the second half, so replace them and keep doing that into you narrow it down to the minimum set of mods required to reproduce the issue. Then report the issue to the mod makers and provide your logs etc, as you have here.

Link to comment
Share on other sites

17 hours ago, severedsolo said:

Remove half your mods

Well, long story short... 

I loaded a savegame copy in unmodded Steam install (checked file integrity). There are mod parts in other ships but not the one in question. It does show some warnings in the log for entries in the save file with no associated mod, but no new errors/ exceptions. It behaves the same in game.

It still crashes to desktop when I view Jool and set the target to Pol. 

End of Player log:


Unpacking Citadel 3 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[UIMasterController]: ShowUI 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[PlanetariumCamera]: Focus: Citadel 3 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

Maneuver Mode enabled 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[ApplicationLauncher] SetHidden:  
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[ApplicationLauncher] SetHidden:  
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

[PlanetariumCamera]: Focus: Jool 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

CheckEncounter: failed to find any intercepts at all 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

CheckEncounter: failed to find any intercepts at all 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

CheckEncounter: failed to find any intercepts at all 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

CheckEncounter: failed to find any intercepts at all 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

CheckEncounter: failed to find any intercepts at all 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

CheckEncounter: failed to find any intercepts at all 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

CheckEncounter: failed to find any intercepts at all 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

This is bad. Even a corrupted save file should not crash like this. It looks like a core KSP problem. The end of the KSP log got cut off but this is all there was. There's no error detail in either file.

KSP log unmodded

Player log unmodded

Update:

In stock KSP and new sandbox game, I tried cheating a ship into sun orbit and set lots of maneuver nodes and targeted Pol and it worked fine. Guess it's the save file somehow. I'm playing career and I've done probably 20 contracts since I launched that ship. I'll see if I can reproduce it with other ships/ planets. I'll probably end up trying to edit my save file :(

Update 2: 

I cheated a Mk1 capsule to set orbit/ rendezvous with the original ship (Citadel 3). The capsule still produces the same crash: focus on Jool and target any Jool moon... game over.  It does this unmodded or modded. This is very bad. If it's something in the save file, it's not the ship.

I have to figure out how to set the orbit and time exactly the same in a new save. It still could be the core game.

Edited by Krazy1
update
Link to comment
Share on other sites

I just noticed in the KSP 1.11.2 abridged log I missed the very first exception on line 11770:

[LOG 15:42:36.477] [HighLogic]: =========================== Scene Change : From EDITOR to SPACECENTER =====================
[LOG 15:42:36.478] 8/21/2021 3:42:36 PM,KerbalAlarmClock,Scene Change from 'EDITOR' to 'SPACECENTER'
[EXC 15:42:36.481] NullReferenceException: Object reference not set to an instance of an object.
	EditorMarker_CoL.UpdatePosition () (at <06f13185617646e5bc801baeab53ab75>:0)
	EditorMarker.Update () (at <06f13185617646e5bc801baeab53ab75>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)

Yeah... if it's referencing the center-of-lift marker after it exits the Editor, it will have an NRE. 

Also in the 1.12.2 modded KSP log it has this at line 13220:

[LOG 20:45:02.070] [HighLogic]: =========================== Scene Change : From FLIGHT to EDITOR =====================
[LOG 20:45:02.070] QuickGoTo[1.40]: Go to the Vehicle Assembly
[LOG 20:45:02.072] 8/21/2021 8:45:02 PM,KerbalAlarmClock,Scene Change from 'FLIGHT' to 'EDITOR'
[EXC 20:45:02.074] NullReferenceException: Object reference not set to an instance of an object
	UIPartActionControllerInventory.UpdateCursorOverPAWs () (at <cd473063d3a2482f8d93d388d0c95035>:0)
	UIPartActionController.Update () (at <cd473063d3a2482f8d93d388d0c95035>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:CallOverridenDebugHandler(Exception, Object)
[LOG 20:45:02.202] [Trajectories] Saving settings
[LOG 20:45:02.225] KerbalEngineer -> Exception SimManager.StartSimulation() // System.NullReferenceException: Object reference not set to an instance of an object
  at KerbalEngineer.VesselSimulator.SimManager.StartSimulation () [0x00054] in <134deb60e87843589b7ea1a020650b28>:0 

This time I apparently used QuickGoTo to jump from flight to editor.

Update 8/24:

In unmodded install, I deleted the original ship (Citadel 3) in the tracking station and flew the test capsule that was previously cheated to the same orbit at that ship... and it still crashed when I targeted a Jool moon. 

Edited by Krazy1
Update
Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...