Novocain1 / MiscMods

Miscellaneous mods for Vintage Story
The Unlicense
7 stars 6 forks source link

(VSHUD) Client crashing when entering world (too many waypoints?) #3

Open bgoetschke opened 3 years ago

bgoetschke commented 3 years ago

When entering the World (Public Test Server), the client crashes: client-crash.txt

The stack trace looks like it is processing waypoints, on that server i have nearly 1200 of them.

bluelightning32 commented 3 years ago

I'm getting this too:

Version: v1.15.4-rc.1 (Unstable)8/9/2021 8:26:14 PM: Critical error occurred
System.InvalidOperationException: Failed to compare two elements in the array. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at VSHUD.FloatyWaypointManagement+<>c.<GetWaypointsHash>b__10_0 (VSHUD.HudElementWaypoint a, VSHUD.HudElementWaypoint b) [0x00000] in <99b0b0368c3941cba4494e7112ae715a>:0 
  at System.Collections.Generic.ArraySortHelper`1[T].SwapIfGreater (T[] keys, System.Comparison`1[T] comparer, System.Int32 a, System.Int32 b) [0x00007] in <d57a575dd6be4193a54eb87783bbd39c>:0 
  at System.Collections.Generic.ArraySortHelper`1[T].PickPivotAndPartition (T[] keys, System.Int32 lo, System.Int32 hi, System.Comparison`1[T] comparer) [0x00008] in <d57a575dd6be4193a54eb87783bbd39c>:0 
  at System.Collections.Generic.ArraySortHelper`1[T].IntroSort (T[] keys, System.Int32 lo, System.Int32 hi, System.Int32 depthLimit, System.Comparison`1[T] comparer) [0x00078] in <d57a575dd6be4193a54eb87783bbd39c>:0 
  at System.Collections.Generic.ArraySortHelper`1[T].IntrospectiveSort (T[] keys, System.Int32 left, System.Int32 length, System.Comparison`1[T] comparer) [0x00016] in <d57a575dd6be4193a54eb87783bbd39c>:0 
  at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) [0x00000] in <d57a575dd6be4193a54eb87783bbd39c>:0 
   --- End of inner exception stack trace ---
  at System.Collections.Generic.ArraySortHelper`1[T].Sort (T[] keys, System.Int32 index, System.Int32 length, System.Comparison`1[T] comparer) [0x00029] in <d57a575dd6be4193a54eb87783bbd39c>:0 
  at System.Array.Sort[T] (T[] array, System.Comparison`1[T] comparison) [0x00022] in <d57a575dd6be4193a54eb87783bbd39c>:0 
  at VSHUD.FloatyWaypointManagement.GetWaypointsHash () [0x0004c] in <99b0b0368c3941cba4494e7112ae715a>:0 
  at VSHUD.TriggerRepopulation.Postfix (Vintagestory.GameContent.WaypointMapLayer __instance, System.Byte[] data) [0x00000] in <99b0b0368c3941cba4494e7112ae715a>:0 
  at (wrapper dynamic-method) Vintagestory.GameContent.WaypointMapLayer.Vintagestory.GameContent.WaypointMapLayer.OnDataFromServer_Patch1(Vintagestory.GameContent.WaypointMapLayer,byte[])
  at Vintagestory.GameContent.WorldMapManager.OnMapLayerDataReceivedClient (Vintagestory.GameContent.MapLayerUpdate msg) [0x00043] in <9201392333504a979284b9484e29d79d>:0 
  at Vintagestory.Client.NoObf.NetworkChannel+<>c__DisplayClass12_0`1[T].<SetMessageHandler>b__0 (_cfcQ2hGSBPzKeaipQG9bYRToOSX p) [0x0002f] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at Vintagestory.Client.NoObf.NetworkChannel.OnPacket (_cfcQ2hGSBPzKeaipQG9bYRToOSX p) [0x00022] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at Vintagestory.Client.NoObf.NetworkAPI.HandleCustomPacket (_xvsTyOnSv7SiiZtyBXXalZ8Ymin packet) [0x00031] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at Vintagestory.Client.NoObf.ProcessPacketTask.ProcessPacket (_xvsTyOnSv7SiiZtyBXXalZ8Ymin packet) [0x00016] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at Vintagestory.Client.NoObf.ProcessPacketTask.Run () [0x00000] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks (System.Single deltaTime) [0x000c2] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at Vintagestory.Client.NoObf.ClientMain.MainGameLoop (System.Single deltaTime) [0x0004e] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at _iTgescuUf0kXKNXu6dfxHeIMvfG._a7jaYnEQ6vTTh1meiPfEAUCGJVlA (System.Single ) [0x0004d] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at _igaury40RDGQNtdY51dKy1LFQaG._PsCGkT7lMIncUD4FDdqauQ3AaTl (System.Single ) [0x00079] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at _igaury40RDGQNtdY51dKy1LFQaG._1lUbSLybYeKj0UTZLOdfdtQwqRJ (System.Single ) [0x000cc] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame (System.Object sender, OpenTK.FrameEventArgs e) [0x00141] in <1a20f3d5820c4789b7f5f1b546395e14>:0 
  at (wrapper delegate-invoke) System.EventHandler`1[OpenTK.FrameEventArgs].invoke_void_object_TEventArgs(object,OpenTK.FrameEventArgs)
  at OpenTK.GameWindow.OnRenderFrame (OpenTK.FrameEventArgs e) [0x00000] in <90b019caed434e81aee7f93ee8c94ce2>:0 
  at OpenTK.GameWindow.OnRenderFrameInternal (OpenTK.FrameEventArgs e) [0x00010] in <90b019caed434e81aee7f93ee8c94ce2>:0 
  at OpenTK.GameWindow.RaiseRenderFrame (System.Double elapsed, System.Double& timestamp) [0x0000c] in <90b019caed434e81aee7f93ee8c94ce2>:0 
  at OpenTK.GameWindow.DispatchRenderFrame () [0x00038] in <90b019caed434e81aee7f93ee8c94ce2>:0 
  at OpenTK.GameWindow.Run (System.Double updates_per_second, System.Double frames_per_second) [0x00104] in <90b019caed434e81aee7f93ee8c94ce2>:0 
  at OpenTK.GameWindow.Run () [0x00000] in <90b019caed434e81aee7f93ee8c94ce2>:0 
  at _Yit8BJyfwe0pl1vnZXdnsUXBHeK._qejIe9laMG7hmFafani6nftUNCU (_OtB8vvTzxo67cRDgokUIe37bIfO , System.String[] ) [0x003e2] in <c0fdd27c8f8647efb1250328a4745d10>:0 
  at _Yit8BJyfwe0pl1vnZXdnsUXBHeK+_Iq2B4uH78rzfdIjBRfApeyfrojBb._7PfyNm9CPaMOc0usFYpQpMs2Xjf () [0x00000] in <c0fdd27c8f8647efb1250328a4745d10>:0 
  at _lO2cybHaCglaEphC0FED3uFtHRh._qejIe9laMG7hmFafani6nftUNCU (System.Threading.ThreadStart ) [0x00007] in <1a20f3d5820c4789b7f5f1b546395e14>:0