Crash when clicking on a greyed construction


krop
  • Branch: Preview Branch Version: Linux Fixed

Steps :

1/ Open a construction menu,

2/ Click on a greyed building

→ Crash (Reproducible)

Backtrace:

Could not find RoomType: MachineShop
UnityEngine.DebugLogHandler:Internal_Log(LogType, String, Object)
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogError(Object)
Debug:LogError(Object, Object) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Debug.cs:96)
ResourceSet`1:Get(String) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Klei\util\Resources\ResourceSet.cs:87)
RoomTracker:GetDescriptors(BuildingDef) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\components\RoomTracker.cs:111)
GameUtil:GetAllDescriptors(BuildingDef) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\game\GameUtil.cs:1207)
ProductInfoScreen:SetEffects(BuildingDef) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\ProductInfoScreen.cs:260)
ProductInfoScreen:ConfigureScreen(BuildingDef) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\ProductInfoScreen.cs:102)
PlanScreen:OnSelectBuilding(GameObject, BuildingDef) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\PlanScreen.cs:325)
<CreateButton>c__AnonStorey1:<>m__0() (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\PlanScreen.cs:729)
Util:Signal(Action) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Klei\util\Util.cs:775)
KToggle:Click() (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Klei\ui\KToggle.cs:77)
KToggle:OnPointerClick(PointerEventData) (at D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Klei\ui\KToggle.cs:119)
UnityEngine.EventSystems.ExecuteEvents:Execute(IPointerClickHandler, BaseEventData) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:261)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:551)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:450)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:430)
UnityEngine.EventSystems.StandaloneInputModule:Process() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:204)
UnityEngine.EventSystems.EventSystem:Update() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\EventSystem.cs:285)
 
(Filename: D Line: 0)

NullReferenceException: Object reference not set to an instance of an object
  at RoomTracker.GetDescriptors (.BuildingDef def) [0x00017] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\components\RoomTracker.cs:111 
  at GameUtil.GetAllDescriptors (.BuildingDef def) [0x00036] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\game\GameUtil.cs:1207 
  at ProductInfoScreen.SetEffects (.BuildingDef def) [0x0002f] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\ProductInfoScreen.cs:260 
  at ProductInfoScreen.ConfigureScreen (.BuildingDef def) [0x00018] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\ProductInfoScreen.cs:102 
  at PlanScreen.OnSelectBuilding (UnityEngine.GameObject button_go, .BuildingDef def) [0x000b6] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\PlanScreen.cs:325 
  at PlanScreen+<CreateButton>c__AnonStorey1.<>m__0 () [0x00013] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\scripts\ui\PlanScreen.cs:729 
  at Util.Signal (System.Action action) [0x00009] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Klei\util\Util.cs:775 
  at KToggle.Click () [0x000c0] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Klei\ui\KToggle.cs:77 
  at KToggle.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) [0x0003b] in D:\jenkins_workspace\workspace\Preview_Simgame_Linux\game\Assets\Plugins\Klei\ui\KToggle.cs:119 
  at UnityEngine.EventSystems.ExecuteEvents.Execute (IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) [0x00008] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:50 
  at UnityEngine.EventSystems.ExecuteEvents.Execute[IPointerClickHandler] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.EventFunction`1 functor) [0x00073] in C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:261 
UnityEngine.DebugLogHandler:Internal_LogException(Exception, Object)
UnityEngine.DebugLogHandler:LogException(Exception, Object)
UnityEngine.Logger:LogException(Exception, Object)
UnityEngine.Debug:LogException(Exception)
UnityEngine.EventSystems.ExecuteEvents:Execute(GameObject, BaseEventData, EventFunction`1) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\ExecuteEvents.cs:265)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMousePress(MouseButtonEventData) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:551)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent(Int32) (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:450)
UnityEngine.EventSystems.StandaloneInputModule:ProcessMouseEvent() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:430)
UnityEngine.EventSystems.StandaloneInputModule:Process() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\InputModules\StandaloneInputModule.cs:204)
UnityEngine.EventSystems.EventSystem:Update() (at C:\buildslave\unity\build\Extensions\guisystem\UnityEngine.UI\EventSystem\EventSystem.cs:285)
 
(Filename: D Line: 0)

Game.OnApplicationQuit()
Setting up 2 worker threads for Enlighten.
  Thread -> id: 7f3826007700 -> priority: 1 
  Thread -> id: 7f37809f9700 -> priority: 1 
[ INFO  ] FMOD Studio: Destroying runtime system instance
##unity-automation:{"messageType":"MemoryLeaks","allocatedMemory":843938,"memoryLabels":[{"Permanent":12608},{"NewDelete":18441},{"Thread":40},{"Manager":104},{"GfxDevice":8388704},{"Serialization":9152},{"BaseObject":2032},{"Terrain":176},{"STL":4096},{"String":185},{"DynamicArray":384},{"Utility":-8388608},{"PoolAlloc":-176},{"ScriptManager":1832},{"Sprites":794736},{"SceneManager":232}]}

 


Steps to Reproduce
Follow the steps in this BR

Status: Fixed

This issue has been fixed in either a future version or updated in a previous version.


  Report Bug


User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.
....


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now