Game slows down due to exception ticking pawns

Started by MechanoidHater, June 20, 2019, 03:13:15 PM

Previous topic - Next topic

MechanoidHater

The very moment the map loads, debug log window opens and keep spewing this error.

Exception ticking Fio (at (46, 0, 254)): System.NullReferenceException: Object reference not set to an instance of an object
at RimWorld.SkillRecord.CalculateTotallyDisabled () <0x00026>
at RimWorld.SkillRecord.get_TotallyDisabled () <0x00028>
at RimWorld.SkillRecord.get_Level () <0x0001c>
at RimWorld.PriceUtility.<PawnQualityPriceFactor>m__0 (RimWorld.SkillRecord) <0x0001f>
at System.Linq.Enumerable.Average<RimWorld.SkillRecord> (System.Collections.Generic.IEnumerable`1<RimWorld.SkillRecord>,System.Func`2<RimWorld.SkillRecord, single>) <0x000fb>
at RimWorld.PriceUtility.PawnQualityPriceFactor (Verse.Pawn,System.Text.StringBuilder) <0x002ee>
at RimWorld.StatWorker_MarketValue.GetValueUnfinalized (RimWorld.StatRequest,bool) <0x00116>
at RimWorld.StatWorker.GetValue (RimWorld.StatRequest,bool) <0x0014a>
at RimWorld.StatWorker.GetValue (Verse.Thing,bool) <0x00070>
at RimWorld.StatExtension.GetStatValue (Verse.Thing,RimWorld.StatDef,bool) <0x0004e>
at Verse.Thing.get_MarketValue () <0x0002e>
at (wrapper dynamic-method) RimWorld.WealthWatcher.ForceRecount_Patch1 (object,bool) <0x0031f>
at RimWorld.WealthWatcher.RecountIfNeeded () <0x0005f>
at RimWorld.WealthWatcher.get_WealthTotal () <0x0001c>
at RimWorld.ExpectationsUtility.CurrentExpectationFor (Verse.Map) <0x0002a>
at (wrapper dynamic-method) RimWorld.ExpectationsUtility.CurrentExpectationFor_Patch1 (Verse.Pawn) <0x000dc>
at RimWorld.JoyToleranceSet.NeedInterval (Verse.Pawn) <0x00023>
at RimWorld.Need_Joy.NeedInterval () <0x00047>
at RimWorld.Pawn_NeedsTracker.NeedsTrackerTick () <0x0006c>
at (wrapper dynamic-method) Verse.Pawn.Tick_Patch2 (object) <0x0035b>
at Verse.TickList.Tick () <0x00487>

Verse.Log:Error(String, Boolean)
Verse.TickList:Tick()
Verse.TickManager:DoSingleTick_Patch1(Object)
Verse.TickManager:TickManagerUpdate_Patch2(Object)
Verse.Game:UpdatePlay()
Verse.Root_Play:Update_Patch1(Object)


Logfile & active mods:
https://gist.github.com/26be23ab0a00ad426538865c828cc85b