cseelhoff / RimThreaded

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

Pawns sleeping on floor after finishing their work #781

Open Tyrannys opened 1 year ago

Tyrannys commented 1 year ago

Developer To Do Notes:

Non-Vanilla Bug Report

Describe the bug

Pawns will go to sleep right where they are, and won't path to their bed

Steps to reproduce the behavior (VERY IMPORTANT)

  1. Start game
  2. Wait till night
  3. Have pawns working on something
  4. Pawns finish task and sleep on floor

Error Logs ?

Game doesn't crash, just an inconvenience

HugsLib log

Pawn Agnes threw exception while executing toil LayDown's finish action (0), jobDriver=RimWorld.JobDriver_LayDown, job=LayDown (Job_478331) A=(38, 0, 234), toilIndex=1: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.Toils_LayDown.ApplyBedThoughts (Verse.Pawn actor, RimWorld.Building_Bed bed) [0x0014c] in <1ea541f48818430abd724fc665f76dc4>:0 
  at RimWorld.Toils_LayDown.FinalizeLayingJob (Verse.Pawn pawn, RimWorld.Building_Bed bed, System.Boolean deathrest) [0x0000d] in <1ea541f48818430abd724fc665f76dc4>:0 
  at RimWorld.Toils_LayDown+<>c__DisplayClass6_0.<LayDown>b__2 () [0x00039] in <1ea541f48818430abd724fc665f76dc4>:0 
  at Verse.AI.Toil.Cleanup (System.Int32 myIndex, Verse.AI.JobDriver jobDriver) [0x0001f] in <1ea541f48818430abd724fc665f76dc4>:0 
UnityEngine.StackTraceUtility:ExtractStackTrace ()
(wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch2 (string)
Verse.AI.Toil:Cleanup (int,Verse.AI.JobDriver)
Verse.AI.JobDriver:Cleanup (Verse.AI.JobCondition)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.CleanupCurrentJob_Patch1 (Verse.AI.Pawn_JobTracker,Verse.AI.JobCondition,bool,bool,bool,System.Nullable`1<bool>)
RimThreaded.RW_Patches.Pawn_JobTracker_Patch:StartJob (Verse.AI.Pawn_JobTracker,Verse.AI.Job,Verse.AI.JobCondition,Verse.AI.ThinkNode,bool,bool,Verse.ThinkTreeDef,System.Nullable`1<Verse.AI.JobTag>,bool,bool,System.Nullable`1<bool>,bool,bool)
(wrapper dynamic-method) Verse.AI.Pawn_JobTracker:Verse.AI.Pawn_JobTracker.StartJob_Patch2 (Verse.AI.Pawn_JobTracker,Verse.AI.Job,Verse.AI.JobCondition,Verse.AI.ThinkNode,bool,bool,Verse.ThinkTreeDef,System.Nullable`1<Verse.AI.JobTag>,bool,bool,System.Nullable`1<bool>,bool,bool)
Verse.AI.Pawn_JobTracker:CheckForJobOverride ()
RimWorld.Toils_LayDown/<>c__DisplayClass6_0:<LayDown>b__1 ()
Verse.AI.JobDriver:DriverTick ()
Verse.AI.Pawn_JobTracker:JobTrackerTick ()
Verse.Pawn:Tick ()
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)

Player.log (Optional)

https://gist.github.com/7283c695786efa313f6e11bb673190cd

Save file ?

https://www.dropbox.com/s/iamtgpnuir42yun/The%20Black%20Ridge%20Bandits.rws?dl=1

Screenshots (Optional) ?

SleepingAfterMining

Mod list (Preferably a RimPy compatible list.) ?

[Mod list length: 119]
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)]
HugsLib [https://steamcommunity.com/sharedfiles/filedetails/?id=818773962]
Graphics Settings+ [https://steamcommunity.com/sharedfiles/filedetails/?id=1678847247]
JecsTools [https://steamcommunity.com/sharedfiles/filedetails/?id=932008009]
A RimWorld of Magic [https://steamcommunity.com/sharedfiles/filedetails/?id=1201382956]
Better Vanilla Masking [https://steamcommunity.com/sharedfiles/filedetails/?id=1736114368]
Biotech [Official DLC] [https:// no link (local mod)]
AI Upscaled Textures - Core [https://steamcommunity.com/sharedfiles/filedetails/?id=2307494117]
AI Upscaled Textures - Mods [https://steamcommunity.com/sharedfiles/filedetails/?id=2323211835]
Animal Feed Trough (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2071757940]
AutopsyTable (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2102410542]
Backup Power [https://steamcommunity.com/sharedfiles/filedetails/?id=2084493662]
Better Workbench Management [https://steamcommunity.com/sharedfiles/filedetails/?id=935982361]
Bionic Jaws Are Not Disfigurements [https://steamcommunity.com/sharedfiles/filedetails/?id=2851137444]
Biotech Expansion - Core [https:// no link (local mod)]
Biotech Expansion - Mammalia [https:// no link (local mod)]
Biotech Expansion - Mythic [https:// no link (local mod)]
Blueprints [https://steamcommunity.com/sharedfiles/filedetails/?id=708455313]
Humanoid Alien Races [https://steamcommunity.com/sharedfiles/filedetails/?id=839005762]
Borg Race (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2042715537]
Bulk Smelting (Continued) [https:// no link (local mod)]
Camera+ [https://steamcommunity.com/sharedfiles/filedetails/?id=867467808]
Centralized Climate Control (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2007268173]
Children, school and learning [https://steamcommunity.com/sharedfiles/filedetails/?id=1541438230]
Clean Textures [https://steamcommunity.com/sharedfiles/filedetails/?id=2865361569]
Cybernetic Organism and Neural Network [https://steamcommunity.com/sharedfiles/filedetails/?id=2045064990]
Common Sense [https://steamcommunity.com/sharedfiles/filedetails/?id=1561769193]
Dubs Break Mod [https://steamcommunity.com/sharedfiles/filedetails/?id=1722398508]
Dubs Performance Analyzer [https://steamcommunity.com/sharedfiles/filedetails/?id=2038874626]
Dubs Skylights [https://steamcommunity.com/sharedfiles/filedetails/?id=833899765]
Durable Clothes (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2015395963]
Extension Cords [https://steamcommunity.com/sharedfiles/filedetails/?id=2156134995]
FindAGunDamnIt! (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2089553836]
Food Alert (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2017538067]
Food Poisoning Stack Fix (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2843483188]
Heat statistics (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2803766534]
Increased Stack [https://steamcommunity.com/sharedfiles/filedetails/?id=798158924]
Insulation (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2196454890]
Integrated Genes [https:// no link (local mod)]
Less Arbitrary Surgery (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2018250654]
Less Stupid Romance Attempt (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2014603702]
MineItAll - unofficial [https://steamcommunity.com/sharedfiles/filedetails/?id=1204987547]
Mines 2.0 [https://steamcommunity.com/sharedfiles/filedetails/?id=2503894706]
Mod Error Checker [https:// no link (local mod)]
My Little Planet [https://steamcommunity.com/sharedfiles/filedetails/?id=1117406550]
No Solar Flares [https:// no link (local mod)]
No Sympathy for Prisoners [https://steamcommunity.com/sharedfiles/filedetails/?id=2167490674]
No Trap Friendly Fire [https:// no link (local mod)]
Numbers [https://steamcommunity.com/sharedfiles/filedetails/?id=1414302321]
P-Music [https://steamcommunity.com/sharedfiles/filedetails/?id=725130005]
Pawn Name Variety [https://steamcommunity.com/sharedfiles/filedetails/?id=2159633754]
Misc. Robots [https://steamcommunity.com/sharedfiles/filedetails/?id=724602224]
Pick Up And Haul [https://steamcommunity.com/sharedfiles/filedetails/?id=1279012058]
Prostheses+ [https://steamcommunity.com/sharedfiles/filedetails/?id=2867032900]
Prosthetic Didgets (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2012507402]
Vanilla Achievements Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2288125657]
Vanilla Expanded Framework [https://steamcommunity.com/sharedfiles/filedetails/?id=2023507013]
Vanilla Fishing Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1914064942]
ReGrowth: Core [https://steamcommunity.com/sharedfiles/filedetails/?id=2260097569]
ReGrowth: Boreal [https://steamcommunity.com/sharedfiles/filedetails/?id=2106597000]
ReGrowth: Tundra [https://steamcommunity.com/sharedfiles/filedetails/?id=2107412614]
Research Reinvented [https://steamcommunity.com/sharedfiles/filedetails/?id=2868392160]
Replace Stuff [https://steamcommunity.com/sharedfiles/filedetails/?id=1372003680]
Research Reinvented: Stepping Stones [https://steamcommunity.com/sharedfiles/filedetails/?id=2868389782]
RimHUD [https://steamcommunity.com/sharedfiles/filedetails/?id=1508850027]
RimNauts 2 [https:// no link (local mod)]
Safely Hidden Away [https://steamcommunity.com/sharedfiles/filedetails/?id=1322196379]
Scrollable Inspect Panes [https:// no link (local mod)]
Share The Load [https://steamcommunity.com/sharedfiles/filedetails/?id=1356838246]
Simple sidearms [https://steamcommunity.com/sharedfiles/filedetails/?id=927155256]
Smart Speed [https://steamcommunity.com/sharedfiles/filedetails/?id=1504723424]
Smarter Construction [https://steamcommunity.com/sharedfiles/filedetails/?id=2202185773]
Tabula Rasa [https://steamcommunity.com/sharedfiles/filedetails/?id=1660622094]
Tech Advancing [https://steamcommunity.com/sharedfiles/filedetails/?id=735268789]
Thick Roof Miner [https://steamcommunity.com/sharedfiles/filedetails/?id=2160890454]
TradeHelper [https://steamcommunity.com/sharedfiles/filedetails/?id=2113372560]
Trader ships [https:// no link (local mod)]
Trading Options [https:// no link (local mod)]
Trait and Backstory Icons [https://steamcommunity.com/sharedfiles/filedetails/?id=2873494547]
Ugly Together [https:// no link (local mod)]
Vanilla Animals Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2871933948]
Vanilla Apparel Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1814987817]
Vanilla Armour Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1814988282]
Vanilla Base Generation Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2830358905]
Vanilla Cooking Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2134308519]
Vanilla Cooking Expanded - Stews [https://steamcommunity.com/sharedfiles/filedetails/?id=2134312965]
Vanilla Events Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1938420742]
Vanilla Factions Expanded - Insectoids [https://steamcommunity.com/sharedfiles/filedetails/?id=2149755445]
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 - 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 Furniture Expanded - Props and Decor [https://steamcommunity.com/sharedfiles/filedetails/?id=2102143149]
Vanilla Weapons Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1814383360]
Vanilla Factions Expanded - Medieval [https://steamcommunity.com/sharedfiles/filedetails/?id=2023513450]
Vanilla Furniture Expanded - Security [https://steamcommunity.com/sharedfiles/filedetails/?id=1845154007]
Vanilla Furniture Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1718190143]
Vanilla Furniture Expanded - Spacer Module [https://steamcommunity.com/sharedfiles/filedetails/?id=2028381079]
Vanilla Hair Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=1888705256]
Vanilla Plants Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2134308522]
Vanilla Storytellers Expanded - Empress Evil [https://steamcommunity.com/sharedfiles/filedetails/?id=2149702528]
Vanilla Storytellers Expanded - Perry Persistent [https://steamcommunity.com/sharedfiles/filedetails/?id=2149702069]
Vanilla Textures Expanded [https://steamcommunity.com/sharedfiles/filedetails/?id=2016436324]
Vanilla Weapons Expanded - Laser [https://steamcommunity.com/sharedfiles/filedetails/?id=1989352844]
Vanilla Weapons Expanded - Quickdraw [https://steamcommunity.com/sharedfiles/filedetails/?id=1906780517]
Wall Light [https://steamcommunity.com/sharedfiles/filedetails/?id=1423699208]
[1.4 FORK] EdB Prepare Carefully [https:// no link (local mod)]
[CM] Biotech DLC Texture Upscale [https:// no link (local mod)]
[KV] More Trait Slots [1.4] [https:// no link (local mod)]
[O21] WikiRim (Continued) [https://steamcommunity.com/sharedfiles/filedetails/?id=2198532017]
[SYR] Coffee and Tea [https://steamcommunity.com/sharedfiles/filedetails/?id=1485312620]
[SYR] Individuality [https://steamcommunity.com/sharedfiles/filedetails/?id=1497105115]
[SYR] Scar Removal Plus [https://steamcommunity.com/sharedfiles/filedetails/?id=1507367510]
RimThreaded [https://steamcommunity.com/sharedfiles/filedetails/?id=2222907981]
chipsdotmp4 commented 1 year ago

Hello, I noticed the mod list on this issue is very large, but I'm experiencing this exact issue with the following mods enabled:

image

connormcdermid commented 1 year ago

I was able to reproduce this bug with no mods other than RimThreaded and Harmony.