Skip to content

Rapid background errors, "YoungstersHappy thought state" #784

@loba269

Description

@loba269

Developer To Do Notes:

  • [ ]
  • [ ]
  • [ ]

Non-Vanilla Bug Report

Describe the bug

I made a modpack recently to try out Zombieland, running it far leaner than I normally do, I'm encountering a persistent issue when keeping RimThreaded enabled. My game slows down over time until it crashes. Sometimes it takes 30 minutes to freeze, sometimes hours. But it's always gauranteed. What is also gauranteed is, the log floods with nearly identical errors about "YoungstersHappy" or "YoungstersSad" thoughts for all of my pawns. The log fills up within seconds due to how rapidly the errors spam. I have removed over 20 mods and have not found the culprit, but moments before writing this post, I removed rimthreaded and my game performance dramatically increased, and no more error spam in the logs.

I'm going to keep experimenting because I want to keep rimthreaded, but right now I'm unsure what is conflicting with rimthreaded.

Note: Aside from the downward curve in game performance and occasional crashes, I haven't noticed any issues with gameplay itself. Mostly everything plays as expected.

Steps to reproduce the behavior (VERY IMPORTANT)

Unknown, will update if I figure it out on my own. At the moment the bug happens 24/7, immediately after loading my game until it crashes or I close the game on my own. The only step I have so far to create the issue is enable rimthreaded with my modlist/world.

Error Logs

Exception while recalculating YoungstersHappy thought state for pawn Gholos: System.IndexOutOfRangeException: index + length > size
at System.Array.Clear (System.Array array, System.Int32 index, System.Int32 length) [0x00044] in :0
at System.Collections.Generic.List1[T].Clear () [0x00009] in <eae584ce26bc40229c1b1aa476bfa589>:0 at RimWorld.ThoughtWorker_YoungstersMoodBase.ChildrenWithMoodInColony (Verse.Pawn pawn) [0x00002] in <38562b1a2ab64eacb931fb5df05ca994>:0 at RimWorld.ThoughtWorker_YoungstersMoodBase.CurrentStateInternal (Verse.Pawn p) [0x00030] in <38562b1a2ab64eacb931fb5df05ca994>:0 at RimWorld.ThoughtWorker.CurrentState (Verse.Pawn p) [0x00010] in <38562b1a2ab64eacb931fb5df05ca994>:0 at RimWorld.SituationalThoughtHandler.TryCreateThought (RimWorld.ThoughtDef def) [0x0001e] in <38562b1a2ab64eacb931fb5df05ca994>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () Verse.Log:Error (string) RimWorld.SituationalThoughtHandler:TryCreateThought (RimWorld.ThoughtDef) RimThreaded.RW_Patches.SituationalThoughtHandler_Patch:CheckRecalculateMoodThoughts (RimWorld.SituationalThoughtHandler) (wrapper dynamic-method) RimWorld.SituationalThoughtHandler:RimWorld.SituationalThoughtHandler.CheckRecalculateMoodThoughts_Patch1 (RimWorld.SituationalThoughtHandler) RimWorld.SituationalThoughtHandler:AppendMoodThoughts (System.Collections.Generic.List1<RimWorld.Thought>)
RimWorld.ThoughtHandler:GetAllMoodThoughts (System.Collections.Generic.List1<RimWorld.Thought>) RimWorld.ThoughtHandler:GetDistinctMoodThoughtGroups (System.Collections.Generic.List1<RimWorld.Thought>)
(wrapper dynamic-method) RimWorld.ThoughtHandler:RimWorld.ThoughtHandler.TotalMoodOffset_Patch0 (RimWorld.ThoughtHandler)
RimWorld.Need_Mood:get_CurInstantLevel ()
RimWorld.Need_Seeker:NeedInterval ()
RimWorld.Need_Mood:NeedInterval ()
RimWorld.Pawn_NeedsTracker:NeedsTrackerTick ()
(wrapper dynamic-method) Verse.Pawn:Verse.Pawn.Tick_Patch1 (Verse.Pawn)
RimThreaded.RW_Patches.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)

PlayerLog.zip

HugsLib log

https://gist.github.com/e01d85035efc529332dcd166e7af5695

Save file ?

Zombieland.zip

Mod list (Preferably a RimPy compatible list.) ?

[Mod list length: 55]
Harmony [https://steamcommunity.com/sharedfiles/filedetails/?id=2009463077]
Core [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]
Allow Tool [https://steamcommunity.com/sharedfiles/filedetails/?id=761421485]
Bad Can Be Good (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2889440091]
Beautiful Outdoors [https://steamcommunity.com/sharedfiles/filedetails/?id=2011794898]
BetterInfoCard [https://steamcommunity.com/sharedfiles/filedetails/?id=2890920739]
Dubs Bad Hygiene [https://steamcommunity.com/sharedfiles/filedetails/?id=836308268]
Dubs Skylights [https://steamcommunity.com/sharedfiles/filedetails/?id=833899765]
EdB Prepare Carefully [https://steamcommunity.com/sharedfiles/filedetails/?id=735106432]
Floordrawings [https://steamcommunity.com/sharedfiles/filedetails/?id=2878970750]
Food Poisoning Stack Fix (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2843483188]
Geological Landforms [https://steamcommunity.com/sharedfiles/filedetails/?id=2773943594]
Go Explore! [https://steamcommunity.com/sharedfiles/filedetails/?id=1814100216]
Go the F*** to Sleep - Forked [https://steamcommunity.com/sharedfiles/filedetails/?id=2880337287]
RimFridge: Now with Shelves! [https://steamcommunity.com/sharedfiles/filedetails/?id=2898411376]
LWM's Deep Storage [https://steamcommunity.com/sharedfiles/filedetails/?id=1617282896]
Life Support Continued [1.1+] [https://steamcommunity.com/sharedfiles/filedetails/?id=2937012139]
Literally just a sofa [https://steamcommunity.com/sharedfiles/filedetails/?id=2894560149]
Medical Tab [https://steamcommunity.com/sharedfiles/filedetails/?id=715565817]
Muzzle Flash [https://steamcommunity.com/sharedfiles/filedetails/?id=2917732219]
Perspective: Ores [https://steamcommunity.com/sharedfiles/filedetails/?id=2923871543]
Cash Register [https://steamcommunity.com/sharedfiles/filedetails/?id=2506046833]
Gastronomy [https://steamcommunity.com/sharedfiles/filedetails/?id=2279786905]
Recipe icons (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2904906618]
Research Reinvented [https://steamcommunity.com/sharedfiles/filedetails/?id=2868392160]
RimForge [https://steamcommunity.com/sharedfiles/filedetails/?id=2505778174]
Rimefeller [https://steamcommunity.com/sharedfiles/filedetails/?id=1321849735]
Simple FX: Splashes [https://steamcommunity.com/sharedfiles/filedetails/?id=2889330414]
Simple Utilities: Ceiling [https://steamcommunity.com/sharedfiles/filedetails/?id=2571003732]
Trading Options [https://steamcommunity.com/sharedfiles/filedetails/?id=2876541977]
Vanilla Expanded Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2023507013]
Vanilla Animals Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2871933948]
Vanilla Cooking Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2134308519]
Vanilla Fishing Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1914064942]
Vanilla Cooking Expanded - Sushi [https://steamcommunity.com/sharedfiles/filedetails/?id=2158539170]
Vanilla Furniture Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1718190143]
Vanilla Furniture Expanded - Architect [https://steamcommunity.com/sharedfiles/filedetails/?id=2608762624]
Vanilla Furniture Expanded - Farming [https://steamcommunity.com/sharedfiles/filedetails/?id=1957158779]
Vanilla Furniture Expanded - Medical Module [https://steamcommunity.com/sharedfiles/filedetails/?id=1718191613]
Vanilla Furniture Expanded - Power [https://steamcommunity.com/sharedfiles/filedetails/?id=2062943477]
Vanilla Furniture Expanded - Production [https://steamcommunity.com/sharedfiles/filedetails/?id=1880253632]
Vanilla Plants Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2134308522]
Vanilla Plants Expanded - Succulents [https://steamcommunity.com/sharedfiles/filedetails/?id=2198652536]
Vanilla Textures Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2016436324]
Vanilla Weapons Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1814383360]
Victorian decorations [https://steamcommunity.com/sharedfiles/filedetails/?id=2937276828]
Clean Textures [https://steamcommunity.com/sharedfiles/filedetails/?id=2865361569]
XML Extensions [https://steamcommunity.com/sharedfiles/filedetails/?id=2574315206]
Yayo's Animation (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2877292196]
Zombieland [https://steamcommunity.com/sharedfiles/filedetails/?id=928376710]
[T] MoreFloors 1.4 [https://steamcommunity.com/sharedfiles/filedetails/?id=2878200208]
RimThreaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2222907981]

  • Harmony
  • Core
  • Royalty (Optional)
  • Ideology (Optional)
  • HugsLib
  • RimThreaded

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugSomething isn't working.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions