Skip to content

NullReferenceException on right-clicking administration building #87

@dbtrnl

Description

@dbtrnl

My KSP suddenly got very slow and crashed, right after i right-clicked the administration building.
Other times, the same error popped in the console, but the game didn't crash. Now apparently the game entered a loop and crashed.

I'm using 1.9.1

The error stack
[LOG 20:41:17.222] [MessageSystem] Save Messages
[LOG 20:41:17.583] Game State Saved to saves/default/persistent
[LOG 20:41:17.588] Administration (KSP.UI.UICanvasPrefab)
[LOG 20:41:17.589] [UIMasterController] RemoveCanvas:Administration

[ERR 20:41:22.454] Exception handling event onFacilityContextMenuSpawn in class StrategyNotifier:System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.MonoBehaviour.IsObjectMonoBehaviour(UnityEngine.Object)
  at UnityEngine.MonoBehaviour.StartCoroutine (System.Collections.IEnumerator routine) [0x00012] in <7d9ec060e791409ab3eb85c61e312ed6>:0 
  at Strategia.StrategyNotifier.OnFacilityContextMenuSpawn (KSP.UI.Screens.KSCFacilityContextMenu menu) [0x00024] in <ad1f24c047af4716ace30351b02ea8a1>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <ac04291822974a138f007b85091a10d0>:0 

[EXC 20:41:23.401] NullReferenceException
	UnityEngine.MonoBehaviour.StartCoroutine (System.Collections.IEnumerator routine) (at <7d9ec060e791409ab3eb85c61e312ed6>:0)
	Strategia.StrategyNotifier.OnFacilityContextMenuSpawn (KSP.UI.Screens.KSCFacilityContextMenu menu) (at <ad1f24c047af4716ace30351b02ea8a1>:0)
	EventData`1[T].Fire (T data) (at <ac04291822974a138f007b85091a10d0>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:LogException(Exception)
	EventData`1:Fire(KSCFacilityContextMenu)
	KSP.UI.Screens.KSCFacilityContextMenu:Create(SpaceCenterBuilding, Callback`1)
	SpaceCenterBuilding:OnContextMenuSpawn()
	SpaceCenterBuilding:OnRightClick()
	<OnMouseTap>d__49:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

[Many iterations of the same error later]

[ERR 20:41:34.576] Exception handling event onFacilityContextMenuSpawn in class StrategyNotifier:System.NullReferenceException
  at (wrapper managed-to-native) UnityEngine.MonoBehaviour.IsObjectMonoBehaviour(UnityEngine.Object)
  at UnityEngine.MonoBehaviour.StartCoroutine (System.Collections.IEnumerator routine) [0x00012] in <7d9ec060e791409ab3eb85c61e312ed6>:0 
  at Strategia.StrategyNotifier.OnFacilityContextMenuSpawn (KSP.UI.Screens.KSCFacilityContextMenu menu) [0x00024] in <ad1f24c047af4716ace30351b02ea8a1>:0 
  at EventData`1[T].Fire (T data) [0x000b0] in <ac04291822974a138f007b85091a10d0>:0 

[EXC 20:41:35.618] NullReferenceException
	UnityEngine.MonoBehaviour.StartCoroutine (System.Collections.IEnumerator routine) (at <7d9ec060e791409ab3eb85c61e312ed6>:0)
	Strategia.StrategyNotifier.OnFacilityContextMenuSpawn (KSP.UI.Screens.KSCFacilityContextMenu menu) (at <ad1f24c047af4716ace30351b02ea8a1>:0)
	EventData`1[T].Fire (T data) (at <ac04291822974a138f007b85091a10d0>:0)
	UnityEngine.DebugLogHandler:LogException(Exception, Object)
	ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
	UnityEngine.Debug:LogException(Exception)
	EventData`1:Fire(KSCFacilityContextMenu)
	KSP.UI.Screens.KSCFacilityContextMenu:Create(SpaceCenterBuilding, Callback`1)
	SpaceCenterBuilding:OnContextMenuSpawn()
	SpaceCenterBuilding:OnRightClick()
	<OnMouseTap>d__49:MoveNext()
	UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

I'm using various mods, if necessary i'll post the complete list here

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions