RimWorld

RimWorld

Misc. Robots
[EH] Mordred 25 Oct, 2022 @ 4:17pm
Memory leak?
I'm getting this weird error, and whenever it happens the game takes all my 64gb RAM.
Any ideas? Thanks so much

Exception ticking CleaningBot 1 (at (169, 0, 165)): System.OutOfMemoryException: Out of memory
at (wrapper managed-to-native) System.Object.__icall_wrapper_ves_icall_array_new_specific(intptr,int)
at System.Collections.Generic.List`1[T].set_Capacity (System.Int32 value) [0x00021] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.List`1[T].EnsureCapacity (System.Int32 min) [0x00036] in <eae584ce26bc40229c1b1aa476bfa589>:0
at System.Collections.Generic.List`1[T].Add (T item) [0x00010] in <eae584ce26bc40229c1b1aa476bfa589>:0
at Verse.AI.PawnPath.AddNode (Verse.IntVec3 nodePosition) [0x00000] in <a7463a06f2454dfcb1840bc06cbe4fd3>:0
at Verse.AI.PathFinder.FinalizedPath (System.Int32 finalIndex, System.Boolean usedRegionHeuristics) [0x00036] in <a7463a06f2454dfcb1840bc06cbe4fd3>:0
at (wrapper dynamic-method) Verse.AI.PathFinder.Verse.AI.PathFinder.FindPath_Patch1(Verse.AI.PathFinder,Verse.IntVec3,Verse.LocalTargetInfo,Verse.TraverseParms,Verse.AI.PathEndMode,Verse.AI.PathFinderCostTuning)
at Verse.AI.PathFinder.FindPath (Verse.IntVec3 start, Verse.LocalTargetInfo dest, Verse.Pawn pawn, Verse.AI.PathEndMode peMode, Verse.AI.PathFinderCostTuning tuning) [0x0003e] in <a7463a06f2454dfcb1840bc06cbe4fd3>:0
at (wrapper dynamic-method) Verse.AI.Pawn_PathFollower.Verse.AI.Pawn_PathFollower.GenerateNewPath_Patch1(Verse.AI.Pawn_PathFollower)
at Verse.AI.Pawn_PathFollower.TrySetNewPath () [0x00000] in <a7463a06f2454dfcb1840bc06cbe4fd3>:0
at (wrapper dynamic-method) Verse.AI.Pawn_PathFollower.Verse.AI.Pawn_PathFollower.TryEnterNextPathCell_Patch1(Verse.AI.Pawn_PathFollower)
at Verse.AI.Pawn_PathFollower.PatherTick () [0x001d8] in <a7463a06f2454dfcb1840bc06cbe4fd3>:0
at (wrapper dynamic-method) Verse.Pawn.Verse.Pawn.Tick_Patch1(Verse.Pawn)
at AIRobot.X2_AIRobot.Tick () [0x00151] in <a2274a809c104f19a613baa21c6828d3>:0
at Verse.TickList.Tick () [0x0015c] in <a7463a06f2454dfcb1840bc06cbe4fd3>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.TickList:Tick ()
(wrapper dynamic-method) Verse.TickManager:Verse.TickManager.DoSingleTick_Patch2 (Verse.TickManager)
Verse.TickManager:TickManagerUpdate ()
Verse.Game:UpdatePlay ()
(wrapper dynamic-method) Verse.Root_Play:Verse.Root_Play.Update_Patch1 (Verse.Root_Play)
< >
Showing 1-6 of 6 comments
Haplo_X1  [developer] 26 Oct, 2022 @ 11:59am 
This looks like a really critical issue.
I'd suggest to take a look which mod adds the FindPath_Patch1, GenerateNewPath_Patch1, TryEnterNextPathCell_Patch1, DoSingleTick_Patch2.
It should be shown somewhere at the beginning of the file.
One of these patches may do something critical to overload a list with path nodes. This should never happen, except when you have a kind of endless loop somewhere.
My guess is an error in the patch1 of the FindPath function. But I have no idea what mod does that.
[EH] Mordred 26 Oct, 2022 @ 4:29pm 
I've found it! I was Clean Pathfinding mod. got rid of it and it's doing the work
VeteranXT 29 Oct, 2022 @ 1:12pm 
@Camord i told you. =D
[EH] Mordred 30 Oct, 2022 @ 3:46pm 
Originally posted by VeteranXT:
@Camord i told you. =D
Oh I asked both forums :-P you were indeed first to point it out
InFerNos1 5 Nov, 2022 @ 3:11am 
I had this issue too, and removing Clean Pathfinding was indeed the solution.

Seeing my task manager go 99% with 56GB of RAM being used by Rimworld was indeed an experience.
DPPMDRNG 8 Dec, 2022 @ 9:27pm 
I think removing clean pathfinding fixed it for me too.
Thatnk you!
< >
Showing 1-6 of 6 comments
Per page: 1530 50