Dubwise56 / Dubs-Performance-Analyzer

Dubs Performance Analyzer
22 stars 3 forks source link

1.4 config generation error #15

Open frostyarchtide opened 2 months ago

frostyarchtide commented 2 months ago

In 1.4, the mod seems to give errors and not display the mod option screen if a mod config is not present. This issue does not occur if I roll back to 74c7446, and once I generate the mod config all is fine even on the latest commit.

The following errors are given: Exception filling window for RimWorld.Dialog_ModSettings: System.NullReferenceException: Object reference not set to an instance of an object at Analyzer.Performance.PerformancePatches.DrawCategory (Verse.Listing_Standard standard, Analyzer.Performance.PerformanceCategory category, System.String stringifiedCat) [0x0000f] in <3723b3808d2f483196a1c08a77a23119>:0 at Analyzer.Performance.PerformancePatches.Draw (Verse.Listing_Standard listing) [0x0000c] in <3723b3808d2f483196a1c08a77a23119>:0 at Analyzer.Panel_Settings.Draw (UnityEngine.Rect rect, System.Boolean settingsPage) [0x0023d] in <3723b3808d2f483196a1c08a77a23119>:0 at Analyzer.Settings.DoSettings (UnityEngine.Rect canvas) [0x0000e] in <3723b3808d2f483196a1c08a77a23119>:0 at Analyzer.Modbase.DoSettingsWindowContents (UnityEngine.Rect inRect) [0x00000] in <3723b3808d2f483196a1c08a77a23119>:0 at (wrapper dynamic-method) RimWorld.Dialog_ModSettings.RimWorld.Dialog_ModSettings.DoWindowContents_Patch1(RimWorld.Dialog_ModSettings,UnityEngine.Rect) at Verse.Window.InnerWindowOnGUI (System.Int32 x) [0x001d3] in <d006c28bc811417ea565feda544f6d2b>:0 UnityEngine.StackTraceUtility:ExtractStackTrace () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (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 () (wrapper dynamic-method) Verse.Log:Verse.Log.Error_Patch4 (string) Verse.Widgets:EnsureMousePositionStackEmpty () Verse.Root:Update () Verse.Root_Entry:Update ()