cseelhoff / RimThreaded

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

Colony Groups (aka: tacticalgroups) error spam; whole UI is gone #786

Open ttr opened 1 year ago

ttr commented 1 year ago

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)

  1. have Colony groups and rimthreaded loaded
  2. have raid ongoing and probably some of your pawns damaged
  3. wait

Error Logs ?

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)

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) ?

image

Mod list (Preferably a RimPy compatible list.) ?

[Mod list length: 177]
Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]
Core [https:// no link (local mod)]
Royalty [Official DLC] [https:// no link (local mod)]
Ideology [Official DLC] [https:// no link (local mod)]
Biotech [Official DLC] [https:// no link (local mod)]
HugsLib [https://steamcommunity.com/sharedfiles/filedetails/?id=818773962]
Adaptive Threats [https://steamcommunity.com/sharedfiles/filedetails/?id=2050547028]
Dubs Mint Menus [https://steamcommunity.com/sharedfiles/filedetails/?id=1446523594]
More Planning [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2551225702]
Allow Tool [https://steamcommunity.com/sharedfiles/filedetails/?id=761421485]
Animal Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=712141500]
AnimalHarvestingSpot (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=1542765654]
Animals Logic [https://steamcommunity.com/sharedfiles/filedetails/?id=1098354593]
Architect Icons [https://steamcommunity.com/sharedfiles/filedetails/?id=1195427067]
Area Unlocker [https://steamcommunity.com/sharedfiles/filedetails/?id=725153576]
Auto-Cut Blight [https://steamcommunity.com/sharedfiles/filedetails/?id=1885186534]
Backup Power [https://steamcommunity.com/sharedfiles/filedetails/?id=2084493662]
Better ModMismatch Window [https://steamcommunity.com/sharedfiles/filedetails/?id=1872244972]
Better Workbench Management [https://steamcommunity.com/sharedfiles/filedetails/?id=935982361]
Bionic icons [https://steamcommunity.com/sharedfiles/filedetails/?id=1677616980]
Blueprints [https://steamcommunity.com/sharedfiles/filedetails/?id=708455313]
Chatting on Comms [https://steamcommunity.com/sharedfiles/filedetails/?id=2058332610]
Clueless Arrivals [https://steamcommunity.com/sharedfiles/filedetails/?id=1553036893]
Colony Manager [https://steamcommunity.com/sharedfiles/filedetails/?id=715565262]
DontBlockDoor [https://steamcommunity.com/sharedfiles/filedetails/?id=1691076769]
Dress Patients (1.4) [https://steamcommunity.com/sharedfiles/filedetails/?id=2877763074]
Dubs Bad Hygiene [https://steamcommunity.com/sharedfiles/filedetails/?id=836308268]
Common Sense [https://steamcommunity.com/sharedfiles/filedetails/?id=1561769193]
Dubs Break Mod [https://steamcommunity.com/sharedfiles/filedetails/?id=1722398508]
Dubs Mint Minimap [https://steamcommunity.com/sharedfiles/filedetails/?id=1662119905]
Dynamic Diplomacy [https://steamcommunity.com/sharedfiles/filedetails/?id=1875168898]
ED-Embrasures [https://steamcommunity.com/sharedfiles/filedetails/?id=722085442]
ED-EnhancedOptions [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2897488240]
EPOE 1.4 (Expanded Prosthetics and Organ Engineering) [https://steamcommunity.com/sharedfiles/filedetails/?id=2882712052]
Electric Butcher Table [https://steamcommunity.com/sharedfiles/filedetails/?id=2025416804]
Electric Fences and Floors (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2138712589]
Electric Stonecutting Table [https://steamcommunity.com/sharedfiles/filedetails/?id=1649368867]
Enemy Self Preservation [https://steamcommunity.com/sharedfiles/filedetails/?id=2006638530]
Expanded Roofing 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2879451927]
Faction Control 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2882785581]
Field Medic [1.0-1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=1541287769]
Fluffy Breakdowns [https://steamcommunity.com/sharedfiles/filedetails/?id=726244033]
Giddy-Up 2 [https://steamcommunity.com/sharedfiles/filedetails/?id=2934245647]
Glitter Tech [https://steamcommunity.com/sharedfiles/filedetails/?id=2558099206]
Go Explore! [https://steamcommunity.com/sharedfiles/filedetails/?id=1814100216]
RWLayout [https://steamcommunity.com/sharedfiles/filedetails/?id=2209393954]
Grouped Pawns Lists [https://steamcommunity.com/sharedfiles/filedetails/?id=2340773428]
Harvest Organs Post Mortem [https://steamcommunity.com/sharedfiles/filedetails/?id=1204502413]
High quality textures [https://steamcommunity.com/sharedfiles/filedetails/?id=1676969930]
Human Power Generator Mod [https://steamcommunity.com/sharedfiles/filedetails/?id=1706030487]
Impassable Chest-deep Water [https://steamcommunity.com/sharedfiles/filedetails/?id=1674624795]
Interaction Bubbles [https://steamcommunity.com/sharedfiles/filedetails/?id=1516158345]
Jewelry [https://steamcommunity.com/sharedfiles/filedetails/?id=2020964421]
LED Lights (1.4 Fork) [https://steamcommunity.com/sharedfiles/filedetails/?id=2917839304]
Less Arbitrary Surgery (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2018250654]
Let's Trade! [1.4+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2373633407]
Death Rattle Continued [1.2+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2206107940]
Life Support Continued [1.1+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2937012139]
Loading In Progress [https://steamcommunity.com/sharedfiles/filedetails/?id=1975622772]
Mad Skills [https://steamcommunity.com/sharedfiles/filedetails/?id=731111514]
Meals On Wheels [https://steamcommunity.com/sharedfiles/filedetails/?id=1323773476]
Medical Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=715565817]
MendAndRecycle [https://steamcommunity.com/sharedfiles/filedetails/?id=735241897]
Metal Don't Burn (UNOFFICIAL 1.4 PATCH) [https://steamcommunity.com/sharedfiles/filedetails/?id=2557145474]
MinifyEverything [https://steamcommunity.com/sharedfiles/filedetails/?id=872762753]
Misc. Bees'n'Honey [https://steamcommunity.com/sharedfiles/filedetails/?id=766264659]
Mod Manager [https://steamcommunity.com/sharedfiles/filedetails/?id=1507748539]
Moody [https://steamcommunity.com/sharedfiles/filedetails/?id=826998327]
Vanilla Expanded Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2023507013]
Vanilla Furniture Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1718190143]
More Furniture (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2565302299]
More Practical Traits - unofficial update [https://steamcommunity.com/sharedfiles/filedetails/?id=2893524668]
Rimefeller [https://steamcommunity.com/sharedfiles/filedetails/?id=1321849735]
Vanilla Furniture Expanded - Security [https://steamcommunity.com/sharedfiles/filedetails/?id=1845154007]
More Rimefeller Compat [https://steamcommunity.com/sharedfiles/filedetails/?id=2763187069]
More Vanilla Turrets 1.1+ [https://steamcommunity.com/sharedfiles/filedetails/?id=2009766414]
Mortar Accuracy [https://steamcommunity.com/sharedfiles/filedetails/?id=1729446857]
Music Manager [https://steamcommunity.com/sharedfiles/filedetails/?id=2229205672]
My Little Planet [https://steamcommunity.com/sharedfiles/filedetails/?id=1117406550]
No Lazy Doctors [https://steamcommunity.com/sharedfiles/filedetails/?id=2476396157]
No Quests Without Comms [https://steamcommunity.com/sharedfiles/filedetails/?id=2136753617]
No Random Relations [https://steamcommunity.com/sharedfiles/filedetails/?id=2583377522]
P-Music [https://steamcommunity.com/sharedfiles/filedetails/?id=725130005]
Pack Mules Extended [https://steamcommunity.com/sharedfiles/filedetails/?id=1501052499]
Parallel Power Grid (Parallel Conduits) [https://steamcommunity.com/sharedfiles/filedetails/?id=1277677885]
RT Power Switch [https://steamcommunity.com/sharedfiles/filedetails/?id=728314859]
Replace Stuff [https://steamcommunity.com/sharedfiles/filedetails/?id=1372003680]
PowerSwitch [https://steamcommunity.com/sharedfiles/filedetails/?id=717632155]
Parallel Power Grid (Parallel Conduits) Addons [https://steamcommunity.com/sharedfiles/filedetails/?id=2059429490]
Pawns Paint! Restored (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2449797994]
Pick Up And Haul [https://steamcommunity.com/sharedfiles/filedetails/?id=1279012058]
Project RimFactory Revived [https://steamcommunity.com/sharedfiles/filedetails/?id=2033979700]
Power++ [https://steamcommunity.com/sharedfiles/filedetails/?id=1771402217]
Prison Commons (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2898000489]
Humanoid Alien Races [https://steamcommunity.com/sharedfiles/filedetails/?id=839005762]
Hospitality [https://steamcommunity.com/sharedfiles/filedetails/?id=753498552]
Locks [https://steamcommunity.com/sharedfiles/filedetails/?id=1157085076]
Prison Labor [https://steamcommunity.com/sharedfiles/filedetails/?id=1899474310]
ProxyHeat [https://steamcommunity.com/sharedfiles/filedetails/?id=2365526329]
EdB Prepare Carefully [https://steamcommunity.com/sharedfiles/filedetails/?id=735106432]
Psychology (unofficial) v1.1-1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2016263135]
QualityBuilder [https://steamcommunity.com/sharedfiles/filedetails/?id=754637870]
QualitySurgeon [https://steamcommunity.com/sharedfiles/filedetails/?id=857350593]
Questionable Ethics Enhanced (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2850854272]
RT Solar Flare Shield [https://steamcommunity.com/sharedfiles/filedetails/?id=728315620]
RT's Weapon Pack Reloaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2008908318]
Range Finder [https://steamcommunity.com/sharedfiles/filedetails/?id=1332119637]
Turn It On and Off - RePowered [https://steamcommunity.com/sharedfiles/filedetails/?id=2228219259]
RePower Patch Pack [https://steamcommunity.com/sharedfiles/filedetails/?id=1836577627]
Realistic Planets Continued [https://steamcommunity.com/sharedfiles/filedetails/?id=2557451791]
Relations Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=709317151]
RescueeJoinsPlus [https://steamcommunity.com/sharedfiles/filedetails/?id=2177170403]
RimCities [https://steamcommunity.com/sharedfiles/filedetails/?id=1775170117]
RimHUD [https://steamcommunity.com/sharedfiles/filedetails/?id=1508850027]
RimPy Mod Manager Database [https://steamcommunity.com/sharedfiles/filedetails/?id=1847679158]
Run and Hide (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2022480344]
RunAndGun [https://steamcommunity.com/sharedfiles/filedetails/?id=1204108550]
RT Fuse [https://steamcommunity.com/sharedfiles/filedetails/?id=728314182]
SS Bigger Batteries [https://steamcommunity.com/sharedfiles/filedetails/?id=2024086401]
SS Battery Fuse [https://steamcommunity.com/sharedfiles/filedetails/?id=2024088361]
Share The Load [https://steamcommunity.com/sharedfiles/filedetails/?id=1356838246]
Simple sidearms [https://steamcommunity.com/sharedfiles/filedetails/?id=927155256]
Slow Starvation [https://steamcommunity.com/sharedfiles/filedetails/?id=2068523117]
Androids for RW 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2889326293]
Dubs Rimatomics [https://steamcommunity.com/sharedfiles/filedetails/?id=1127530465]
Small addons for Androids race [https://steamcommunity.com/sharedfiles/filedetails/?id=2193548667]
Smarter Construction [https://steamcommunity.com/sharedfiles/filedetails/?id=2202185773]
Smoked meat [https://steamcommunity.com/sharedfiles/filedetails/?id=1542364782]
Snap Out! [https://steamcommunity.com/sharedfiles/filedetails/?id=1319782555]
Sometimes Raids Go Wrong [https://steamcommunity.com/sharedfiles/filedetails/?id=1551336515]
Statue of Colonist [https://steamcommunity.com/sharedfiles/filedetails/?id=1539031321]
Stonecutting Extended [https://steamcommunity.com/sharedfiles/filedetails/?id=2571676542]
TD Enhancement Pack [https://steamcommunity.com/sharedfiles/filedetails/?id=1339135272]
Terran's Security Buildings [https://steamcommunity.com/sharedfiles/filedetails/?id=2509993687]
Trader ships [https://steamcommunity.com/sharedfiles/filedetails/?id=2046222331]
Trading Options [https://steamcommunity.com/sharedfiles/filedetails/?id=2876541977]
Transport Cargo Pod [https://steamcommunity.com/sharedfiles/filedetails/?id=2008989746]
VGP Vegetable Garden [https://steamcommunity.com/sharedfiles/filedetails/?id=2007061826]
VGP Garden Canning [https://steamcommunity.com/sharedfiles/filedetails/?id=2007062033]
VGP Garden Drinks [https://steamcommunity.com/sharedfiles/filedetails/?id=2167582651]
VGP Garden Fabrics [https://steamcommunity.com/sharedfiles/filedetails/?id=2007062162]
VGP Garden Gourmet [https://steamcommunity.com/sharedfiles/filedetails/?id=2007062982]
VGP Garden Medicine [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063140]
VGP Garden Tools [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063961]
VGP More Veggies [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063278]
VGP Three Sisters Plants [https://steamcommunity.com/sharedfiles/filedetails/?id=2007063848]
Vanilla Factions Expanded - Settlers [https://steamcommunity.com/sharedfiles/filedetails/?id=2052918119]
Vanilla Furniture Expanded - Art [https://steamcommunity.com/sharedfiles/filedetails/?id=1968134023]
Vanilla Furniture Expanded - Medical Module [https://steamcommunity.com/sharedfiles/filedetails/?id=1718191613]
Vanilla Furniture Expanded - Spacer Module [https://steamcommunity.com/sharedfiles/filedetails/?id=2028381079]
Vanilla Books Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2193152410]
Vanilla Ideology Expanded - Memes and Structures [https://steamcommunity.com/sharedfiles/filedetails/?id=2636329500]
Vanilla Outposts Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2688941031]
Various Space Ship Chunk (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2014616487]
Wall Light [https://steamcommunity.com/sharedfiles/filedetails/?id=1423699208]
Wall Vitals Monitor [https://steamcommunity.com/sharedfiles/filedetails/?id=1334289344]
WanderJoinsPlus [https://steamcommunity.com/sharedfiles/filedetails/?id=2177016016]
Work Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=725219116]
Zen Garden (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2777931683]
[1.4] ExtendedInspectData [https://steamcommunity.com/sharedfiles/filedetails/?id=1597306343]
[CP] Retro Joy [https://steamcommunity.com/sharedfiles/filedetails/?id=1842663639]
RimFridge Updated [https://steamcommunity.com/sharedfiles/filedetails/?id=2878183338]
[FSF] No Default Shelf Storage [https://steamcommunity.com/sharedfiles/filedetails/?id=945085502]
[GMT] Trading Spot [https://steamcommunity.com/sharedfiles/filedetails/?id=2874517333]
[KV] More Trait Slots [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2878346573]
[KV] Random Goodwill [https://steamcommunity.com/sharedfiles/filedetails/?id=2551775344]
[KV] Save Storage, Outfit, Crafting, Drug, & Operation Settings [1.4] [https://steamcommunity.com/sharedfiles/filedetails/?id=2878346181]
[LTO] Colony Groups [https://steamcommunity.com/sharedfiles/filedetails/?id=2345493945]
Plasteel Surgery (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2018276375]
[PS] Reconditioning Pod (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2044003955]
[SYR] Doormats [https://steamcommunity.com/sharedfiles/filedetails/?id=1508778962]
[SYR] Processor Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2633514537]
[SYR] Set Up Camp [https://steamcommunity.com/sharedfiles/filedetails/?id=1470065926]
[T] MoreFloors 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2878200208]
[WD] Realistic Darkness [https://steamcommunity.com/sharedfiles/filedetails/?id=1531882210]
[XND] Tiny Tweaks (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2270049772]
RimThreaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2222907981]
ttr commented 1 year ago

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.