trade caravan GUI flickering

Started by Prologue, July 31, 2021, 05:27:03 AM

Previous topic - Next topic

Prologue

I'm working on setting up a modded game for version 1.3.3076 (64 bit) (so many mods I did not count them).
So far I fixed all game breaking issues I found, but this one I have not figured out yet.
I do not have any of the DLC's.

The issue is that when I right click on a trader pawn from a friendly NPC trade caravan, to try and select the trading option from the menu, the GUI that pops up from the right click flickers intensely and I am not able to use it to navigate to the actual trade GUI. Leaving me unable to trade with the trade caravan. I am also unable to right click the trade NPC to open the GUI while the game is on pause.

So far I've not noticed any problems with other GUI elements.

I'm a bit of a noob when it comes to reading error logs, but I think I found some lines that may relate to the issue (sorry if it's too much):

UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Message (string)
Kyrun.Reunion.Util:Msg (object)
Kyrun.Reunion.GameComponent:InitOnLoad ()
Kyrun.Reunion.HarmonyPatches/Verse_Game_LoadGame:Postfix ()
(wrapper dynamic-method) Verse.Game:Verse.Game.LoadGame_Patch1 (Verse.Game)
(wrapper dynamic-method) Verse.SavedGameLoaderNow:Verse.SavedGameLoaderNow.LoadGameFromSaveFileNow_Patch2 (string)
Verse.Root_Play/<>c:<Start>b__1_1 ()
(wrapper dynamic-method) Verse.LongEventHandler:Verse.LongEventHandler.RunEventFromAnotherThread_Patch1 (System.Action)
Verse.LongEventHandler/<>c:<UpdateCurrentAsynchronousEvent>b__27_0 ()
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart ()

Exception ticking Plant_TreeCecropia64701 (at (219, 0, 168)). Suppressing further errors. Exception: System.NullReferenceException: Object reference not set to an instance of an object
  at System.Collections.Generic.Dictionary`2[TKey,TValue].TryInsert (TKey key, TValue value, System.Collections.Generic.InsertionBehavior behavior) [0x00120] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at System.Collections.Generic.Dictionary`2[TKey,TValue].Add (TKey key, TValue value) [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at VEE.FertilityGrid_Patch.Postfix (Verse.IntVec3 loc, Verse.Map& ___map, System.Single& __result) [0x00058] in <a077280556534db99108071961191919>:0
  at (wrapper dynamic-method) RimWorld.FertilityGrid.RimWorld.FertilityGrid.CalculateFertilityAt_Patch1(RimWorld.FertilityGrid,Verse.IntVec3)
  at RimWorld.FertilityGrid.FertilityAt (Verse.IntVec3 loc) [0x00000] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.Plant.get_GrowthRateFactor_Fertility () [0x00017] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.Plant.RimWorld.Plant.get_GrowthRate_Patch2(RimWorld.Plant)
  at RimWorld.Plant.get_GrowthPerTick () [0x00017] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.Plant.RimWorld.Plant.TickLong_Patch1(RimWorld.Plant)
  at RimThreaded.TickList_Patch.LongThingTick () [0x00025] in <6d80dab2f81d4e0f8deef4c54db49b36>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Log:ErrorOnce (string,int)
RimThreaded.TickList_Patch:LongThingTick ()
RimThreaded.RimThreaded:ExecuteTicks ()
RimThreaded.RimThreaded:ProcessTicks (RimThreaded.RimThreaded/ThreadInfo)
RimThreaded.RimThreaded:InitializeThread (object)
System.Threading.ThreadHelper:ThreadStart_Context (object)
System.Threading.ExecutionContext:RunInternal (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object,bool)
System.Threading.ExecutionContext:Run (System.Threading.ExecutionContext,System.Threading.ContextCallback,object)
System.Threading.ThreadHelper:ThreadStart (object)

Root level exception in OnGUI(): System.MissingMethodException: bool Verse.ReachabilityUtility.CanReach(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode)
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00102] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch12(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch3(UnityEngine.Vector3,Verse.Pawn,bool)
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector)
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Exception filling window for Verse.FloatMenuMap: System.MissingMethodException: bool Verse.ReachabilityUtility.CanReach(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode)
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00102] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch12(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch3(UnityEngine.Vector3,Verse.Pawn,bool)
  at Verse.FloatMenuMap.StillValid (Verse.FloatMenuOption opt, System.Collections.Generic.List`1[T] curOpts, Verse.Pawn forPawn) [0x00061] in <f429400e900f434099af71800afbc07e>:0
  at Verse.FloatMenuMap.<DoWindowContents>g__RevalidateOption|6_0 (Verse.FloatMenuOption option, Verse.FloatMenuMap+<>c__DisplayClass6_0& ) [0x00008] in <f429400e900f434099af71800afbc07e>:0
  at Verse.FloatMenuMap.DoWindowContents (UnityEngine.Rect inRect) [0x00117] in <f429400e900f434099af71800afbc07e>:0
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <f429400e900f434099af71800afbc07e>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

Root level exception in OnGUI(): System.MissingMethodException: bool Verse.ReachabilityUtility.CanReach(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode)
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00102] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch12(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch3(UnityEngine.Vector3,Verse.Pawn,bool)
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector)
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Exception filling window for Verse.FloatMenuMap: System.MissingMethodException: bool Verse.ReachabilityUtility.CanReach(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode)
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00102] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch12(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch3(UnityEngine.Vector3,Verse.Pawn,bool)
  at Verse.FloatMenuMap.StillValid (Verse.FloatMenuOption opt, System.Collections.Generic.List`1[T] curOpts, Verse.Pawn forPawn) [0x00061] in <f429400e900f434099af71800afbc07e>:0
  at Verse.FloatMenuMap.<DoWindowContents>g__RevalidateOption|6_0 (Verse.FloatMenuOption option, Verse.FloatMenuMap+<>c__DisplayClass6_0& ) [0x00008] in <f429400e900f434099af71800afbc07e>:0
  at Verse.FloatMenuMap.DoWindowContents (UnityEngine.Rect inRect) [0x000a6] in <f429400e900f434099af71800afbc07e>:0
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <f429400e900f434099af71800afbc07e>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

Root level exception in OnGUI(): System.MissingMethodException: bool Verse.ReachabilityUtility.CanReach(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode)
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00102] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch12(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch3(UnityEngine.Vector3,Verse.Pawn,bool)
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector)
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Exception filling window for Verse.FloatMenuMap: System.MissingMethodException: bool Verse.ReachabilityUtility.CanReach(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode)
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00102] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch12(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch3(UnityEngine.Vector3,Verse.Pawn,bool)
  at Verse.FloatMenuMap.StillValid (Verse.FloatMenuOption opt, System.Collections.Generic.List`1[T] curOpts, Verse.Pawn forPawn) [0x00061] in <f429400e900f434099af71800afbc07e>:0
  at Verse.FloatMenuMap.<DoWindowContents>g__RevalidateOption|6_0 (Verse.FloatMenuOption option, Verse.FloatMenuMap+<>c__DisplayClass6_0& ) [0x00008] in <f429400e900f434099af71800afbc07e>:0
  at Verse.FloatMenuMap.DoWindowContents (UnityEngine.Rect inRect) [0x000a6] in <f429400e900f434099af71800afbc07e>:0
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001ce] in <f429400e900f434099af71800afbc07e>:0
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Window:InnerWindowOnGUI (int)
UnityEngine.GUI:CallWindowDelegate (UnityEngine.GUI/WindowFunction,int,int,UnityEngine.GUISkin,int,single,single,UnityEngine.GUIStyle)

Root level exception in OnGUI(): System.MissingMethodException: bool Verse.ReachabilityUtility.CanReach(Verse.Pawn,Verse.LocalTargetInfo,Verse.AI.PathEndMode,Verse.Danger,bool,Verse.TraverseMode)
  at Verse.ThingWithComps+<GetFloatMenuOptions>d__40.MoveNext () [0x00102] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.AddHumanlikeOrders_Patch12(UnityEngine.Vector3,Verse.Pawn,System.Collections.Generic.List`1<Verse.FloatMenuOption>)
  at (wrapper dynamic-method) RimWorld.FloatMenuMakerMap.RimWorld.FloatMenuMakerMap.ChoicesAtFor_Patch3(UnityEngine.Vector3,Verse.Pawn,bool)
  at RimWorld.FloatMenuMakerMap.TryMakeFloatMenu (Verse.Pawn pawn) [0x000a1] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) RimWorld.Selector.RimWorld.Selector.HandleMapClicks_Patch1(RimWorld.Selector)
  at RimWorld.Selector.SelectorOnGUI () [0x00000] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.MapInterface.HandleLowPriorityInput () [0x0000f] in <f429400e900f434099af71800afbc07e>:0
  at RimWorld.UIRoot_Play.UIRootOnGUI () [0x000dd] in <f429400e900f434099af71800afbc07e>:0
  at (wrapper dynamic-method) Verse.Root.Verse.Root.OnGUI_Patch1(Verse.Root)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
(wrapper dynamic-method) Verse.Root:Verse.Root.OnGUI_Patch1 (Verse.Root)

Canute

Hi,
arn't you long enough at the forum that you know you should add a full logfile or hugslib link to a report too ?

The repeating Exception and Root level exception are prolly the source of the flickering.
But like at the most times, there isn't a modname visible to say that mod do it.
But there are some patches visible like
AddHumanlikeOrders_Patch12
OnGUI_Patch1
You can use the hugslib upload which include the patch list too, and check if you can find these patches and maybe get a clue about that mod.
If you could identify the mod, report it to the author.

Alternativ, check if  the same problem happen on a new colony.
Create a test colony with the hugslib quickstart feature.
Create a simple base with the god mode.
Incident map trade caravan.
And when you are lucky the problem happen there too.
Then just disable mods, until you find the problem mod.


Prologue

To be honest I never did a bug report before on Rimworld. I'll look if I can find waht you are looking for.

Prologue

So, I'm not sure how to get a report from hugslib, but the full report that I got from the dev tool turn out to be 3948 lines of text when I save it in a txt document. I'm not sure if that is too much to post here  :-\