cseelhoff / RimThreaded

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

`Exception ticking Sade (at (76, 0, 143)): System.IndexOutOfRangeException:` `at Hospitality.Patches.Pawn_InteractionsTracker_Patch+TryInteractRandomly.Replacement` #712

Open sealvessel opened 2 years ago

sealvessel commented 2 years ago

Describe the bug

Bug relating hospitality and pawn in space.

Steps to reproduce the behavior (VERY IMPORTANT)

  1. Load save

    Error Logs

    Exception ticking Sade (at (76, 0, 143)): System.IndexOutOfRangeException: index + length > size
    at System.Array.Clear (System.Array array, System.Int32 index, System.Int32 length) [0x00044] in <eae584ce26bc40229c1b1aa476bfa589>:0 
    at System.Collections.Generic.List`1[T].Clear () [0x00009] in <eae584ce26bc40229c1b1aa476bfa589>:0 
    at Hospitality.Patches.Pawn_InteractionsTracker_Patch+TryInteractRandomly.Replacement (RimWorld.Pawn_InteractionsTracker __instance, System.Boolean& __result, Verse.Pawn ___pawn, System.Collections.Generic.List`1[T] ___workingList, System.Int32 ___lastInteractionTime) [0x00066] in <908b0104ebb3469797903b8ee6664172>:0 
    at (wrapper dynamic-method) RimWorld.Pawn_InteractionsTracker.RimWorld.Pawn_InteractionsTracker.TryInteractRandomly_Patch1(RimWorld.Pawn_InteractionsTracker)
    at RimWorld.Pawn_InteractionsTracker.InteractionsTrackerTick () [0x000ac] in <720a4e30fed64864bd8af057c96d4eb5>:0 
    at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch1(Verse.Pawn)
    at RimThreaded.TickList_Patch.NormalThingTick () [0x00025] in <00e9390be3f94d8cb476aee72e6660cf>: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)

    HugsLib log

    https://gist.github.com/1c614ab036175705cc940e314d4ee50b

Save file

Quicksave.rws.zip

Screenshots

image

Mod list (Preferably a RimPy compatible list.)