ProdigiousMike Posted April 13 Share Posted April 13 I am using multiple Pegasus Managers to create a scene. While the scene often runs without issue, I frequently and randomly get an Index Out Of Bounds Error. Here is the full traceback: ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index System.Collections.Generic.List`1[T].get_Item (System.Int32 index) (at <XXXXXXXXX>:0) Pegasus.PegasusPoi.CalculatePositionLinear (System.Single percent) (at Assets/Pegasus/Scripts/PegasusPoi.cs:752) Pegasus.PegasusPoi.CalculateProgress (System.Single percent, System.Single& velocity, UnityEngine.Vector3& position, UnityEngine.Quaternion& rotation) (at Assets/Pegasus/Scripts/PegasusPoi.cs:707) Pegasus.PegasusManager.CalculateFlythroughUpdates () (at Assets/Pegasus/Scripts/PegasusManager.cs:1235) Pegasus.PegasusManager.LateUpdate () (at Assets/Pegasus/Scripts/PegasusManager.cs:1196) Looking into this, the error occurs during the Lerp's between one point and another. I say this occurs randomly because I can run the program without issue and then run it again without making any changes and the error occurs. It can also happen to multiple Pegasus managers (the number of Pegasus Managers this affects is also seemingly random), and when it happens to at least one the whole application freezes. The error usually occurs right after the first frame, so I see a bit of movement and then the application fails with the above error. System information: Unity Version 2021.3.13f1 Pegasus Version 2.5.3 Operating System Mac OS Monterey Link to comment Share on other sites More sharing options...
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
Already have an account? Sign in here.Sign In Now