Skip to content

[regression/10.0.90] Shell: DI-Singleton page pushed via a registered route renders blank when re-pushed after an absolute-route stack reset #36853

Closed

Description

@danlfarnell

Description

On .NET MAUI 10.0.90 (Android), a page that is

  1. registered in DI as a Singleton, and
  2. navigated to as a registered route (Routing.RegisterRoute) pushed with GoToAsync("Route")

renders completely blank — no content at all, only the Android action_bar_root — when it is pushed a second time, if in between the Shell navigation stack was reset with an absolute route (GoToAsync("///Root")) while another pushed page was on top of it.

Works correctly on 10.0.80. Same app, same device, same steps.

The failure is a silent navigation no-op, not a rendering failure: GoToAsync completes without throwing, but the destination page is never attached.

Steps to Reproduce

Bare dotnet new maui, net10.0-android, Release build, <MauiVersion>10.0.90</MauiVersion>.

  1. Register a second page as a Singleton and as a route:
// MauiProgram
builder.Services.AddSingleton<SecondPage>();

// AppShell ctor
Routing.RegisterRoute("SecondPage", typeof(SecondPage));
Routing.RegisterRoute("ThirdPage",  typeof(ThirdPage));

SecondPage just needs visible content (a few Labels/Buttons).

  1. From the root page: await Shell.Current.GoToAsync("SecondPage"); → renders correctly.
  2. From SecondPage: await Shell.Current.GoToAsync("ThirdPage"); → ThirdPage on top, SecondPage now buried in the stack.
  3. From ThirdPage: await Shell.Current.GoToAsync("///MainPage"); → stack reset.
  4. From the root page again: await Shell.Current.GoToAsync("SecondPage");

Result

Expected: SecondPage renders its content again (as it does on 10.0.80).
Actual on 10.0.90: SecondPage is completely blank.

UI dump text content:

step 10.0.80 10.0.90
visit 1 Second page, Some body text., … Second page, Some body text., …
visit 2 (after steps 3-4) Second page, Some body text., … (nothing)

The failing screen contains only action_bar_root — no text, no controls.

Diagnostics. Instrumenting the page's NavigatedTo on 10.0.90 across both visits:

visit 1:  [Probe] Content==null:False  contentType:Grid  childCount:1  handler:null
visit 2:  (no output at all)
  • NavigatedTo never fires on the second push. The handler is never created and the page is never attached.
  • The page object is intact. Content is non-null and still holds its Grid with children — this is not lost property state or a torn-down visual tree.
  • No exception is raised anywhere. Logcat shows no MAUI/app error during the failed navigation.

Not reproducible when the Singleton page is top of stack at the moment of the absolute-route reset — a push → /// reset → push loop runs indefinitely without blanking. The failure requires another page pushed on top before the reset.

ShellContentFragment and ShellPageContainer decompile byte-identical between 10.0.80 and 10.0.90, so the change is not in those types. The most substantial core difference between the two versions is in BindableObject, where the property store was re-keyed from the BindableProperty object to an int id:

// 10.0.80
private readonly Dictionary<BindableProperty, BindablePropertyContext> _properties;
// 10.0.90
private readonly Dictionary<int, BindablePropertyContext> _properties;   // property.InternalId
internal readonly int InternalId = Interlocked.Increment(ref _nextInternalId);

No link between that change and this regression has been proven — Content survives, so if related it would have to be some other piece of Shell's routing/presentation state rather than the page's own properties.

Workarounds tried (all fail)

workaround result
Register the page Transient instead of Singleton Blank page goes away, but introduces a per-navigation fragment/page leak (filed separately)
Clear + repopulate the bound ObservableCollection on NavigatedTo still blank
Re-assign CollectionView.ItemsSource (null, then re-set) on NavigatedTo still blank
Navigation.PopToRootAsync() before the absolute-route navigation still blank
Make the other pushed page Transient, keep the first Singleton still blank

Impact

This blocks upgrading to 10.0.90. 10.0.90 contains CollectionView memory-leak fixes (#17698, #35497) that were independently verified to fix a real leak — on 10.0.80 a login → grouped-CollectionView list → back cycle retains roughly 1 ShellPageContainer, 2 CoordinatorLayout and ~12 Android Views per cycle after a full managed + ART GC; on 10.0.90 every one of those classes returns to baseline. But 10.0.90 cannot be shipped because of this blank-page regression, leaving the app stuck on a version with a known leak.

Version with bug

10.0.90

Last version that worked well

10.0.80

Affected platforms

Android

Affected platform versions

Android 13 (API 33) emulator and a physical Android 13 arm64 device

Did you find any workaround?

No workaround found that preserves Singleton page registration. Switching the page to Transient avoids the blank page but trades it for a per-navigation leak.

Relevant log output

# 10.0.90, visit 2 — GoToAsync completes, nothing is attached, no exception logged
# NavigatedTo never fires; UI hierarchy contains only action_bar_root

Activity

  1. danlfarnell commented on Jul 28, 2026

    @danlfarnell
    Author

    Related: #36852. Registering the page AddTransient avoids this blank page, but that configuration hits the hidden-ShellContentFragment leak described there, so it is not a usable workaround.

  2. HarishKumarSF4517 commented on Jul 28, 2026

    @HarishKumarSF4517
    Contributor

    This issue has been validated in Visual Studio Code 1.130.0 with .NET MAUI versions 10.0.80 & 10.0.90. It can be reproduced on the Android platform from 10.0.90 version. I have attached the sample(AndroidShellIssue.zip) and output for reference:

    10.0.80(Issue not reporduced) 10.0.90(Issue reporduced)
    Screen.Recording.2026-07-28.at.12.54.46.PM.mov
    Screen.Recording.2026-07-28.at.12.58.07.PM.mov
  3. added
    s/verified
    s/triaged
    area-controls-shell
    i/regression
    on Jul 28, 2026
  4. added
    partner/syncfusion
    on Jul 28, 2026
  5. added this to the .NET 10 SR10 milestone on Jul 28, 2026
  6. idenardi commented on Jul 30, 2026

    @idenardi

    Has anyone found a workaround?

  7. added a commit that references this issue on Jul 31, 2026
    e0df1f6
  8. added a commit that references this issue on Aug 7, 2026
    d1f993c
  9. linked a pull request that will close this issueJuly 13th, Candidate #36411on Aug 25, 2026
  10. locked and limited conversation to collaborators on Sep 25, 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-shelli/regressionpartner/syncfusionplatform/androidregressed-in-10.0.90s/triageds/verified

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions