You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The UI Page will crash within Stride Game Studio if the Page contains a Canvas panel with a Slider child.
To Reproduce
Steps to reproduce the behavior:
Start Stride 4.2.0.2122 and create a New Game project
Create a UI page in the Asset view
Open the above UI page and add a Canvas panel to the Grid
Add a Slider to the Canvas, the Slider should be a child of the Canvas element in the Visual Tree
The Page will crash with the below error
Log and callstacks System.ArithmeticException: Function does not accept floating point Not-a-Number values. at System.Math.Sign(Single value) at Stride.Core.Mathematics.CollisionHelper.RayIntersectsRectangle(Ray& ray, Matrix& rectangleWorldMatrix, Vector3& rectangleSize, Int32 normalAxis, Vector3& intersectionPoint) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core.Mathematics\CollisionHelper.cs:line 753
Additional context
A work around is to first add the Slider to a Grid panel, resize the Slider, and then attach it to the Canvas. Once the Slider is added to the Canvas its prior dimensions can be restored without issue.
The text was updated successfully, but these errors were encountered:
Release Type: Official Release
Version: 4.2.0.2122
Platform(s): Windows
Describe the bug
The UI Page will crash within Stride Game Studio if the Page contains a Canvas panel with a Slider child.
To Reproduce
Steps to reproduce the behavior:
Log and callstacks
System.ArithmeticException: Function does not accept floating point Not-a-Number values. at System.Math.Sign(Single value) at Stride.Core.Mathematics.CollisionHelper.RayIntersectsRectangle(Ray& ray, Matrix& rectangleWorldMatrix, Vector3& rectangleSize, Int32 normalAxis, Vector3& intersectionPoint) in C:\BuildAgent\work\b5f46e3c4829a09e\sources\core\Stride.Core.Mathematics\CollisionHelper.cs:line 753
Full log:
stride_uipage_crash.txt
Additional context
A work around is to first add the Slider to a Grid panel, resize the Slider, and then attach it to the Canvas. Once the Slider is added to the Canvas its prior dimensions can be restored without issue.
The text was updated successfully, but these errors were encountered: