Skip to content

Continuous GC logs on TabbedPage in MAUI 10.0.30 #33731

Closed

Description

@kellymmcd

Description

After upgrading Microsoft.Maui.Controls from 10.0.10 to 10.0.30, a TabbedPage with two or more tabs on Android triggers continuous GC logs while idle, even when the tab content is static.

This behavior does not occur in 10.0.10 and appears to be a regression introduced in 10.0.30.

In our production app, after upgrading to .NET 10 with this Controls version, we also observe noticeable scroll lag in a complex CollectionView inside a TabbedPage (Release build). The increased and continuous GC activity may be contributing to this performance regression.

Steps to Reproduce

  1. Create a new MAUI app.
  2. Update MAUI controls if not already on 10.0.30
    <PackageReference Include="Microsoft.Maui.Controls" Version="10.0.30" />
  3. Replace MainPage.xaml with the following minimal XAML and set app to open on this page
<TabbedPage
    xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
    xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
    x:Class="MauiApp1.MainPage">

    <ContentPage Title="Tab 1">
        <Grid>
            <Label
                Text="Tab 1"
                HorizontalOptions="Center"
                VerticalOptions="Center"
                FontSize="24" />
        </Grid>
    </ContentPage>

    <ContentPage Title="Tab 2">
        <Grid>
            <Label
                Text="Tab 2"
                HorizontalOptions="Center"
                VerticalOptions="Center"
                FontSize="24" />
        </Grid>
    </ContentPage>

</TabbedPage>
  1. Deploy the app to an Android device or emulator.
  2. Observe the output logs — you will see repeated GC messages every second, such as:
Explicit concurrent mark compact GC freed 2172KB AllocSpace bytes, 0(0B) LOS objects, 49% free, 3820KB/7640KB, paused 551us,1.057ms total 9.091ms
Explicit concurrent mark compact GC freed 2176KB AllocSpace bytes, 0(0B) LOS objects, 49% free, 3820KB/7640KB, paused 608us,924us total 8.487ms
Explicit concurrent mark compact GC freed 2172KB AllocSpace bytes, 0(0B) LOS objects, 49% free, 3824KB/7648KB, paused 565us,1.257ms total 9.035ms
Explicit concurrent mark compact GC freed 2176KB AllocSpace bytes, 0(0B) LOS objects, 49% free, 3824KB/7648KB, paused 837us,944us total 9.009ms

Expected Behavior:

  • GC should only run when necessary.
  • A simple TabbedPage should not trigger continuous GC.

Actual Behavior:

  • Continuous GC logs appear.
  • Potentially contributes to UI lag, especially for CollectionView scrolling.
  • Only occurs after updating to MAUI 10.0.30; does not occur in 10.0.10.

Link to public reproduction project repository

No response

Version with bug

10.0.30

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

10.0.10

Affected platforms

Android

Affected platform versions

Android 16

Did you find any workaround?

Rolling back to 10.0.10 eliminates the issue.

Relevant log output

Activity

  1. added
    t/bug
    on Jan 28, 2026
  2. NafeelaNazhir commented on Jan 28, 2026

    @NafeelaNazhir
    Contributor

    This issue has been validated in Visual Studio 18.2.0 with MAUI versions 10.0.30, 10.0.20, 10.0.11, 10.0.0. It can be reproducible on the latest version 10.0.30 and was not reproducible on the below 10.0.30 versions on Android platform.

    GCIssue.zip

    • Issue reproduced on 10.0.30
    Screen.Recording.2026-01-28.112046.mp4
    • Issue not reproduced on 10.0.20
    Screen.Recording.2026-01-28.at.1.25.50.PM.mov
  3. added
    s/verified
    s/triaged
    on Jan 28, 2026
  4. added
    i/regression
    on Jan 28, 2026
  5. sheiksyedm commented on Jan 28, 2026

    @sheiksyedm
    Contributor

    Regression PR : #33285

  6. PureWeen commented on Jan 29, 2026

    @PureWeen
    Member

    We're releasing a 10.0.31 fix soon with this reverted

  7. added a commit that references this issue on Jan 29, 2026
  8. SailDev commented on Jan 29, 2026

    @SailDev

    Maybe this is also the reason, why page transitions on Android with 10.0.30 stutter like hell?

    Today, i spent a whole day, to complete a step, i postponed for a long time. Migrating my main MAUI dev environment from Net9 to Net10, including MacOS, Rider, Xcode 26.2, Net SDKs and workloads and more.

    The result was not as bad as expected, so many thanks to the MAUI team!!!

    My experience with Net9 and Android was always very good. Excellent performance, especially the page transitions, in my opinion, are even faster than on iOS.

    But with 10.0.30 you can watch page transitions like in extreme slow motion (release mode on a real device).
    Luckily, i read this issue and downgraded to 10.0.20.

    Now we are back to the previous Net9 performance state.

  9. added a commit that references this issue on Jan 29, 2026
  10. PureWeen commented on Jan 29, 2026

    @PureWeen
    Member

    We should hopefully have an SR3.1 release out tomorrow

    In the meantime if folks want to test it out the nugets are here
    https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/1271213/artifacts?artifactName=PackageArtifacts&api-version=7.1&%24format=zip

  11. PureWeen commented on Jan 29, 2026

    @PureWeen
    Member

    Maybe this is also the reason, why page transitions on Android with 10.0.30 stutter like hell?

    Today, i spent a whole day, to complete a step, i postponed for a long time. Migrating my main MAUI dev environment from Net9 to Net10, including MacOS, Rider, Xcode 26.2, Net SDKs and workloads and more.

    The result was not as bad as expected, so many thanks to the MAUI team!!!

    My experience with Net9 and Android was always very good. Excellent performance, especially the page transitions, in my opinion, are even faster than on iOS.

    But with 10.0.30 you can watch page transitions like in extreme slow motion (release mode on a real device). Luckily, i read this issue and downgraded to 10.0.20.

    Now we are back to the previous Net9 performance state.

    @SailDev Are you using Shell or Non-Shell? What types of pages are you transitioning between?
    It'd be nice to reproduce your issue so once we apply a real fix here, we can make sure your scenario works alright

  12. SailDev commented on Jan 30, 2026

    @SailDev

    Shell:

    • TabbBar
    • FlyoutBehavior=Disabled

    Navigate to:

    • await Shell.Current.GoToAsync(url, animate: true);

    Data loading:

    • View model: override async Task OnNavigatedTo(NavigatedToEventArgs args)

    Navigate back logic:

    // Android: withAnimation is true
    
    // ...
    if (NavigateBackUrl == "..")
    {
        if (IsModalPage)
        {
            await Shell.Current.Navigation.PopModalAsync(animated: withAnimation);
        }
        else
        {
            var targetUrl = string.IsNullOrEmpty(urlParams)
                ? ".."
                : $"..{urlParams}";
    
            await Shell.Current.GoToAsync(targetUrl, animate: withAnimation);
        }
    }
    else
    {
        await Shell.Current.GoToAsync(NavigateBackUrl, animate: withAnimation);
    }
    // ...
    
    

    Test device Samsung A55

    Demo below (10.0.20) - fine

    Screen_Recording_20260130_094643.mov

    Demo below (10.0.30) - stuttering

    Screen_Recording_20260130_101757.mov
  13. PureWeen commented on Jan 30, 2026

    @PureWeen
    Member

    @SailDev @kellymmcd if you have a chance can you test the nugets here
    https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_apis/build/builds/1271213/artifacts?artifactName=PackageArtifacts&api-version=7.1&%24format=zip

    And see if it reproduces for you?

    Internal testing indicated it still happens on a physical device, but I'm not able to reproduce on a physical device

  14. PureWeen commented on Feb 1, 2026

    @PureWeen
    Member
  15. kellymmcd commented on Feb 1, 2026

    @kellymmcd
    Author

    @PureWeen Thanks, using 10.0.31 has fixed the issue for me.

  16. SailDev commented on Feb 2, 2026

    @SailDev

    @PureWeen Many thanks, 10.0.31 removed navigation stuttering problem!

  17. added a commit that references this issue on Feb 2, 2026
    9c0887b
  18. locked and limited conversation to collaborators on Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-tabbedpagei/regressionplatform/androidregressed-in-10.0.30s/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions