Annosz / UIInfoSuite2

Ongoing maintenance for the original UI Info Suite mod for Stardew Valley.
1.33k stars 262 forks source link

[Bug]: SMAPI Error Repeating #573

Open littlerat07 opened 1 week ago

littlerat07 commented 1 week ago

Mod Version

v2.3.4

Multiplayer

Single Player

SMAPI Log

No response

Description

Issue

The same error won't stop repeating. It's gotten so long I can't upload my SMAPI log because it says it's too large. The message will repeat about once a second. The message that keeps repeating is as follows:

[22:23:53 ERROR UI Info Suite 2] This mod failed in the Display.RenderedHud event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at UIInfoSuite2.UIElements.ShowToolUpgradeStatus.OnRenderedHud(Object sender, RenderedHudEventArgs e) in C:\Users\Drew\RiderProjects\DH-UIInfoSuite2\UIInfoSuite2\UIElements\ShowToolUpgradeStatus.cs:line 131 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101 [22:23:53 ERROR UI Info Suite 2] This mod failed in the Display.RenderingHud event. Technical details: NullReferenceException: Object reference not set to an instance of an object. SMAPI

Steps to Reproduce

Not sure.

wulingxuan commented 1 week ago

like #560

faustooctavo commented 3 days ago

Mod Version: v2.3.4 Multiplayer: Single Player SMAPI Log: https://smapi.io/log/79ac1fd117b44a0da0e97071601fdc09 Description upon hovering over the icon indicated in the attached screenshot the menu screen closes out and the SMAPI Log begins to loop the previously mentioned error lines Issue

20:27:47 | ERROR | UI Info Suite 2 | This mod failed in the Display.RenderedHud event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at UIInfoSuite2.UIElements.ShowToolUpgradeStatus.OnRenderedHud(Object sender, RenderedHudEventArgs e) in C:\Users\Drew\RiderProjects\DH-UIInfoSuite2\UIInfoSuite2\UIElements\ShowToolUpgradeStatus.cs:line 131 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101

20:27:47 | ERROR | UI Info Suite 2 | This mod failed in the Display.RenderingHud event. Technical details: NullReferenceException: Object reference not set to an instance of an object. at UIInfoSuite2.UIElements.ShowToolUpgradeStatus.OnRenderingHud(Object sender, RenderingHudEventArgs e) in C:\Users\Drew\RiderProjects\DH-UIInfoSuite2\UIInfoSuite2\UIElements\ShowToolUpgradeStatus.cs:line 122 at StardewModdingAPI.Framework.Events.ManagedEvent`1.Raise(TEventArgs args) in SMAPI\Framework\Events\ManagedEvent.cs:line 101  --------------------------------------------------------------------------------------------------------------------------

Screenshot 2024-06-29 202814

My guess is the issue comes between an interaction of these mods: UI Info Suite 2 Button's Extra Books https://www.nexusmods.com/stardewvalley/mods/21526 More Books https://www.nexusmods.com/stardewvalley/mods/23891 Special Power Utilities https://www.nexusmods.com/stardewvalley/mods/22300

faustooctavo commented 2 days ago

found a new way to trigger this error, when you trigger the upgrade for the Pan, the "Show tool upgrade status" is activated the error starts looping, the issue seems to be related to UI attempting to render a HUD that doesn't exist, for the Pan, unchecking the "Show tool upgrade status" stops the error

X3n0n3x commented 1 hour ago

found a new way to trigger this error, when you trigger the upgrade for the Pan, the "Show tool upgrade status" is activated the error starts looping, the issue seems to be related to UI attempting to render a HUD that doesn't exist, for the Pan, unchecking the "Show tool upgrade status" stops the error

This seems to match my experience so far. I only noticed this issue for the first time just after I sent my Pan in for it's first upgrade, and upon retrieving the upgraded Pan from Clint the error spam in the SMAPI window stops. Getting it upgraded an additional level immediately begins the error spam again. Notably, during the time the Pan was being upgraded, there was no UI icon showing how long until it finishes, unlike all the other tools.

I am using a number of mods myself, but I do not use the ones mentioned earlier: Button's Extra Books More Books Special Power Utilities