Skip to content

[Windows] Fix Shell.Items.Clear() memory leak by disconnecting child handlers on removal - #36872

Merged
kubaflo merged 1 commit into
dotnet:inflight/currentfrom
Shalini-Ashokan:fix-35035-windows
Jul 31, 2026
Merged

kubaflo merged 1 commit into
dotnet:inflight/currentfrom
Shalini-Ashokan:fix-35035-windows

Conversation

@Shalini-Ashokan

Copy link
Copy Markdown
Contributor

Note

Are you waiting for the changes in this PR to be merged?
It would be very helpful if you could test the resulting artifacts from this PR and let us know in a comment if this change resolves your issue. Thank you!

Issue Details

On Windows, calling Shell.Items.Clear() and navigating to a new root page leaves the old page's handlers (and its children's handlers) connected, causing a memory leak

Root Cause

ShellSectionHandler.SetVirtualView() reuses the handler for the new ShellSection but never disconnects handlers from the old section's pages when the section is removed from the Shell hierarchy.

Description of Change

Before the StackNavigationManager switches to the new section, check if the old ShellSection is no longer part of the Shell (FindParentOfType() is null). If so, iterate NavigationStack and call DisconnectHandlers() on each page to recursively free all native resources.

Validated the behavior in the following platforms

  • Android
  • Windows
  • iOS
  • Mac

Issues Fixed

Fixes #35035

Test case

The Issue34898 test case is already present in the main source code.

Output ScreenShot

Before After
35035-BeforeFix.mp4
35035-AfterFix.mp4

@github-actions

Copy link
Copy Markdown
Contributor

🚀 Dogfood this PR with:

⚠️ WARNING: Do not do this without first carefully reviewing the code of this PR to satisfy yourself it is safe.

curl -fsSL https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.sh | bash -s -- 36872

Or

  • Run remotely in PowerShell:
iex "& { $(irm https://raw.githubusercontent.com/dotnet/maui/main/eng/scripts/get-maui-pr.ps1) } 36872"

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@dotnet-policy-service dotnet-policy-service Bot added the community ✨ Community Contribution label Jul 28, 2026
@dotnet-policy-service

Copy link
Copy Markdown
Contributor

Hey there @@Shalini-Ashokan! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed.

@dotnet-policy-service dotnet-policy-service Bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Jul 28, 2026
@github-actions github-actions Bot added area-controls-shell Shell Navigation, Routes, Tabs, Flyout platform/windows labels Jul 28, 2026
@vishnumenon2684

Copy link
Copy Markdown
Contributor

/azp run maui-pr-uitests , maui-pr-devicetests

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses a Windows-specific memory leak when Shell.Items.Clear() removes the current ShellSection: the ShellSectionHandler gets reused for the next section, but the old section’s pages (and their children) can remain connected, retaining native resources. The fix proactively disconnects handlers for pages in the old section’s navigation stack when the old section is no longer attached to a Shell.

Changes:

  • Windows: In ShellSectionHandler.SetVirtualView, when switching sections, disconnect handlers for pages in the old section’s navigation stack if the old section is detached from Shell.
  • UI test: Enable the existing Issue34898 UI test to run on Windows by removing the #if TEST_FAILS_ON_WINDOWS guard.
  • HostApp metadata: Update Issue34898’s PlatformAffected metadata (not used for filtering in HostApp discovery).

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/Controls/src/Core/Handlers/Shell/ShellSectionHandler.Windows.cs Disconnects old section page handlers when the old section has been removed from the Shell hierarchy, preventing retained native resources.
src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue34898.cs Removes a Windows skip-guard so the regression test executes on Windows.
src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs Adjusts issue metadata for the HostApp test page.

namespace Maui.Controls.Sample.Issues;

[Issue(IssueTracker.Github, 34898, "Shell.Items.Clear does not disconnect handlers correctly", PlatformAffected.iOS | PlatformAffected.Android | PlatformAffected.macOS)]
[Issue(IssueTracker.Github, 34898, "Shell.Items.Clear does not disconnect handlers correctly", PlatformAffected.All)]
@kubaflo

This comment has been minimized.

@github-actions github-actions Bot added the s/agent-review-in-progress AI review is currently running for this PR label Jul 30, 2026
@MauiBot MauiBot added s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review) labels Jul 30, 2026
@MauiBot

MauiBot commented Jul 30, 2026

Copy link
Copy Markdown
Collaborator

AI Review Summary

@Shalini-Ashokan — new AI review results are available based on this last commit: 0a16676.

Gate Passed Confidence Low Platform Windows


🗂️ Review Sessions — click to expand
🚦 Gate — Test Before & After Fix

Gate Result: ✅ PASSED

Platform: WINDOWS · Base: main · Merge base: 62b927c2

Test Without Fix (expect FAIL) With Fix (expect PASS)
🖥️ Issue34898 Issue34898 ✅ FAIL — 587s ✅ PASS — 501s
🔴 Without fix — 🖥️ Issue34898: FAIL ✅ · 587s

Error-relevant lines (filtered from the build log):

     at Microsoft.Maui.TestCases.Tests.Issues.Issue34898.ShellItemsClearShouldDisconnectChildHandlers() in /_/src/Controls/tests/TestCases.Shared.Tests/Tests/Issues/Issue34898.cs:line 26
🟢 With fix — 🖥️ Issue34898: PASS ✅ · 501s

(no coded error found; showing last 1200 chars)

18.0.1 (x64)
Starting test execution, please wait...
A total of 1 test files matched the specified pattern.
NUnit Adapter 4.5.0.0: Test execution started
Running selected tests in D:\a\1\s\artifacts\bin\Controls.TestCases.WinUI.Tests\Debug\net10.0\Controls.TestCases.WinUI.Tests.dll
   NUnit3TestExecutor discovered 1 of 1 NUnit test cases using Current Discovery mode, Non-Explicit run
>>>>> 7/30/2026 4:11:16 PM FixtureSetup for Issue34898(Windows)
>>>>> 7/30/2026 4:11:25 PM ShellItemsClearShouldDisconnectChildHandlers Start
>>>>> 7/30/2026 4:11:29 PM ShellItemsClearShouldDisconnectChildHandlers Stop
  Passed ShellItemsClearShouldDisconnectChildHandlers [4 s]
NUnit Adapter 4.5.0.0: Test execution complete
[xUnit.net 00:00:00.00] xUnit.net VSTest Adapter v2.8.2+699d445a1a (64-bit .NET 10.0.0)
[xUnit.net 00:00:00.11]   Discovering: Controls.TestCases.WinUI.Tests
[xUnit.net 00:00:00.37]   Discovered:  Controls.TestCases.WinUI.Tests
Results File: D:\a\1\s\CustomAgentLogsTmp\UITests\TestResults\Issue34898.trx
Test Run Successful.
Total tests: 1
     Passed: 1
 Total time: 25.6255 Seconds
>>> TRX_RESULT_FILE: D:\a\1\s\CustomAgentLogsTmp\UITests\TestResults\Issue34898.trx
📁 Fix files reverted (1 files)
  • src/Controls/src/Core/Handlers/Shell/ShellSectionHandler.Windows.cs

📱 UI Tests — Shell

Detected UI test categories: Shell

✅ Deep UI tests — 276 passed, 0 failed across 1 category on platform-pool agent (replaces in-process counts above).

🧪 UI Test Execution Results (deep, platform pool)

Category Tests Snapshot diffs
Shell 276/276 ✓ —
📎 Download drop-deep-uitests artifact (TRX + snapshot diffs)

📋 Pre-Flight — Context & Validation

Issue: #35035 - [Windows]Shell.Items.Clear() does not disconnect handlers correctly
PR: #36872 - [Windows] Fix Shell.Items.Clear() memory leak by disconnecting child handlers on removal
Platforms Affected: Windows
Files Changed: 1 implementation, 2 test

Key Findings

  • The reported Windows bug is that clearing Shell.Current.Items, adding a new root TabBar, and navigating to it leaves the previous page handler and child element handlers connected.
  • The PR changes ShellSectionHandler.Windows.cs so that when a Windows ShellSectionHandler is reused for a different navigation view and the old section is detached from Shell, pages in the outgoing navigation stack are recursively disconnected.
  • The existing Issue34898 UI test is enabled on Windows by removing TEST_FAILS_ON_WINDOWS; the HostApp issue metadata was broadened to PlatformAffected.All.
  • Prior review feedback only flagged the HostApp metadata broadening as imprecise because the original Shell.Items.Clear() does not disconnect handlers correctly #34898 issue was not Windows-specific; this is not a runtime correctness blocker.
  • Gate result was supplied by the caller: Gate ✅ PASSED — tests fail without fix and pass with fix. Gate was not re-run.

Code Review Summary

Verdict: NEEDS_DISCUSSION
Confidence: low
Errors: 0 | Warnings: 0 | Suggestions: 0

Key code review findings:

  • No ❌ Error, ⚠️ Warning, or 💡 Suggestion findings from the code review.
  • Blast radius: Shell/TabBar handler lifecycle on Windows; no startup path and no new static/shared state.
  • Failure-mode probes found the new PR path is scoped to detached old sections, so normal tab/section switches should not recursively disconnect still-owned pages.
  • CI merge readiness remains undetermined because authenticated required-check status was unavailable and public check samples were red/ambiguous.

Fix Candidates

# Source Approach Test Result Files Changed Notes
PR PR #36872 In ShellSectionHandler.SetVirtualView, before reconnecting the reused Windows navigation manager, disconnect handlers for pages in the old navigation stack when the old section is no longer attached to a Shell. ✅ PASSED (Gate) ShellSectionHandler.Windows.cs, Issue34898.cs tests Original PR fix

🔬 Code Review — Deep Analysis

Code Review — PR #36872

Independent Assessment

What this changes: Windows ShellSectionHandler.SetVirtualView now disconnects handlers for pages in the outgoing section’s StackNavigationManager.NavigationStack when that old section is no longer attached to a Shell, before reconnecting the navigation manager to the new section. It also enables an existing Shell UI regression test on Windows and broadens HostApp issue metadata.
Inferred motivation: Prevent retained Windows handlers/native resources after Shell.Items.Clear() replaces the root Shell items.

Reconciliation with PR Narrative

Author claims: Fixes Windows memory leak for Shell.Items.Clear() by disconnecting old section page handlers; enables existing test coverage for #35035.
Agreement/disagreement: The code matches the stated mechanism. The guard is scoped to detached Shell sections, so normal Shell section/tab switches should not recursively disconnect still-owned pages.

Prior Review Reconciliation

No prior ❌ Error findings found.

A prior non-error Copilot comment noted that changing Issue34898 metadata to PlatformAffected.All may be imprecise because the original issue metadata was not Windows-specific. This remains true but is metadata-only and not a correctness blocker for the runtime fix.

External Output Contract

Consumer token/pattern Producer location Producer emission condition Consumer assumption Ordinary negative case Downstream effect
N/A N/A N/A This PR does not classify external tool output with regex/string tokens. N/A N/A

Blast Radius Assessment

  • Runs for all instances: No — the new disconnect path runs only when an existing Windows Shell section handler is being reused for a different navigation view and the old _shellSection has no parent Shell.
  • Startup impact: No direct startup path; it runs during Shell section replacement/navigation-handler reuse.
  • Static/shared state: No new static/shared runtime state.
  • Component family: Shell/TabBar handler lifecycle, so adjacent Shell navigation/reconnect scenarios were probed.

CI Status

  • Required-check result: gh pr checks --required could not run because gh is unauthenticated. REST check-runs for head 0a16676a show failures in maui-pr, maui-pr-uitests, and maui-pr-devicetests.
  • Classification: Undetermined for merge readiness, but sampled failures appear unrelated/infrastructure: Windows build file-lock on .buildtasks, Android RefreshView UI failures/socket hangup, MacCatalyst CarouselView memory test failure.
  • Action taken: Invoked azdo-build-investigator context and inspected public AzDO/Helix logs; confidence capped low because CI is red and gh --required was unavailable.

Findings

No ❌ Error, ⚠️ Warning, or 💡 Suggestion findings from the code review.

Failure-Mode Probing

  • Normal Shell tab/section switch: _shellSection.FindParentOfType<Shell>() should still be non-null, so the new recursive disconnect does not run.
  • Shell.Items.Clear() replacement: the outgoing section is detached, so pages in the previous navigation stack are disconnected before the manager disconnects/reconnects.
  • Handler reconnect: the code disconnects old pages before _navigationManager.Disconnect(...); then connects the new IStackNavigation, preserving the existing reconnect flow.
  • Null/default state: _shellSection?.FindParentOfType<Shell>() is null is safe, and page?.DisconnectHandlers() tolerates null pages.
  • Multiple subscriptions: existing unsubscribe logic still runs before the new disconnect path; no new event subscriptions are introduced.

Verdict: NEEDS_DISCUSSION

Confidence: low
Summary: I found no concrete code correctness issue in the Shell handler change. However CI is currently red and required-check status could not be obtained via authenticated gh; sampled failures look unrelated, but merge readiness remains a human/CI discussion until required checks are clean or officially classified.


🛠️ Fix — Analysis & Comparison

Fix Candidates

# Source Approach Test Result Files Changed Notes
1 try-fix-1 / claude-opus-4.6 Added a Windows ShellStackNavigationManager subclass and made ShellSectionHandler create it; the subclass disconnects pages in Disconnect() when the navigation view is detached from Shell. ✅ PASS 2 files Viable alternative, but not demonstrably better than the PR because it adds a new type and broadens cleanup ownership into the navigation manager.
2 try-fix-2 / claude-opus-4.7 Subscribed at ShellHandler.Windows to Shell item collection changes, tracked removed items through reset diffs, and tried sync/dispatcher/Navigated deferrals before disconnecting removed section pages. ❌ FAIL 1 file Crashed the HostApp before assertions; Shell-level events fire at the wrong lifecycle point while WinUI navigation can still own the old visual tree.
3 try-fix-3 / gpt-5.3-codex Intended content-owned cleanup from pages already owned by old ShellSection/ShellContent, avoiding _navigationManager.NavigationStack. ⚠️ BLOCKED 0 files Baseline isolation failed due unrelated dirty workspace files, so no safe edit/test was performed.
4 try-fix-4 / gpt-5.5 Intended narrow ShellSectionHandler.DisconnectHandler lifecycle cleanup for detached section pages. ⚠️ BLOCKED 0 files Baseline isolation failed due unrelated dirty workspace files, so no safe edit/test was performed.
PR PR #36872 In ShellSectionHandler.SetVirtualView, before reconnecting the reused Windows navigation manager, disconnect handlers for pages in the old navigation stack when the old section is no longer attached to a Shell. ✅ PASSED (Gate) 3 files Original PR; gate was supplied as already passed and was not re-run.

Cross-Pollination

Model Round New Ideas? Details
claude-opus-4.6 2 No No new ideas beyond the meaningful lifecycle hooks already covered; additional WeakReference/Page.Unloaded variants would be minor variants.
claude-opus-4.7 2 Yes Suggested deferring disconnect to old pages' WinUI Unloaded event from ShellSectionHandler.SetVirtualView; not run because baseline isolation was blocked by unrelated dirty workspace files.
gpt-5.3-codex 2 Yes Suggested NavigationStack diff cleanup inside StackNavigationManager after Connect; not run because baseline isolation was blocked by unrelated dirty workspace files and it overlaps candidate 1's manager-owned cleanup.
gpt-5.5 2 Yes Suggested hooking WinUI Frame.Unloaded inside StackNavigationManager; not run because baseline isolation was blocked by unrelated dirty workspace files and it is another manager lifecycle variant.

Exhausted: Yes — one meaningfully different alternative passed, one failed empirically, two intended alternatives were blocked by mandatory baseline isolation, and cross-pollination only produced lifecycle variants that could not be safely applied/tested in the current dirty workspace.
Selected Fix: PR #36872 — the PR fix remains the best supported choice: it passes the supplied gate, is smaller than the passing candidate 1, and uses the same safe lifecycle anchor that candidate 2's failure showed is necessary.

Attempt Narratives

try-fix-1

Created a Shell-aware ShellStackNavigationManager subclass that overrides Disconnect() to disconnect page handlers when the ShellSection is detached from its Shell parent. The Windows test ShellItemsClearShouldDisconnectChildHandlers passed. Self-review was clean ([]). This is viable but broader than the PR because it adds a new type and moves Shell-specific cleanup into a manager subclass.

try-fix-2

Tried Shell-level removed-item cleanup in ShellHandler.Windows.cs, including sync, dispatcher-deferred, and Shell.Navigated-deferred disconnect timing. All three iterations compiled but crashed the HostApp before the test assertions. The failure indicates that the cleanup must be synchronized with the ShellSectionHandler/WinUI Frame swap rather than Shell item collection events.

try-fix-3

Planned a content-owned cleanup from old ShellSection/ShellContent pages instead of _navigationManager.NavigationStack, but EstablishBrokenBaseline.ps1 refused to establish baseline because the workspace contained many unrelated dirty files. No target code was changed and no test was run.

try-fix-4

Planned a narrow DisconnectHandler lifecycle cleanup for detached ShellSection pages, but the same baseline isolation blocker prevented safe edits and testing. No target code was changed and no test was run.


🏁 Report — Final Recommendation

Comparative Candidate Report — PR #36872

Candidate ranking

Rank Candidate Regression result Assessment
1 pr ✅ PASSED Best supported fix. It is the smallest passing implementation, targets the Windows ShellSectionHandler/StackNavigationManager handoff where the stale page handlers are still known, and avoids broader lifecycle/event plumbing.
1 pr-plus-reviewer ✅ PASSED Equivalent to pr; the expert reviewer produced no actionable inline findings ([]), so no sandbox changes were applied. It does not improve on the raw PR because it is a no-op candidate.
3 try-fix-1 ✅ PASS Viable, but broader than the PR. It adds a new ShellStackNavigationManager subclass and moves Shell-specific cleanup into manager ownership; that works but is more code and abstraction surface for the same behavior.
4 try-fix-3 ⚠️ BLOCKED Intended content-owned cleanup was not applied or tested because baseline isolation was blocked by unrelated dirty workspace files. It cannot outrank tested passing candidates.
5 try-fix-4 ⚠️ BLOCKED Intended DisconnectHandler lifecycle cleanup was not applied or tested for the same baseline-isolation blocker. It cannot outrank tested passing candidates.
6 try-fix-2 ❌ FAIL Shell-level collection-change cleanup crashed the HostApp across sync, dispatcher-deferred, and Shell.Navigated-deferred variants. Per instruction, failed regression-test candidates rank below passing candidates.

Analysis

The PR fix and try-fix-1 both use the same key safety condition: disconnect old page handlers only when the outgoing section is no longer attached to a Shell. The difference is ownership. The PR keeps the cleanup at the exact existing handler reuse point in ShellSectionHandler.SetVirtualView, immediately before _navigationManager.Disconnect(...); try-fix-1 introduces a Shell-specific navigation manager subclass to perform the same cleanup from Disconnect().

try-fix-2 is useful negative evidence: reacting at the ShellHandler/Shell.Items layer fires too early or at an unsafe lifecycle point for WinUI, and even deferred variants crashed before assertions. That supports keeping the cleanup anchored in the section handler/manager handoff rather than Shell collection events.

The expert review found no actionable changes for the PR, so pr-plus-reviewer is identical to pr. Because it adds no improvement, the single winner is the raw PR fix by parsimony.

Winner

pr wins. It passes the supplied gate, is narrower than the other passing candidate, avoids the empirically failing Shell-level timing strategy, and needs no expert-reviewer modifications.


🧭 Next Steps — review latest findings

No alternative fix was selected for this run. Review the session findings and CI results before merging.

@MauiBot MauiBot removed the s/agent-review-in-progress AI review is currently running for this PR label Jul 30, 2026
@kubaflo
kubaflo changed the base branch from main to inflight/current July 31, 2026 09:55
@kubaflo
kubaflo merged commit a89dd1c into dotnet:inflight/current Jul 31, 2026
160 of 169 checks passed
@github-actions github-actions Bot added this to the .NET 10 SR10 milestone Jul 31, 2026
kubaflo pushed a commit that referenced this pull request Aug 7, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Aug 12, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
@sheiksyedm sheiksyedm modified the milestones: .NET 10 SR10, .NET 10 SR11 Aug 26, 2026
kubaflo pushed a commit that referenced this pull request Aug 27, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 2, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 3, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 3, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 4, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 6, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 7, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 7, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 8, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 8, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 9, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
kubaflo pushed a commit that referenced this pull request Sep 9, 2026
…handlers on removal (#36872)

<!-- Please let the below note in for people that find this PR -->
> [!NOTE]
> Are you waiting for the changes in this PR to be merged?
> It would be very helpful if you could [test the resulting
artifacts](https://github.com/dotnet/maui/wiki/Testing-PR-Builds) from
this PR and let us know in a comment if this change resolves your issue.
Thank you!

<!--
!!!!!!! MAIN IS THE ONLY ACTIVE BRANCH. MAKE SURE THIS PR IS TARGETING
MAIN. !!!!!!!
-->


### Issue Details
On Windows, calling Shell.Items.Clear() and navigating to a new root
page leaves the old page's handlers (and its children's handlers)
connected, causing a memory leak

### Root Cause
ShellSectionHandler.SetVirtualView() reuses the handler for the new
ShellSection but never disconnects handlers from the old section's pages
when the section is removed from the Shell hierarchy.

### Description of Change
Before the StackNavigationManager switches to the new section, check if
the old ShellSection is no longer part of the Shell
(FindParentOfType<Shell>() is null). If so, iterate NavigationStack and
call DisconnectHandlers() on each page to recursively free all native
resources.

Validated the behavior in the following platforms
 
- [ ] Android
- [x] Windows
- [ ] iOS
- [ ] Mac
 
### Issues Fixed
  
Fixes #35035 

### Test case
The
[Issue34898](https://github.com/dotnet/maui/blob/main/src/Controls/tests/TestCases.HostApp/Issues/Issue34898.cs#L1)
test case is already present in the main source code.

### Output  ScreenShot

|Before|After|
|--|--|
| <video
src="https://github.com/user-attachments/assets/87e4c6e5-ccbf-45ee-9b78-a19c50a904d0"
>| <video
src="https://github.com/user-attachments/assets/03b3b338-765a-4b54-9103-eb880aa580a7">|
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 25, 2026

This branch was previously deployed

1 inactive deployment
copilot-pat-pool — 0a16676a Deployed Jul 28, 2026 by Shalini-Ashokan via conclusion #995
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-controls-shell Shell Navigation, Routes, Tabs, Flyout community ✨ Community Contribution partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows s/agent-changes-requested AI agent recommends changes - found a better alternative or issues s/agent-fix-pr-picked AI could not beat the PR fix - PR is the best among all candidates s/agent-gate-passed AI verified tests catch the bug (fail without fix, pass with fix) s/agent-reviewed PR was reviewed by AI agent workflow (full 4-phase review)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Windows]Shell.Items.Clear() does not disconnect handlers correctly

6 participants