anegostudios / VintageStory-Issues

Vintage Story's public issue tracker for reporting bugs, crashes and the like
46 stars 16 forks source link

Crash on trying to open handbook page for some items #1430

Closed Craluminum2413 closed 2 years ago

Craluminum2413 commented 2 years ago

Game Version: 1.16.0-pre.1
Platform: Windows Modded: No SP/MP: Singleplayer

Description

It is crashing for:

How to reproduce

  1. Get beeswax
  2. Press H to open its handbook page
  3. It crashes

Logs

Version: v1.16.0-pre.1 (Unstable)12/01/2021 14:42:35: Critical error occurred
System.IndexOutOfRangeException: Index was outside the bounds of the array.
   at Vintagestory.API.Common.CollectibleObject.UpdateAndGetTransitionStatesNative(IWorldAccessor world, ItemSlot inslot)
   at Vintagestory.API.Common.CollectibleObject.UpdateAndGetTransitionState(IWorldAccessor world, ItemSlot inslot, EnumTransitionType type)
   at Vintagestory.Client.NoObf.InventoryItemRenderer.GetItemStackRenderInfo(ClientMain game, ItemSlot inSlot, EnumItemRenderTarget target)
   at Vintagestory.Client.NoObf.InventoryItemRenderer.RenderItemstackToGui(ItemSlot inSlot, Double posX, Double posY, Double posZ, Single size, Int32 color, Boolean shading, Boolean origRotate, Boolean showStackSize)
   at Vintagestory.API.Client.SlideshowItemstackTextComponent.RenderInteractiveElements(Single deltaTime, Double renderX, Double renderY)
   at Vintagestory.API.Client.GuiElementRichtext.RenderInteractiveElements(Single deltaTime)
   at Vintagestory.API.Client.GuiComposer.Render(Single deltaTime)
   at Vintagestory.API.Client.GuiDialog.OnRenderGUI(Single deltaTime)
   at Vintagestory.Client.NoObf.GuiManager.OnRenderFrameGUI(Single deltaTime)
   at Vintagestory.Client.NoObf.ClientEventManager.TriggerRenderStage(EnumRenderStage stage, Single dt)
   at Vintagestory.Client.NoObf.ClientMain.TriggerRenderStage(EnumRenderStage stage, Single dt)
   at Vintagestory.Client.NoObf.ClientMain.RenderToDefaultFramebuffer(Single dt)
   at _BUMabDMvB5g1D4cwmJFdUV7RB7B._nA3yaaylsiYnA09wfmcvIIKlcbN(Single )
   at _SGHyUxV5Rv3GnxQS6X37QfGaYYI._wtaWT1dJOq4AyHDjHsCHfaFTnkQ(Single )
   at _SGHyUxV5Rv3GnxQS6X37QfGaYYI._t0woIE9wg5YcVEaBBPQohFJK0os(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) in C:\Users\Nexrem\Desktop\VintageStory\opentk\src\OpenTK\GameWindow.cs:line 479
   at OpenTK.GameWindow.DispatchRenderFrame() in C:\Users\Nexrem\Desktop\VintageStory\opentk\src\OpenTK\GameWindow.cs:line 454
   at OpenTK.GameWindow.Run(Double updates_per_second, Double frames_per_second) in C:\Users\Nexrem\Desktop\VintageStory\opentk\src\OpenTK\GameWindow.cs:line 375
   at _qGIeLvQF356cX6MlSgQecVUPPnB._1UOaKCATq4VGq5WIs6BsnCl9AiN(_hepllT23IKsNQYqswdyIdzYZoCd , String[] )
   at _Va34feq3eOguuxZWZKrRDDWG2xq._1UOaKCATq4VGq5WIs6BsnCl9AiN(ThreadStart )
hlangeveld commented 2 years ago

Reproduces in -rc2

hlangeveld commented 2 years ago

And confirmed in -rc3

Craluminum2413 commented 2 years ago

Fixed in 1.16.0-rc.4