cseelhoff / RimThreaded

RimThreaded is a RimWorld mod designed to enable RimWorld to utilize multiple threads.
MIT License
117 stars 21 forks source link

Trader stuck often also applies to raiders #345

Closed Niilo007 closed 3 years ago

Niilo007 commented 3 years ago

Describe the bug When traders or raiders or visitors spawn, they get stuck, sometimes reloading save fixes it but not always

To Reproduce Steps to reproduce the behavior:

  1. Play normally 2a. Trader spawns in and gets stuck 2b. Raider spawns in and gets stuck 2c. Visitor spawns in and gets stuck
  2. Re load save
  3. They may or may not be unstuck after loading

Error Log https://gist.github.com/Niilo007/75e9d0c5282aca85d89607f0f5600145 https://gist.github.com/46970a6d4d5f0dbc7805690b3ef05d77

Mod List

Screenshots NA

Niilo007 commented 3 years ago

Exception ticking Yoonie (at (2, 0, 265)): System.NullReferenceException: Object reference not set to an instance of an object at Verse.AI.RegionCostCalculatorWrapper.Init (Verse.CellRect end, Verse.TraverseParms traverseParms, System.Int32 moveTicksCardinal, System.Int32 moveTicksDiagonal, Verse.ByteGrid avoidGrid, Verse.Area allowedArea, System.Boolean drafted, System.Collections.Generic.List`1[T] disallowedCorners) [0x00046] in :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) at Verse.AI.PathFinder.FindPath (Verse.IntVec3 start, Verse.LocalTargetInfo dest, Verse.Pawn pawn, Verse.AI.PathEndMode peMode) [0x00028] in :0 at Verse.AI.Pawn_PathFollower.GenerateNewPath () [0x0002c] in :0 at Verse.AI.Pawn_PathFollower.TrySetNewPath () [0x00000] in :0 at Verse.AI.Pawn_PathFollower.TryEnterNextPathCell () [0x00211] in :0 at Verse.AI.Pawn_PathFollower.PatherTick () [0x001c8] in :0 at Verse.Pawn.Tick () [0x00054] in :0 at RimThreaded.RimThreaded.ExecuteTicks () [0x00040] in :0 Verse.Log:Error(String, Boolean) RimThreaded.RimThreaded:ExecuteTicks() RimThreaded.RimThreaded:ProcessTicks() RimThreaded.<>c:b__128_0() System.Threading.ThreadHelper:ThreadStart_Context(Object) System.Threading.ExecutionContext:RunInternal(ExecutionContext, ContextCallback, Object, Boolean) System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object, Boolean) System.Threading.ExecutionContext:Run(ExecutionContext, ContextCallback, Object) System.Threading.ThreadHelper:ThreadStart() Player.log

Niilo007 commented 3 years ago

Most likely to be caused by:

gguake.areaninclusionexclusion

or in some cases

area unlocker or similiar

Edit: There seems to be more to it than that, but that's pretty much expected. (Removing "areaninclusionexclusion" seemed to reduce frequency of errors but there is something else also causing problems)

Niilo007 commented 3 years ago

https://gist.github.com/040869931e503506ad48527c5517d037

another log with similiar issues

Niilo007 commented 3 years ago

https://gist.github.com/Niilo007/f94e7d92dd0032a2215e39e7e851e6ad and another player log in case it helps

Niilo007 commented 3 years ago

Does not seem to happen with new versions & trimmed mod list