cseelhoff / RimThreaded

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

Humanoid Alien Race 2.0 + Android Tiers #607

Closed TeaCrab closed 3 years ago

TeaCrab commented 3 years ago

Using Humanoid Alien Race 2.0 + Android Tiers: Start a scenario with many pawns (7+), and at some point(usually right away), one will cause a tick error with MOARANDROIDS, which only exists in Android Tiers. Also, when the game first starts, there was a Visual Exception error saying invalid "TKey" or whatever that might be related to this issue.

Error:

  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00120] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at System.Collections.Generic.Dictionary`2[TKey,TValue].set_Item (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0 
  at MOARANDROIDS.Utils.getCachedCSM (Verse.Thing t) [0x0002b] in <d5910712af604e379d7762deccbc4e3f>:0 
  at MOARANDROIDS.CompAndroidState.initComp () [0x00028] in <d5910712af604e379d7762deccbc4e3f>:0 
  at MOARANDROIDS.CompAndroidState.CompTick () [0x00048] in <d5910712af604e379d7762deccbc4e3f>:0 
  at Verse.ThingWithComps.Tick () [0x00024] in <1b9c4c73530448bcbb33283e1d4d7d05>:0 
  at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch2(Verse.Pawn)
  at RimThreaded.TickList_Patch.NormalThingTick () [0x00025] in <6d80dab2f81d4e0f8deef4c54db49b36>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
RimThreaded.TickList_Patch:NormalThingTick ()
RimThreaded.RimThreaded:ExecuteTicks ()
RimThreaded.RimThreaded:ProcessTicks (RimThreaded.RimThreaded/ThreadInfo)
RimThreaded.RimThreaded:InitializeThread (object)
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart (object)

Full Hugslib Log: https://gist.github.com/1673dbfe4427c962d52c9b62df060061

Save & Mod List: Test.zip

pastorismylord commented 3 years ago

this issue has been fixed