Open czuck opened 2 weeks ago
Can repro this issue at iOS platform on the latest 17.10 Preview 5 (8.0.21&8.0.14).
Simpler reproduction
public class MenuPage : ContentPage
{
private int _counter;
public MenuPage()
{
Title = "Menu";
On<Microsoft.Maui.Controls.PlatformConfiguration.iOS>().SetUseSafeArea(true);
}
protected override void OnSizeAllocated(double width, double height)
{
Debug.WriteLine($"****** Width = {width} Height = {height} Counter = {++_counter} ***********");
Content = new Border { WidthRequest = 100, HeightRequest = 100 };
}
}
I think it happens like this
Description
App appears hung and is non responsive. Debug line added to OnSizeAllocated is written hundreds of time, width is always the same, height switches between 896 and 814, app eventually crashes.
Debug.WriteLine("****** Width = " + width + " Height = " + height + " Counter = " + ++counter + "***********");
[0:] ** Width = 331 Height = 814 Counter = 1187* [0:] ** Width = 331 Height = 896 Counter = 1188* [0:] ** Width = 331 Height = 814 Counter = 1189* [0:] ** Width = 331 Height = 896 Counter = 1190* [0:] ** Width = 331 Height = 814 Counter = 1191* [0:] ** Width = 331 Height = 896 Counter = 1192* [0:] ** Width = 331 Height = 814 Counter = 1193***
Steps to Reproduce
Create a File > new maui App. Create a MainFlyoutPage : Flyout page with the code:
Detail page can be anything. Create a MenuPage with the code:
Run the app and watch the output.
Link to public reproduction project repository
No response
Version with bug
8.0.21 SR4.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output
No response