Ludeon Forums

RimWorld => Bugs => Topic started by: XeoNovaDan on May 18, 2017, 03:43:06 AM

Title: [0.17.1541] Error When Trying To View Certain Debug Tables
Post by: XeoNovaDan on May 18, 2017, 03:43:06 AM
When attempting to view certain debug tables, an error will be thrown - and they appear to be largely of the same type, except for Apparel Spawn Stats which shows a slightly different error.

These are the following tables affected by this error:
Population Intent
Apparel Spawn Stats
Shooting Accuracy
Misc Incident Chances
Medical Potency Per Medicine

Expected Outcome (for each)
Tables to successfully show without issue

Actual Outcome (for each)
(https://i.gyazo.com/825013f1961eb8523ec16e879ecc4bc1.png)

Exception filling window for Verse.EditWindow_DebugInspector: System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.Find.get_VisibleMap () [0x00000] in C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Find.cs:79
  at Verse.EditWindow_DebugInspector.CurrentDebugString () [0x00006] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DebugWindows\EditWindow_DebugInspector.cs:110
  at Verse.EditWindow_DebugInspector.DoWindowContents (Rect inRect) [0x001cd] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DebugWindows\EditWindow_DebugInspector.cs:95
  at Verse.Window+<WindowOnGUI>c__AnonStorey2C5.<>m__1B2 (Int32 x) [0x001ff] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Window.cs:192
Verse.Log:Error(String) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:48)
Verse.<WindowOnGUI>c__AnonStorey2C5:<>m__1B2(Int32) (at C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Window.cs:196)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle) (at C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUI.cs:1896)

Exception filling window for Verse.Dialog_DebugLogMenu: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
  at Verse.DataAnalysisTableMaker+<DoTable_ShootingAccuracy>c__AnonStorey578.<>m__A17 (Int32 level, Single dist, Int32 traitDegree) [0x00062] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DevTools\Dialogs\DataAnalysisTableMaker.cs:824
  at Verse.DataAnalysisTableMaker+<DoTable_ShootingAccuracy>c__AnonStorey578.<>m__A19 (Int32 lev) [0x00000] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DevTools\Dialogs\DataAnalysisTableMaker.cs:836
  at Verse.DebugTables.MakeTablesDialog[Int32] (IEnumerable`1 dataSources, Verse.TableDataGetter`1[] getters) [0x0007c] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DevTools\DebugTables.cs:112
  at Verse.DataAnalysisTableMaker.DoTable_ShootingAccuracy () [0x00043] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DevTools\Dialogs\DataAnalysisTableMaker.cs:834
  at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000d0] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222
  --- End of inner exception stack trace ---
  at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x000eb] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232
  at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115
  at Verse.Dialog_DebugLogMenu+<DoListingItems>c__AnonStorey5D1.<>m__B8B () [0x00000] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DevTools\Dialogs\Dialog_DebugLogMenu.cs:70
  at Verse.Dialog_DebugOptionLister.DebugAction (System.String label, System.Action action) [0x00042] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DevTools\Dialogs\Dialog_DebugOptionListLister.cs:20
  at Verse.Dialog_DebugLogMenu.DoListingItems () [0x003b1] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\DevTools\Dialogs\Dialog_DebugLogMenu.cs:70
  at Verse.Dialog_OptionLister.DoWindowContents (Rect inRect) [0x000ec] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Dialog\DialogsVarious\Dialog_OptionLister.cs:60
  at Verse.Window+<WindowOnGUI>c__AnonStorey2C5.<>m__1B2 (Int32 x) [0x001ff] in C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Window.cs:192
Verse.Log:Error(String) (at C:\Dev\RimWorld\Assets\Scripts\Verse\Utility\Debug\Log\Log.cs:48)
Verse.<WindowOnGUI>c__AnonStorey2C5:<>m__1B2(Int32) (at C:\Dev\RimWorld\Assets\Scripts\Verse\UI\Windows\Window.cs:196)
UnityEngine.GUI:CallWindowDelegate(WindowFunction, Int32, GUISkin, Int32, Single, Single, GUIStyle) (at C:\buildslave\unity\build\Runtime\IMGUI\Managed\GUI.cs:1896)


Output log is attached in a Zip file.

[attachment deleted by admin due to age]
Title: Re: [0.17.1541] Error When Trying To View Certain Debug Tables
Post by: ison on May 18, 2017, 04:13:47 AM
They seem to work fine. Are you trying to use them in the main menu? I think that some of them need a visible map to work.
Title: Re: [0.17.1541] Error When Trying To View Certain Debug Tables
Post by: XeoNovaDan on May 18, 2017, 10:59:24 AM
Just loaded them up in-game, and most of them will work by then. However, errors are still thrown for Shooting Accuracy and Medical Potency Per Medicine.
Title: Re: [0.17.1541] Error When Trying To View Certain Debug Tables
Post by: Tynan on May 18, 2017, 05:10:57 PM
These are dev tools, so we let them fall out of line with the code if they're unused. We don't guarantee they'll work.