MechJeb2

MechJeb2

4M Downloads

Drive: System.NullReferenceException

WuphonsReach opened this issue ยท 4 comments

commented

Taken from output_log.txt -- seems to happen on staging events. Possibly when I have multiple AR202 units?

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

RemoteTech: SatelliteManager: Register(ModuleSPU(, 0058e8c3-7fce-460f-986b-e7c8c9711709))

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

[00:07:44]: Separation of stage 4 confirmed

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

MechJeb module MechJebModuleThrustController threw an exception in Drive: System.NullReferenceException: Object reference not set to an instance of an object

at MuMech.MechJebModuleThrustController.FlameoutSafetyThrottle () [0x00000] in :0

at MuMech.MechJebModuleThrustController.Drive (.FlightCtrlState s) [0x00000] in :0

at MuMech.MechJebCore.Drive (.FlightCtrlState s) [0x00000] in :0

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

OnVesselSituationChanged

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

[FLIGHT GLOBALS]: Switching To Vessel Kerb-Comm Y1D166ABCD Mercury I (XXXkm) Probe ----------------------

(Filename: C:/BuildAgent/work/d63dfc6385190b60/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 49)

stage manager resuming...

commented

Closing this as an old MechJeb issue. Many MechJeb issues have had little interest in years, have been fixed for years, do not include adequate replication steps, refer to old problems which are no longer applicable, or are difficult to determine what the problem is. This issue is being closed for one of those reasons. We apologize for any inconvenience, but keeping the TODO list tidy helps the developers.

If this bug/issue is still a problem, please open a new issue. For bugs please try to include a Minimal, Complete, Verifiable Example that explains all the steps required to replicate the issue. A link to the KSP.log file should be ideally included, but is often not sufficient information. Screenshots or short videos are often the best way to show a bug.

commented

Did you have an AR202 on each stage ? Do you get it each time you stage ?

commented

It does seem to be any instance where I have multiple AR202s. I get it right as soon as I load to the launchpad.

commented

i have almost same error :(
I take from KSP.log

[ERR 02:54:50.423] MechJeb module MechJebModuleThrustController threw an exception in Drive: System.InvalidOperationException: Operation is not valid due to the current state of the object
at System.Linq.Enumerable.Iterate[Part,Single](IEnumerable1 source, Single initValue, System.Func3 selector) [0x00000] in :0
at System.Linq.Enumerable.Max[Part](IEnumerable1 source, System.Func2 selector) [0x00000] in :0
at MuMech.MechJebModuleThrustController.TemperatureSafetyThrottle () [0x00000] in :0
at MuMech.MechJebModuleThrustController.Drive (.FlightCtrlState s) [0x00000] in :0
at MuMech.MechJebCore.Drive (.FlightCtrlState s) [0x00000] in :0

[EXC 02:54:50.426] NullReferenceException
UnityEngine.Component.get_gameObject ()
Vessel.recurseCoMs (.Part part)
Vessel.recurseCoMs (.Part part)
Vessel.findWorldCenterOfMass ()
MuMech.VesselState.UpdateBasicInfo (.Vessel vessel)
MuMech.VesselState.Update (.Vessel vessel)
MuMech.MechJebCore.FixedUpdate ()
[EXC 02:54:50.431] NullReferenceException
UnityEngine.Component.get_gameObject ()
Vessel.recurseCoMs (.Part part)
Vessel.recurseCoMs (.Part part)
Vessel.findWorldCenterOfMass ()
Vessel.FixedUpdate ()

With this bug i can't go back at base or changing the vessel. etc...