-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] FlexLayout crashes when using a custom display scale factor value (regression) #22209
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
I think there are a lot of related FlexLayout issues (I've experienced #21970). This seems like a unique issue that on FlexLayouts that would otherwise work, custom display scaling causes a crash with even a simple layout. |
The error can be reproduced on the 8.0.20, 8.0.21 and 8.0.40-nightly.10602 versions, but verified on 8.0.14 that it works fine. |
Oh yup, I just hit this one too, and sadly setting the maximum width/height (like for #21970) is ineffective as a workaround. |
Eek, it's not just custom display factors. It seems to be machine specific, but it can also happen on the device's default/recommended scale factor (e.g. 200% on a 2560x1600 laptop). It also occurs at 175% on Surface Pro 7. So it turns out this is quite common in the field - more than 50% of devices are affected on my app's canary release channel. |
That's quite interesting! 😯 I tested several standard scale factors and it worked fine for me. I just assumed it was only custom! I only tested on one monitor. |
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: