[W|11.857] Game locks up with System.NullReferenceException

Started by AndyN, July 21, 2015, 03:33:01 PM

Previous topic - Next topic


Essentially you play this map for about ten minutes or less and the game locks up. Windows tells you that RimWorld is not responding and gives you the option to close the application or keep waiting.

Not much was done in-game. Some mining and forced shooting of animals with turrets occurred.

Salient portion of the error log (repeated over and over):

JobDriver threw exception in initAction. Pawn=Squirrel500347, Job=Wait, Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at RimWorld.GenHostility.HostileTo (Verse.Thing a, Verse.Thing b) [0x00000] in <filename unknown>:0
   at Verse.AI.JobDriver_Wait.CheckForAutoAttack () [0x00000] in <filename unknown>:0
   at Verse.AI.JobDriver_Wait+<MakeNewToils>c__IteratorDB.<>m__2D0 () [0x00000] in <filename unknown>:0
   at Verse.AI.JobDriver.TryActuallyStartNextToil () [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

This looks it might be an instance of:


But judging from the comments, I thought it would be useful to provide an extra example.

Map too large to attach, available here:


Let me know if I can provide any more information.

[attachment deleted due to age]


Thanks for the great report. You surmised correctly that it is a side effect of that other bug.

This is hotfix-mitigated with A11d, so if you update your save should load and play correctly again.
Tynan Sylvester - @TynanSylvester - Tynan's Blog