cseelhoff / RimThreaded

RimThreaded is a RimWorld mod designed to enable RimWorld to utilize multiple threads.
MIT License
117 stars 21 forks source link

[Turn It On and Off - RePowered] turn it on and off red errors on any crafting buildings (RT 2.3.9) #569

Closed doc776 closed 2 years ago

doc776 commented 3 years ago

Describe the bug Red errors randomly occur during cooking mostly, even butchering on the unpowered building. Pawns restart after short game freeze, and the cycle continues.

Steps to reproduce the behavior (VERY IMPORTANT)

  1. pawns start cooking.
  2. red error, short freeze, they restart cooking some times meal is cooked completely, most times red error during a random moment of cooking.

Error Log

Exception in JobDriver tick for pawn Andersen driver=JobDriver_DoBill (toilIndex=12) driver.job=(DoBill (Job_7449) A=Thing_ElectricStove20406 B=Thing_RawRice23282 C=(123, 0, 132))
System.Threading.ThreadAbortException
  at System.Collections.Generic.HashSet`1[T].AddIfNotPresent (T value) [0x00064] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at System.Collections.Generic.HashSet`1[T].Add (T item) [0x00000] in <351e49e2a5bf4fd6beabb458ce2255f3>:0 
  at TurnOnOffRePowered.TurnItOnandOff.AddBuildingUsed (Verse.Building building) [0x00001] in <2b2d3b5eba6f4c46a581082ae8c69e1f>:0 
  at TurnOnOffRePowered.Building_WorkTable_UsedThisTick_Patch.UsedThisTick (RimWorld.Building_WorkTable __instance) [0x00001] in <2b2d3b5eba6f4c46a581082ae8c69e1f>:0 
  at (wrapper dynamic-method) RimWorld.Building_WorkTable.RimWorld.Building_WorkTable.UsedThisTick_Patch1(RimWorld.Building_WorkTable)
  at RimWorld.Building_WorkTable_HeatPush.UsedThisTick () [0x00000] in <7927e938de4c4089b4add4215e58d5b1>:0 
  at Verse.AI.Toils_Recipe+<>c__DisplayClass2_0.<DoRecipeWork>b__1 () [0x0009d] in <7927e938de4c4089b4add4215e58d5b1>:0 
  at Verse.AI.JobDriver.DriverTick () [0x001a2] in <7927e938de4c4089b4add4215e58d5b1>:0 
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)

player Player.log hugs https://gist.github.com/bbff39ac10767cb7860f10fc8df6eca2

Save file turnitonoffbug.zip

Screenshots

2

Mod list (Preferably a RimPy compatible list.) [Mod list length: 7] Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077] BetterLoading [https://steamcommunity.com/sharedfiles/filedetails/?id=1999454301] Core [https:// no link (local mod)] Royalty [Official DLC] [https:// no link (local mod)] HugsLib [https://steamcommunity.com/sharedfiles/filedetails/?id=818773962] Turn It On and Off - RePowered [https://steamcommunity.com/sharedfiles/filedetails/?id=2228219259] RimThreaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2222907981]

Enduriel commented 3 years ago

This is actually a repeat of #488 which was for some reason closed.

Niilo007 commented 2 years ago

Sernior made a patch for the next release (2.5.16)