Jump to content

ArgumentOutOfRange Exception when clicking on "Unrefrigerated Food" tooltip


masterxc
  • Branch: Preview Branch Version: Windows Fixed

I clicked on the "Unrefrigerated food" tooltip and crashed with the following stacktrace. I'm running a couple really basic mods (10x speed, blueprints fixed, pliers fixed) and doesn't seem to be related.

ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index

System.ThrowHelper.ThrowArgumentOutOfRangeException (System.ExceptionArgument argument, System.ExceptionResource resource) (at <9577ac7a62ef43179789031239ba8798>:0)
System.ThrowHelper.ThrowArgumentOutOfRangeException () (at <9577ac7a62ef43179789031239ba8798>:0)
Tutorial.ZoomToNextUnrefrigeratedFood () (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/components/Tutorial.cs:694)
Tutorial.<OnSpawn>b__25_10 (System.Object d) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/components/Tutorial.cs:230)
NotificationScreen.OnClick (NotificationScreen+Entry entry) (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/ui/NotificationScreen.cs:519)
NotificationScreen+<>c__DisplayClass52_0.<AddNotification>b__0 () (at C:/jenkins_workspace/workspace/SimGame_Windows/game/Assets/scripts/ui/NotificationScreen.cs:313)
UnityEngine.Events.InvokableCall.Invoke () (at <8394ca5da704498eb22d4c15abb7a39b>:0)
UnityEngine.Events.UnityEvent.Invoke () (at <8394ca5da704498eb22d4c15abb7a39b>:0)
UnityEngine.UI.Button.Press () (at C:/Program Files/Unity/Hub/Editor/2019.4.14f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Button.cs:68)
UnityEngine.UI.Button.OnPointerClick (UnityEngine.EventSystems.PointerEventData eventData) (at C:/Program Files/Unity/Hub/Editor/2019.4.14f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/UI/Core/Button.cs:110)
UnityEngine.EventSystems.ExecuteEvents.Execute (UnityEngine.EventSystems.IPointerClickHandler handler, UnityEngine.EventSystems.BaseEventData eventData) (at C:/Program Files/Unity/Hub/Editor/2019.4.14f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/ExecuteEvents.cs:50)
UnityEngine.EventSystems.ExecuteEvents.Execute[T] (UnityEngine.GameObject target, UnityEngine.EventSystems.BaseEventData eventData, UnityEngine.EventSystems.ExecuteEvents+EventFunction`1[T1] functor) (at C:/Program Files/Unity/Hub/Editor/2019.4.14f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/ExecuteEvents.cs:261)
UnityEngine.EventSystems.EventSystem:Update() (at C:/Program Files/Unity/Hub/Editor/2019.4.14f1/Editor/Data/Resources/PackageManager/BuiltInPackages/com.unity.ugui/Runtime/EventSystem/EventSystem.cs:377)

Build: 465726-D


Steps to Reproduce

1) Have "Unrefrigerated Food" warning pop up and click it.
2) Observe the above crash.

This crash seems to happen if the condition of unrefrigerated food happens to go away (such as a ration box swapping between a CO2 environment and oxygen) when the alert is clicked on.




User Feedback


A developer has marked this issue as fixed. This means that the issue has been addressed in the current development build and will likely be in the next update.


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
  • Create New...