[Windows] FlexLayout crashes when using a custom display scale factor value (regression) #22209
Labels
area-layout
StackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenter
i/regression
This issue described a confirmed regression on a currently supported version
layout-flex
FlexLayout issues
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
When using a custom display scale factor in Windows, FlexLayout appears to throw an exception.
The exception is:
{Microsoft.UI.Xaml.UnhandledExceptionEventArgs} Layout cycle detected. Layout could not complete.
This a regression I think. 8.0.7 didn't appear to have the crash. The latest nightly (8.0.40-nightly.10602) does not resolve the issue.
Steps to Reproduce
ScrollView
on the page with aVerticalStackLayout
insideFlexLayout
inside thatExpected
App starts
Actual
App crashes on startup
Link to public reproduction project repository
https://github.com/BurkusCat/FlexLayoutDisplayScaleCrash
Version with bug
8.0.20 SR4
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.7 SR2
Affected platforms
Windows
Affected platform versions
Windows 23H2 22631.3527
Did you find any workaround?
No
Relevant log output
No response
The text was updated successfully, but these errors were encountered: