Jump to content

VSHUD 2.0.10 (Formerly WaypointUtils)


Novocain

Recommended Posts

On 5/29/2021 at 1:06 PM, Kyle Stemen said:

I installed VSHUD version v2.0.51 (non-compat), and my client hangs when I try to connect to the RabbitTech server. The message on the screen says "Data received, launching client instance." If I edit the vshud.json file and set "FDShow" to false, then I can join the server without problems.

 

There are no problems in single player mode (with the same mods installed). I'm running Fedora Linux 33.

Yes, it seems to be a problem with the raycasting, I think putting a limit it could fix it.

Link to comment
Share on other sites

  • Novocain changed the title to [1.14.10] VSHUD 2.0.52 (Formerly WaypointUtils)
  • 3 weeks later...

Thanks for the great mod! Found you a new bug :D
Character reacts to keys G, WASD, Space when typing in chat.
First I thought it is vanilla's bug, but then it was discovered I somehow failed to disable mods before testing, even though put "No" to "Mods" section :(
This is definitely VSHUD 2.0.52 :(
https://github.com/anegostudios/VintageStory-Issues/issues/1032

Link to comment
Share on other sites

  • 2 weeks later...

hmm, crafted a raw bowstave from bamboo, placed it in a chest to dry and the client crashed...using VS1.15.0-pre11 and VSHUD 2.06-pre3

Version: v1.15.0-pre.11 (Unstable)7/1/2021 11:35:25 AM: Critical error occurred
System.NullReferenceException: Object reference not set to an instance of an object.
   at VSHUD.VSHUDTaskSystem.ProcessActions(ConcurrentQueue`1 actions)
   at VSHUD.VSHUDTaskSystem.<ProcessMainThreadActions>b__8_0()
   at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)

 

Link to comment
Share on other sites

  • Novocain changed the title to VSHUD 2.0.10 (Formerly WaypointUtils)

I'm trying to use VSHUD v2.0.12 with VS 1.15.1 to connect to the RabbitTech server (with all the other required RabbitTech mods). I'm running Fedora 34. I was able to login once, but then when I started holding something, VS crashed. Since then, every time I login, it crashes. If I remove VSHUD, I can login. I've tried disabling everything in vshud.json, but it didn't help.

The debug info printed to the console isn't very helpful. I included part of it below. The rest of it doesn't appear to be relevant.
 

=================================================================
    Native Crash Reporting
=================================================================
Got a UNKNOWN while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

...

Thread 1 (Thread 0x7f3d77355740 (LWP 622017) "mono"):
#0  0x00007f3d7708cb0f in __GI___wait4 (pid=pid@entry=622165, stat_loc=stat_loc@entry=0x7ffdf41e9ce4, options=options@entry=0, usage=usage@entry=0x0) at ../sysdeps/unix/sysv/linux/wait4.c:30
#1  0x00007f3d7708ca8b in __GI___waitpid (pid=pid@entry=622165, stat_loc=stat_loc@entry=0x7ffdf41e9ce4, options=options@entry=0) at waitpid.c:38
#2  0x000055792c20893b in dump_native_stacktrace (signal=0x55792c4eaeb6 "UNKNOWN", mctx=0x7ffdf41ea840) at /usr/src/debug/mono-6.12.0-4.fc34.x86_64/mono/mini/mini-posix.c:1112
#3  0x000055792c1d1bbe in mono_dump_native_crash_info (info=<optimized out>, mctx=0x7ffdf41ea840, signal=0x55792c4eaeb6 "UNKNOWN") at /usr/src/debug/mono-6.12.0-4.fc34.x86_64/mono/mini/mini-posix.c:1154
#4  mono_handle_native_crash (signal=0x55792c4eaeb6 "UNKNOWN", mctx=0x7ffdf41ea840, info=<optimized out>) at /usr/src/debug/mono-6.12.0-4.fc34.x86_64/mono/mini/mini-exceptions.c:3423
#5  0x000055792c18b4ea in mono_crashing_signal_handler (_dummy=4, _info=0x7ffdf41eab30, context=0x7ffdf41eaa00) at ../utils/mono-signal-handler.c:77
#6  <signal handler called> () at ../sysdeps/unix/sysv/linux/sigaction.c
#7  0x00000000420f0980 in  ()
#8  0x00007f3cbbe8ab78 in  ()
#9  0x00007f3c1a3ed580 in  ()
#10 0x00007f3c1f924660 in  ()
#11 0x0000000042376135 in  ()
#12 0x0000000000001010 in  ()
#13 0x000055792c49f588 in mono_threads_enter_gc_safe_region_unbalanced_internal (stackdata=0x7ffdf41eafc0) at ../utils/mono-threads-coop.c:290
#14 mono_threads_enter_gc_safe_region_unbalanced (stackpointer=<optimized out>) at ../utils/mono-threads-coop.c:298
#15 0x00007f3d6969b270 in  ()
#16 0x00007ffdf41eb1b0 in  ()
#17 0x00007f3d65b35a80 in  ()
#18 0x0000000100000000 in  ()
#19 0x0000000000000000 in  ()

AL lib: (EE) ALCplaybackAlsa_mixerProc: Wait timeout... buffer size too low?
[Inferior 1 (process 622017) detached]

=================================================================
    Basic Fault Address Reporting
=================================================================
Memory around native instruction pointer (0x420f0980):0x420f0970  ff 25 00 00 00 00 c0 a1 d5 65 3d 7f 00 00 08 58  .%.......e=....X
0x420f0980  27 8e 38 79 55 00 00 00 00 00 00 00 00 00 00 00  '.8yU...........
0x420f0990  ff 25 00 00 00 00 c0 a2 d5 65 3d 7f 00 00 89 54  .%.......e=....T
0x420f09a0  24 10 48 b8 88 15 62 2c 79 55 00 00 f7 00 01 00  $.H...b,yU......

=================================================================
    Managed Stacktrace:
=================================================================
=================================================================

 

If I use gdb to attach to the process before it crashes, I can get it to report that the crash occurs in Vintagestory.API.Common.CollectibleObject:Vintagestory.API.Common.CollectibleObject.OnHeldIdle_Patch1.

(gdb) bt
#0  0x0000000040ea8a78 in  ()
#1  0x00007fdc732be213 in  ()
#2  0x00007fdbcd6f3098 in  ()
#3  0x00007fdb23898360 in  ()
#4  0x00007fdb2a05fa40 in  ()
#5  0x0000000041124645 in  ()
#6  0x0000000000001010 in  ()
#7  0x0000557649ce2588 in mono_threads_enter_gc_safe_region_unbalanced_internal (stackdata=0x7ffd49534290)
    at ../utils/mono-threads-coop.c:290
#8  mono_threads_enter_gc_safe_region_unbalanced (stackpointer=<optimized out>)
    at ../utils/mono-threads-coop.c:298
#9  0x00007fdc7a81fa58 in  ()
#10 0x00007ffd49534480 in  ()
#11 0x00007fdc63bb9ad0 in  ()
#12 0x0000000100000000 in  ()
#13 0x0000000000000000 in  ()

(gdb) p mono_pmip (0x00007fdc732be213)
$7 = 0x5576510570d0 " (wrapper dynamic-method) Vintagestory.API.Common.CollectibleObject:Vintagestory.API.Common.CollectibleObject.OnHeldIdle_Patch1 (Vintagestory.API.Common.CollectibleObject,Vintagestory.API.Common.ItemS"...
(gdb) p mono_pmip (0x0000000040ea8a78)
$8 = 0x0

(gdb) up
#1  0x00007fdc732be213 in ?? ()
(gdb) call mono_debug_print_vars ($rip, 1)

Thread 1 "mono" received signal SIGSEGV, Segmentation fault.
mono_method_get_param_names (
    method="Vintagestory.API.Common.CollectibleObject:Vintagestory.API.Common.CollectibleObject.OnHeldIdle_Patch1 ()", names=0x0) at ../metadata/loader.c:1454
1454			names [i] = "";

 

Link to comment
Share on other sites

Here are two more ways to workaround the crash:

1.  Run mono with the `MONOMOD_DMD_TYPE=cecil`option.

2. Download the Harmony v2.1.1.0b prerelease, and copy the net45/0Harmony.dll out of it to replace the one in vintagestory/Lib.

 

I'm seeing a problem where the block preview is not updated when I select a torches or oil lamps; it keeps showing my previously selected block. This problem occurs with all the workarounds I've tried on Linux. Is that a problem on Windows too?

Link to comment
Share on other sites

  • 3 weeks later...

here's my crash log on latest version try to log into the world with vshud.dll (i did click to allow it) I've got over 1800 waypoints on the server, can it be linked?

Running on 64 bit Windows with 16 GB RAM
Version: v1.15.5 (Stable)2021-08-19 11:49:55: 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(HudElementWaypoint a, HudElementWaypoint b)
at System.Collections.Generic.ArraySortHelper`1.SwapIfGreater(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)
at System.Collections.Generic.ArraySortHelper`1.PickPivotAndPartition(T[] keys, Int32 lo, Int32 hi, IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntroSort(T[] keys, Int32 lo, Int32 hi, Int32 depthLimit, IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntrospectiveSort(T[] keys, Int32 left, Int32 length, IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
--- End of inner exception stack trace ---
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
at System.Array.Sort[T](T[] array, IComparer`1 comparer)
at VSHUD.FloatyWaypointManagement.GetWaypointsHash()
at VSHUD.TriggerRepopulation.Postfix(WaypointMapLayer __instance, Byte[] data)
at Vintagestory.GameContent.WorldMapManager.OnMapLayerDataReceivedClient(MapLayerUpdate msg)
at Vintagestory.Client.NoObf.NetworkChannel.<>c__DisplayClass12_0`1.<SetMessageHandler>b__0(_52t6agJnlbHQ1LXc6jY6GJzlkcZ p)
at Vintagestory.Client.NoObf.NetworkAPI.HandleCustomPacket(_K0gsRhlFmzAJ65AP27fyOAZKCbA packet)
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
at _EMxDKvc7iN7J6hlNFQiKeoxg0Mm._CEmopzLEk14BSqH9plcDEDfmuwE(Single )
at _Wwq7msw90Af4XU7mxkxAUKyrS5B._iIGaTXNE8VYTpgEu9zjpAQyJSxd(Single )
at _Wwq7msw90Af4XU7mxkxAUKyrS5B._vCB99EztL7cSfmplK8tyTwrQQxC(Single )
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
at OpenTK.GameWindow.DispatchRenderFrame()
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
at _q065sSmA3CNgGuKTGnlAjR4ljPw._WkSl7yfiyr5DwPiSMvTudNAhp6(_t3ILnyYBq5OoYhhBY3JeTWgFmJDA , String[] )
at _DBu5wiQWRAHGS5G2jiCKymvQ9yE._WkSl7yfiyr5DwPiSMvTudNAhp6(ThreadStart )
-------------------------------
System.NullReferenceException: Object reference not set to an instance of an object.
at VSHUD.FloatyWaypointManagement.<>c.<GetWaypointsHash>b__10_0(HudElementWaypoint a, HudElementWaypoint b)
at System.Collections.Generic.ArraySortHelper`1.SwapIfGreater(T[] keys, IComparer`1 comparer, Int32 a, Int32 b)
at System.Collections.Generic.ArraySortHelper`1.PickPivotAndPartition(T[] keys, Int32 lo, Int32 hi, IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntroSort(T[] keys, Int32 lo, Int32 hi, Int32 depthLimit, IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.IntrospectiveSort(T[] keys, Int32 left, Int32 length, IComparer`1 comparer)
at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)

Link to comment
Share on other sites

  • 3 weeks later...

I get an error similar to the above one when trying to load my save.  I have probably < 10 waypoints.

 

Running on 64 bit Windows with 64 GB RAM
Version: v1.15.5 (Stable)9/3/2021 6:02:59 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(HudElementWaypoint a, HudElementWaypoint b)
   at System.Collections.Generic.ArraySortHelper`1.InsertionSort(T[] keys, Int32 lo, Int32 hi, IComparer`1 comparer)
   at System.Collections.Generic.ArraySortHelper`1.IntrospectiveSort(T[] keys, Int32 left, Int32 length, IComparer`1 comparer)
   at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
   --- End of inner exception stack trace ---
   at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Array.Sort[T](T[] array, Int32 index, Int32 length, IComparer`1 comparer)
   at System.Array.Sort[T](T[] array, IComparer`1 comparer)
   at VSHUD.FloatyWaypointManagement.GetWaypointsHash()
   at VSHUD.TriggerRepopulation.Postfix(WaypointMapLayer __instance, Byte[] data)
   at Vintagestory.GameContent.WorldMapManager.OnMapLayerDataReceivedClient(MapLayerUpdate msg)
   at Vintagestory.Client.NoObf.NetworkChannel.<>c__DisplayClass12_0`1.<SetMessageHandler>b__0(_52t6agJnlbHQ1LXc6jY6GJzlkcZ p)
   at Vintagestory.Client.NoObf.NetworkAPI.HandleCustomPacket(_K0gsRhlFmzAJ65AP27fyOAZKCbA packet)
   at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime)
   at _EMxDKvc7iN7J6hlNFQiKeoxg0Mm._CEmopzLEk14BSqH9plcDEDfmuwE(Single )
   at _Wwq7msw90Af4XU7mxkxAUKyrS5B._iIGaTXNE8VYTpgEu9zjpAQyJSxd(Single )
   at _Wwq7msw90Af4XU7mxkxAUKyrS5B._vCB99EztL7cSfmplK8tyTwrQQxC(Single )
   at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp)
   at OpenTK.GameWindow.DispatchRenderFrame()
   at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second)
   at _q065sSmA3CNgGuKTGnlAjR4ljPw._WkSl7yfiyr5DwPiSMvTudNAhp6(_t3ILnyYBq5OoYhhBY3JeTWgFmJDA , String[] )
   at _DBu5wiQWRAHGS5G2jiCKymvQ9yE._WkSl7yfiyr5DwPiSMvTudNAhp6(ThreadStart )
-------------------------------
System.NullReferenceException: Object reference not set to an instance of an object.
   at VSHUD.FloatyWaypointManagement.<>c.<GetWaypointsHash>b__10_0(HudElementWaypoint a, HudElementWaypoint b)
   at System.Collections.Generic.ArraySortHelper`1.InsertionSort(T[] keys, Int32 lo, Int32 hi, IComparer`1 comparer)
   at System.Collections.Generic.ArraySortHelper`1.IntrospectiveSort(T[] keys, Int32 left, Int32 length, IComparer`1 comparer)
   at System.Collections.Generic.ArraySortHelper`1.Sort(T[] keys, Int32 index, Int32 length, IComparer`1 comparer)

 

Link to comment
Share on other sites

  • 1 month later...

Going around with a piece of linen on the active hand causes the linen to decorate all the surfaces I look at. It's not a preview because if I try to put some decorations on that wall it says that it's already decorated. It stays like that until I relog or (I'm not sure about this one) the chunk is reloaded.

Only solution I found is to deactivate VsHud but I like this mod too much :)

  • Sad 1
Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...
  • 7 months later...

After the 1.17.0 patch, I am now getting the following error while loading the game with VSHUD enabled:

 

Running on 64 bit Windows with 16 GB RAM
Game Version: v1.17.1 (Stable)
9/1/2022 12:58:06 PM: Critical error occurred in the following mod: vshud@2.0.31
Loaded Mods: bettercrates@1.4.2, extrachests@1.5.2, moreminerals@1.0.3, game@1.17.1, vshud@2.0.31, zoombuttonreborn@1.3.0, carrycapacity@0.6.5, farmlanddropssoil@1.4.0, fromgoldencombs@1.3.14-pre.1, medievalexpansion@3.7.1, prospectorinfo@3.1.2, creative@1.17.1, survival@1.17.1, accessibilitytweaks@3.0.0, campaigncartographer@2.2.2
System.MissingMethodException: Method not found: 'Vintagestory.API.Client.GuiComposer Vintagestory.API.Client.GuiComposerHelpers.AddDialogBG(Vintagestory.API.Client.GuiComposer, Vintagestory.API.Client.ElementBounds, Boolean)'.
at VSHUD.GuiDialogWaypointFrontEnd.OnOwnPlayerDataReceived()
at VSHUD.WaypointUtils.<>c__DisplayClass16_0.<StartClientSide>b__1()
at System.Action.Invoke()
at Vintagestory.Client.NoObf.ClientMain.OnLevelFinalize() in VintagestoryLib\Client\ClientMain.cs:line 1044
at Vintagestory.Client.NoObf.GeneralPacketHandler.HandleLevelFinalize(Packet_Server packet) in VintagestoryLib\Client\Systems\GeneralPacketHandler.cs:line 219
at Vintagestory.Client.NoObf.ClientMain.ExecuteMainThreadTasks(Single deltaTime) in VintagestoryLib\Client\ClientMain.cs:line 1139
at Vintagestory.Client.GuiScreenConnectingToServer.RenderToDefaultFramebuffer(Single dt) in VintagestoryLib\Client\MainMenu\Screens\GuiScreenConnectingToServer.cs:line 383
at Vintagestory.Client.ScreenManager.Render(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 711
at Vintagestory.Client.ScreenManager.OnNewFrame(Single dt) in VintagestoryLib\Client\ScreenManager.cs:line 615
at Vintagestory.Client.NoObf.ClientPlatformWindows.window_RenderFrame(Object sender, FrameEventArgs e) in VintagestoryLib\Client\ClientPlatform\GameWindow.cs:line 132
at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
at OpenTK.GameWindow.RaiseRenderFrame(Double elapsed, Double& timestamp) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 479
at OpenTK.GameWindow.DispatchRenderFrame() in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 454
at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\transfer\opentk\src\OpenTK\GameWindow.cs:line 375
at Vintagestory.Client.ClientProgram.Start(ClientProgramArgs args, String[] rawArgs)
at Vintagestory.ClientNative.CrashReporter.Start(ThreadStart start) in VintagestoryLib\Client\ClientPlatform\ClientNative\CrashReporter.cs:line 93

Link to comment
Share on other sites

  • 8 months later...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.