[Unstable 1.4.3510] Exception when viewing information on extracted tree

Started by RemingtonRyder, October 07, 2022, 02:14:39 PM

Previous topic - Next topic

RemingtonRyder

Playing a typical Crashlanded scenario with no mods. I ordered my colonists to extract some trees rather than chopping them down. When I happened to try to view information on an extracted oak tree, an exception occurs and the information window that opens only says 'Basics' with no information listed.

The exception repeats a number of times until the log spam limiter shuts it down.

Here's the exception text!

Exception filling window for Verse.Dialog_InfoCard: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
  at System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) [0x00029] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at System.ThrowHelper.ThrowArgumentOutOfRangeException () [0x00000] in <eae584ce26bc40229c1b1aa476bfa589>:0
  at RimWorld.StatsReportUtility.DrawStatsWorker (UnityEngine.Rect rect, Verse.Thing optionalThing, RimWorld.Planet.WorldObject optionalWorldObject) [0x0044d] in <230cf681890549bdae139e3347fe5add>:0
  at RimWorld.StatsReportUtility.DrawStatsReport (UnityEngine.Rect rect, Verse.Thing thing) [0x00092] in <230cf681890549bdae139e3347fe5add>:0
  at Verse.Dialog_InfoCard.FillCard (UnityEngine.Rect cardRect) [0x00030] in <230cf681890549bdae139e3347fe5add>:0
  at Verse.Dialog_InfoCard.DoWindowContents (UnityEngine.Rect inRect) [0x00294] in <230cf681890549bdae139e3347fe5add>:0
  at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001d3] in <230cf681890549bdae139e3347fe5add>: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)

Mouse position stack is not empty. There were more calls to BeginScrollView than EndScrollView. Fixing.
UnityEngine.StackTraceUtility:ExtractStackTrace ()
Verse.Log:Error (string)
Verse.Widgets:EnsureMousePositionStackEmpty ()
Verse.Root:Update ()
Verse.Root_Play:Update ()


Also see player.log, attached.

Pheanox

Thanks for the bug report, i was able to reproduce this as well. I will make a bug report for the devs to review.