Exception ticking error causing lag

Started by captaingold, April 30, 2019, 06:04:20 PM

Previous topic - Next topic

captaingold

I've gone through a few heavily modded save files that are all suffering from the same error. Some time after I load the save I will begin to experience a huge lag spike that won't go away, and it seems to coincide with the appearance of a specific error in the debug log. Any advice for resolving this issue would be appreciated because I have no idea if this is a problem with a mod or the game's core files.

My mod list and debug log: https://gist.github.com/HugsLibRecordKeeper/5828f65a83aa576be5ed50d2dce6f231

The error suspected to be the (possible) cause of the permanent lag spikes:
Exception ticking Droid 0 (at (145, 0, 82)). Suppressing further errors. Exception: System.IndexOutOfRangeException: Array index is out of range.
at Verse.RoofGrid.Roofed (Verse.IntVec3) <0x0003c>
at Verse.GridsUtility.Roofed (Verse.IntVec3,Verse.Map) <0x00040>
at Vampire.HarmonyPatches.CanReach_Vampire (bool&,Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode) <0x002ce>
at (wrapper dynamic-method) Verse.ReachabilityUtility.CanReach_Patch2 (Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode) <0x001c6>
at Verse.AI.HaulAIUtility.PawnCanAutomaticallyHaulFast (Verse.Pawn,Verse.Thing,bool) <0x00102>
at WhileYoureUp.Utils/<>c__DisplayClass7_0.<MaybeHaulOtherStuffFirst>b__0 (Verse.Thing) <0x00066>
at WhileYoureUp.Utils.SomeThing (System.Collections.Generic.IEnumerable`1<Verse.Thing>,System.Predicate`1<Verse.Thing>) <0x00080>
at WhileYoureUp.Utils.MaybeHaulOtherStuffFirst (Verse.Pawn,Verse.LocalTargetInfo) <0x003a7>
at WhileYoureUp.HaulAdder.MyDetermineNextJob (Verse.AI.Pawn_JobTracker,Verse.AI.ThinkResult&) <0x003a8>
at (wrapper dynamic-method) Verse.AI.Pawn_JobTracker.DetermineNextJob_Patch6 (object,Verse.ThinkTreeDef&) <0x004ca>
at Verse.AI.Pawn_JobTracker.TryFindAndStartJob () <0x00166>
at (wrapper dynamic-method) Verse.AI.Pawn_JobTracker.EndCurrentJob_Patch2 (object,Verse.AI.JobCondition,bool) <0x00507>
at Verse.AI.Pawn_JobTracker.JobTrackerTick () <0x002fc>
at (wrapper dynamic-method) Verse.Pawn.Tick_Patch4 (object) <0x00225>
at Verse.TickList.Tick () <0x00487>

Canute

Hi,
i think this is maybe an incompactibility with Vampire and WhileYoureUp.
I would deactivate WhileYoureUp at first and check if that helps.

You can visit the discord of the Rim of Madness team and ask about it too. If they know a solution.
Since the author from WhileYoureUp are inactive i wouldn't await any improvement from his side.

captaingold

Thanks for the reply Canute! I'll test a new save without those mods ASAP

captaingold

Quote from: Canute on May 01, 2019, 03:25:48 AM
Hi,
i think this is maybe an incompactibility with Vampire and WhileYoureUp.
I would deactivate WhileYoureUp at first and check if that helps.

You can visit the discord of the Rim of Madness team and ask about it too. If they know a solution.
Since the author from WhileYoureUp are inactive i wouldn't await any improvement from his side.

Your fix seems to be working so far Canute. I hope it will stay that way. Thanks for the help!