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
Release Type: Official Release/GitHub (please choose appropriate option)
Official Release
Version: Version number and/or git branch
4.2.0.2293
Platform(s): Does the problem occur on Windows, Android...?
Windows
Describe the bug
When UI is added in the Update loop to a existing Panel, through .Children.Add. It takes 2 update frames before position values are set.
To Reproduce
Steps to reproduce the behavior:
New project
Setup UIComponent with a empty Page
Use the code in the image below
Run project and stop project, then review immediate window.
Expected behavior
The first update frame has the margin updated added to the WorldMatrix.
Additional context
The SharpDX exception may or may not be related.
It will take three frames to setup positioning, even if the UIElement was added in later update frames.
Its also sometimes possible that this position update delay can cause a crash. When a Matrix with the following values on the second frame happens, but I don't know the steps to reproduce. [M11:1 M12:0 M13:0 M14:0] [M21:0 M22:1 M23:0 M24:0] [M31:0 M32:0 M33:1 M34:0] [M41:NaN M42:NaN M43:NaN M44:NaN]
Moving the mouse while the WorldMatrix is in the above state become a problem since it can trigger an ArithmeticException on the Sign function trying to process a NaN value. This exception happens within the MouseOverChangedState functionality of the Stride UI.
The text was updated successfully, but these errors were encountered:
Release Type: Official Release/GitHub (please choose appropriate option)
Official Release
Version: Version number and/or git branch
4.2.0.2293
Platform(s): Does the problem occur on Windows, Android...?
Windows
Describe the bug
When UI is added in the Update loop to a existing Panel, through
.Children.Add
. It takes 2 update frames before position values are set.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The first update frame has the margin updated added to the WorldMatrix.
Additional context
[M11:1 M12:0 M13:0 M14:0] [M21:0 M22:1 M23:0 M24:0] [M31:0 M32:0 M33:1 M34:0] [M41:NaN M42:NaN M43:NaN M44:NaN]
Moving the mouse while the
WorldMatrix
is in the above state become a problem since it can trigger anArithmeticException
on theSign
function trying to process a NaN value. This exception happens within the MouseOverChangedState functionality of the Stride UI.The text was updated successfully, but these errors were encountered: