During raid, UI went away and exception is logged. Exception is about Colony Groups (aka: tacticalgroups) mod. removing Rimthreded does not trigger this.
Even possible is that this error is triggered while patching up one of pawns and might be related to updating icons on colony bar.
Steps to reproduce the behavior (VERY IMPORTANT)
have Colony groups and rimthreaded loaded
have raid ongoing and probably some of your pawns damaged
Root level exception in OnGUI(): System.IndexOutOfRangeException: Index was outside the bounds of the array.
at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x000f9] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
at RimWorld.PortraitsCache.Get (Verse.Pawn pawn, UnityEngine.Vector2 size, Verse.Rot4 rotation, UnityEngine.Vector3 cameraOffset, System.Single cameraZoom, System.Boolean supersample, System.Boolean compensateForUIScale, System.Boolean renderHeadgear, System.Boolean renderClothes, System.Collections.Generic.IReadOnlyDictionary`2[TKey,TValue] overrideApparelColors, System.Nullable`1[T] overrideHairColor, System.Boolean stylingStation, System.Nullable`1[T] healthStateOverride) [0x000d7] in <38562b1a2ab64eacb931fb5df05ca994>:0
at TacticalGroups.TacticalGroups_ColonistBarColonistDrawer.DrawColonist (UnityEngine.Rect rect, Verse.Pawn colonist, Verse.Map pawnMap, System.Boolean highlight, System.Boolean reordering) [0x002c8] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.TacticalColonistBar.ColonistBarOnGUI () [0x003dc] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at TacticalGroups.HarmonyPatches.ColonistBarOnGUI () [0x00000] in <7d98c9d622bf4aa8916878622bdf9f63>:0
at (wrapper dynamic-method) RimWorld.ColonistBar.RimWorld.ColonistBar.ColonistBarOnGUI_Patch1(RimWorld.ColonistBar)
at (wrapper dynamic-method) RimWorld.MapInterface.RimWorld.MapInterface.MapInterfaceOnGUI_BeforeMainTabs_Patch1(RimWorld.MapInterface)
at RimWorld.UIRoot_Play.UIRootOnGUI () [0x0001f] in <38562b1a2ab64eacb931fb5df05ca994>:0
at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 39)
With Colony groups removed, i was spammed with unable to tick pawn errors.
But what was weird is that after few load/game restarts, issue went away (for now) - issue might not be 100% reproducible.
Non-Vanilla Bug Report
Describe the bug
During raid, UI went away and exception is logged. Exception is about Colony Groups (aka: tacticalgroups) mod. removing Rimthreded does not trigger this. Even possible is that this error is triggered while patching up one of pawns and might be related to updating icons on colony bar.
Steps to reproduce the behavior (VERY IMPORTANT)
Error Logs ?
HugsLib log
https://gist.github.com/5c8b5218f6abcea48784c2801c40e178
Player.log (Optional)
https://www.dropbox.com/s/dig3i0on6mrhik2/Player%202023-03-17_1.log?dl=0
Save file ?
https://www.dropbox.com/s/6aoudazg6qcg5v4/Nuclear%20Freedom%20-%202023-03-17_1.rws?dl=0
Error should occur within 1-2 minutes of loading save.
Screenshots (Optional) ?
Mod list (Preferably a RimPy compatible list.) ?