Jump to content

Game crashes when I receive a resource for the first time


BevansDesign
  • Branch: Live Branch Version: Windows Pending

I've been playing for over 250 cycles, and I'm just about to receive plastic for the first time. (I know...I got a rough seed.)

Every time my dupes shear a shiny drecko, the game crashes. The crash log clearly says the problem is caused by my quantity of "polypropylene". As a test, I activated sandbox mode and spawned a mineable block of plastic, and that also triggers the crash once it's mined.

Crash info:

Trying to add Polypropylene:UnitType quantity but units dictionary already has key Polypropylene with unit type:mass

  at UnityEngine.Debug.LogError (System.Object message) [0x00000] in <9fe2cbebfa394c8da6af069ec8cc9ef4>:0 
  at Debug.LogError (System.Object obj) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0 
  at AllResourcesScreen.SpawnCategoryRow (Tag categoryTag, GameUtil+MeasureUnit unit) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at AllResourcesScreen.SpawnRows () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at AllResourcesScreen.Populate (System.Object data) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at AllResourcesScreen.<Init>b__16_0 (Tag a, Tag b) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at DiscoveredResources.Discover (Tag tag, Tag categoryTag) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at WorldInventory.OnAddedFetchable (System.Object data) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at EventSystem.Trigger (UnityEngine.GameObject go, System.Int32 hash, System.Object data) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0 
  at KMonoBehaviour.Trigger (System.Int32 hash, System.Object data) [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0 
  at FetchableMonitor+Instance.RegisterFetchable () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at FetchableMonitor+<>c.<InitializeStates>b__3_0 (FetchableMonitor+Instance smi) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteActions (StateMachine`4+State[StateMachineType,StateMachineInstanceType,MasterType,DefType] state, System.Collections.Generic.List`1[T] actions) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PushState (StateMachine+BaseState state) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].ExecuteTransition (StateMachineInstanceType smi) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at GameStateMachine`4+EventTransitionData[StateMachineType,StateMachineInstanceType,MasterType,DefType].Evaluate (StateMachineInstanceType smi) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].PushState (StateMachine+BaseState state) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].GoTo (StateMachine+BaseState base_state) [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at StateMachine+Instance.StartSM () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at StateMachine`4+GenericInstance[StateMachineType,StateMachineInstanceType,MasterType,DefType].StartSM () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at Pickupable.OnSpawn () [0x00000] in <84ec5be14c67406292956d199a0bec75>:0 
  at KMonoBehaviour.Spawn () [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0 
  at KMonoBehaviour.Start () [0x00000] in <158cd7482f89497392ec5a6ce92a5144>:0 
Build: U39-490405-S

I just wanted to report the bug, and if anyone knows how to fix it, I'd love to know. I'll probably just start a new map if I have to go more than a day without ordering dupes around. :D


Steps to Reproduce

Method 1: Shear a shiny drecko.

Method 2: Mine a raw block of plastic.




User Feedback


Sure, here it is.

I've had sandbox activated for quite a while, but I only used it a couple times before this for minor things.

I have a lot of mods installed, so a few things will probably break. But the decisive drecko should be moments away from being sheared.

Hapless Friends.sav

Edited by BevansDesign

Share this comment


Link to comment
Share on other sites

It appears that plastic was pinned in the resource panel, do you have any recollection of how this happened without having discovering plastic? Could you attach your full Player.log file after triggering the error.

  • Thanks 1

Share this comment


Link to comment
Share on other sites

On 12/18/2021 at 6:54 AM, EricKlei said:

It appears that plastic was pinned in the resource panel, do you have any recollection of how this happened without having discovering plastic? Could you attach your full Player.log file after triggering the error.

My game started crashing with this problem as well. Thanks to your post I was able to figure out the cause of the issue:

I had the "Favorite Resources" mod enabled, which remembers your list of pinned resources and keeps them pinned when you start a new game.

I had disabled the mod on this world at some point, but my list of pinned points remained.

Now when I discover plastic, the game crashes.

Re-enabling the mod fixed the issue.

Share this comment


Link to comment
Share on other sites

Just experienced this same issue - original root cause was the same mod "Favorite Resources" remembering resources from the previous save and tracking them automatically in the resources side bar despite the mod being disabled halfway through the play through.

In my case however I was unable to re-enable the mod due to compatibility issues but I was still able to resolve it by doing the following steps:
1) Loading the save immediately before the crash
2) Unpinning the problem resource, steel in my case, from the resources drop down by clicking the red x next to the zero quantity
3) Saving as a new save
4) Reloading that new save - steel remains untracked
5) Making the steel.

Issue appears to be caused when tracked resources in the resources sidebar are tracked but have not been initialized correctly.

I have attached the save with the problematic tracking state (prior to being triggered). The save was running about 88 mods so a lot of stuff will be broken but the save will still load with no mods enabled and can still trigger the issue by smelting steel in the metal refineries immediately after loading.

SHITBUG.sav Player.log

Edited by psiber
Added player log
  • Thanks 1

Share this comment


Link to comment
Share on other sites

On 6/3/2022 at 2:53 PM, psiber said:

Just experienced this same issue - original root cause was the same mod "Favorite Resources" remembering resources from the previous save and tracking them automatically in the resources side bar despite the mod being disabled halfway through the play through.

In my case however I was unable to re-enable the mod due to compatibility issues but I was still able to resolve it by doing the following steps:
1) Loading the save immediately before the crash
2) Unpinning the problem resource, steel in my case, from the resources drop down by clicking the red x next to the zero quantity
3) Saving as a new save
4) Reloading that new save - steel remains untracked
5) Making the steel.

Issue appears to be caused when tracked resources in the resources sidebar are tracked but have not been initialized correctly.

I have attached the save with the problematic tracking state (prior to being triggered). The save was running about 88 mods so a lot of stuff will be broken but the save will still load with no mods enabled and can still trigger the issue by smelting steel in the metal refineries immediately after loading.

SHITBUG.sav 2.49 MB · 1 download Player.log 125.02 kB · 2 downloads

I use the way for pastlic
It work thank you

Share this comment


Link to comment
Share on other sites



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

×
  • Create New...