-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Layout cycle crash on Windows with Button with image inside FlexLayout #21970
Comments
I have the same exception using FlexLayout and it works just fine with 8.0.14 but has the Layout Cycle crash with 8.0.20 (.NET Maui SR4). This is a pretty severe bug. Will this be addressed quickly? Thanks, |
@schlaman Oh, that's interesting. The original bug pointed out that there were two manifestations of the problem. But it was closed permaturely since only one case (resizing) got fixed. |
Verified this issue with Visual Studio 17.10.0 Preview 4(8.0.20&8.0.14&8.0.10). Can repro on windows platform with sample project. |
Awesome that you have it repro'd! |
I also wrote a unit test to prevent regressions (currently with a Skip directive for Windows since it fails): |
Totally love the regression prevention!! I appreciate you being on this so quick. I'm about ready to release a major product I've worked on for the last year and really rely on .NET Maui being solid. I totally love what it has become :) |
Can you test with the latest nightly? |
I wonder if this is fixed by #21737 |
@PureWeen @mattleibow I can do better than that, the referenced device test (#21651) is still failing on main (Although it's currently manifesting as a hang, you can still see the layout cycle messages in the debug output) |
This was something I was going to post myself a few weeks ago but it appeared to go away / not be in the release builds. Now I am getting it consistently and in the release builds in 8.0.20 SR4 (I think I got it in previous versions too). I'm specifically getting the issue when the Buttons have a Here is a workaround I'm going with for the time being where I had some <FlexLayout>
<Button />
<ContentView WidthRequest="5" />
<Button />
<ContentView WidthRequest="5" />
<Button />
</FlexLayout> @jeremy-visionaid in your original sample, I can workaround the issue by removing |
@BurkusCat Looks like @Foda reworked the device test I wrote for it into #21733, so I'm hopeful this will all go away when it gets merged. But setting both MaximumWidthRequest and MaximumHeightRequest on the Buttons does prevent the layout cycle crash for me as a workaround. |
In MAUI 8.0.60 this appears to be fixed. I was able to remove the workaround and things look a lot nicer now 👍 Thank you |
Description
Reopen #21548
Steps to Reproduce
Reopen #21548
Link to public reproduction project repository
No response
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
No response
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: