1.4 unmodded, error involving crashlanded pawns? Object reference not set

Started by Rimpressive, October 09, 2022, 03:33:11 PM

Previous topic - Next topic

Rimpressive

I fully admit I have no idea what this error means but it happened twice. It seems to only involve non colonist visitors via crashland event?

Exception ticking Chia: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.RestUtility.CanFallAsleep (Verse.Pawn pawn) [0x0000a] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at RimWorld.Need_Rest.CanInvoluntarilySleep (Verse.Pawn pawn) [0x00044] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at RimWorld.Need_Rest.NeedInterval () [0x000a9] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at RimWorld.Pawn_NeedsTracker.NeedsTrackerTick () [0x00022] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at Verse.Pawn.Tick () [0x00111] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at Verse.TickList.Tick () [0x0015c] in <f5f108559d5f4b1a90c7fc770f557911>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()

Exception ticking Zot: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.RestUtility.CanFallAsleep (Verse.Pawn pawn) [0x0000a] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at RimWorld.Need_Rest.CanInvoluntarilySleep (Verse.Pawn pawn) [0x00044] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at RimWorld.Need_Rest.NeedInterval () [0x000a9] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at RimWorld.Pawn_NeedsTracker.NeedsTrackerTick () [0x00022] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at Verse.Pawn.Tick () [0x00111] in <f5f108559d5f4b1a90c7fc770f557911>:0
  at Verse.TickList.Tick () [0x0015c] in <f5f108559d5f4b1a90c7fc770f557911>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.TickList:Tick ()
Verse.TickManager:DoSingleTick ()
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
Verse.Root_Play:Update ()



Pheanox

Thanks for the bug report, could you give me a few more details though? This happened when a transport pod crash event happened? Was the pawn hostile or neutral? I've tried to reproduce this by spamming transport pod crashes with no luck, but want to make sure I'm doing the right steps. If you have a save where this occurred that would be great.

Rimpressive

I'm sorry I don't have more information, I got both of these notices hours apart in a single play-through. I somewhat ignored the first one, and only decided to report after the second.

I can tell you I was playing on peaceful. I have tried reproducing it myself doing 10x events for everything that causes other pawns to visit, not counting raids, and I cant reproduce the results either. All I can say for certain is there were never enemy raids and the people referenced were not colonists.

Sorry I can't be of more help.

PS I can technically provide the save but its been a long time since the events, I have done the royalty ending and resettled a new colony tile since them, I doubt it has any value.