RimWorld

RimWorld

Vanilla Furniture Expanded - Security
Junn Sorran Nov 7, 2022 @ 10:43am
[BUG] Shield generator exception causing massive lag
Hi, I recently started experiencing massive lag in the game, and after looking at visual exceptions i noticed that the small shield generator was probably responsible for it, I removed it and the TPS went up instantly.

The following exception was occuring thousands of times per minute

Exception in Verse.TickManager.DoSingleTick: System.NullReferenceException: Object reference not set to an instance of an object at VFESecurity.Building_Shield.ThreatDisabled (Verse.AI.IAttackTargetSearcher disabledFor) [0x00016] in <0c7cdc35ad2d49599f507a35801f85c4>:0 at RimWorld.DropCellFinder.IsSafeDropSpot (Verse.IntVec3 cell, Verse.Map map, RimWorld.Faction faction, System.Nullable`1[T] size, System.Int32 distToEdge, System.Int32 distToHostiles, System.Int32 distToFires) [0x000e6] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.DropCellFinder.SkyfallerCanLandAt (Verse.IntVec3 c, Verse.Map map, Verse.IntVec2 size, RimWorld.Faction faction) [0x00009] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.DropCellFinder.TryFindSafeLandingSpotCloseToColony (Verse.Map map, Verse.IntVec2 size, RimWorld.Faction faction, System.Int32 borderWidth) [0x000c4] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.DropCellFinder.GetBestShuttleLandingSpot (Verse.Map map, RimWorld.Faction factionForFindingSpot, Verse.Thing& firstBlockingThing) [0x00016] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.DropCellFinder.GetBestShuttleLandingSpot (Verse.Map map, RimWorld.Faction factionForFindingSpot) [0x00000] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.ShipJob_Arrive.TryStart () [0x0006d] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.TransportShip.TryGetNextJob () [0x00020] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.TransportShip.Tick () [0x0001f] in <81af9f8a18324e17b286924a43555a7c>:0 at RimWorld.TransportShipManager.ShipObjectsTick () [0x0001c] in <81af9f8a18324e17b286924a43555a7c>:0 at Verse.TickManager.DoSingleTick () [0x003e6] in <81af9f8a18324e17b286924a43555a7c>:0 - transpiler net.pardeike.rimworld.lib.harmony: IEnumerable`1 VisualExceptions.ExceptionsAndActivatorHandler:Transpiler(IEnumerable`1 instructions, MethodBase original) - transpiler Krkr.RocketMan: IEnumerable`1 RocketMan.Patches.TickManager_DoSingleTick_Patch:Transpiler(IEnumerable`1 instructions, ILGenerator generator) - prefix Krkr.RocketMan: Void RocketMan.Patches.TickManager_DoSingleTick_Context_Patch:Prefix() - prefix OskarPotocki.VFECore: Void VFECore.DoSingleTick_Patch:Prefix(Stopwatch& __state) - postfix OskarPotocki.VFECore: Void VFECore.DoSingleTick_Patch:Postfix(Stopwatch __state) - postfix vanillaexpanded.achievements: Void AchievementsExpanded.AchievementHarmony:SingleLongTickTracker() - postfix kyrun.mod.reunion: Void Kyrun.Reunion.HarmonyPatches+TickManager_DoSingleTick:Postfix(TickManager __instance) - postfix JPT.speakup: Void SpeakUp.TickManager_DoSingleTick:Postfix()