Skip to content

Infinite Measure Looping on iOS #34042

@JohnTraDolta

Description

@JohnTraDolta

Description

I was upgrading our app to dotnet 10 and after testing on iOS, the app froze a lot of places, with no errors reported or anything.

After some digging i found that with some "magic" configuration (eg. label with font size 18) the app got stuck in some infinite measure loop.

I have tested with 10.0.0, 10.0.10, 10.0.11, 10.0.20, 10.0.30, 10.0.31 and 10.0.40

We have decided to pause our .net 10 upgrade until this is fixed

Steps to Reproduce

  1. pull the code from the repo, run the code on iOS
  2. press one of the 3 examples and wait for the quick and dirty loop detector to stop the loop (stopping after 500 size changed)
  3. The app is unresponsive while the loop is running.

Link to public reproduction project repository

https://github.com/JohnTraDolta/MauiInfiniteMeasureLoopingBug

Version with bug

10.0.40

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

9.0.100 SR10

Affected platforms

iOS

Affected platform versions

iOS 26.1

Did you find any workaround?

Nothing i recommend, but changing Label font size, setting fixed height on labels. Not using GridLength.Auto.

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-layoutStackLayout, GridLayout, ContentView, AbsoluteLayout, FlexLayout, ContentPresenteri/regressionThis issue described a confirmed regression on a currently supported versionlayout-gridplatform/iosregressed-in-10-preview1s/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions