Skip to content

[Windows][.NET 11] CollectionView crashes when multiple CollectionViews share the same ObservableCollection #39751

Closed

Description

@Manikandan-D-SF4683

Description

The application crashes on Windows when adding a new item to an ObservableCollection that is bound to multiple CollectionViews.

The issue is reproducible in a simple sample application. The same sample works correctly in .NET 10 but crashes in .NET 11, indicating a potential framework regression.

Steps to Reproduce

  1. Create two CollectionViews.
  2. Bind both CollectionViews to the same ObservableCollection.
  3. Set one CollectionView's IsVisible property to False.
  4. Run the application.
  5. Add a new item to the ObservableCollection.
  6. Observe the application crash.

Link to public reproduction project repository

https://github.com/Manikandan-D-SF4683/CollectionView-Shared-ItemsSource-Crash-Windows

Version with bug

11.0.0-rc.2

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

10.0.120

Affected platforms

Windows

Affected platform versions

Windows 11 26200.9448

Did you find any workaround?

Yes.

Setting the hidden CollectionView's ItemsSource to null avoids the crash. The issue occurs when multiple CollectionViews share the same ObservableCollection and one CollectionView is hidden.

Activity

  1. added
    t/bug
    on Oct 29, 2026
  2. added
    area-controls-collectionview
    on Oct 29, 2026
  3. TamilarasanSF4853 commented on Oct 29, 2026

    @TamilarasanSF4853
    Contributor

    This issue has been validated in Visual Studio Insiders 12324.72 with .NET MAUI versions 11.0.0-preview.1, 11.0.0-preview.4, 11.0.0-preview.5, 11.0.0-preview.6, 11.0.0-rc.1 and 11.0.0-rc.2. It can be reproduced on the Windows platform from version 11.0.0-preview.6.

    Issue.mp4
    No_Issue.mp4
  4. added
    s/verified
    s/triaged
    i/regression
    on Oct 29, 2026
  5. added
    partner/syncfusion
    on Oct 29, 2026
  6. added a commit that references this issue on Oct 30, 2026
    b346503
  7. github-actions commented on Oct 30, 2026

    @github-actions
    Contributor

    Closed by #39760 (merged to net11.0). GitHub only auto-closes for PRs merged to the default branch; this issue was fixed by a PR merged to a non-default branch.

  8. added this to the .NET 11.0-rc2 milestone on Oct 30, 2026
  9. HadayaRahman-SF4673 commented on Nov 11, 2026

    @HadayaRahman-SF4673

    The Reported issue still not resolved in the net 11 Stable release (11.0.0). could you kindly check and let us know.

    IssueOutput.zip

  10. zhitaop commented on Nov 11, 2026

    @zhitaop

    Hi @kubaflo

    We're also still seeing this crash on Windows with .NET MAUI 11.0.0 GA release, as @HadayaRahman-SF4673 reported.

    There seems to be a possible discrepancy between release note and source:

    Could you please confirm if the fix made it into the 11.0.0 GA release?

  11. Mingxiao-Ye commented on Nov 14, 2026

    @Mingxiao-Ye

    @kubaflo

    We can still reproduce 0x800710DD: ItemsRepeater part is not available when updating a CollectionView inside an initially closed Shell flyout.

    Steps: fresh launch → Reproduce crash, without opening the fly-out menu.

    • The added guard skips scrolling when the native CollectionView is unloaded or its own visibility is not Visible. It does not check ancestor visibility.
    • Setting KeepScrollOffset avoids the crash in our testing
    2026-11-13T12:22:27.8627064-08:00 Runtime: 11.0.0; OS: Microsoft Windows NT 10.0.26100.0
    2026-11-13T12:22:27.8657074-08:00 MAUI Controls: 11.0.10+87182d7bcbbc9af30bc6dd81991aa6fd1ab3cd35
    2026-11-13T12:23:18.9447980-08:00 Before rebuild: FlyoutIsPresented=False; mode=KeepItemsInView; native=MauiItemsView; IsLoaded=True; Visibility=Visible; ItemsRepeaterCount=0
    Ancestors: FlyoutPanel()=Visible > ContentPresenter()=Visible > ContentControl(PaneCustomContentBorder)=Visible > Grid(PaneContentGrid)=Visible > Border()=Visible > Grid(PaneRoot)=Collapsed > Grid()=Visible > SplitView(RootSplitView)=Visible > Grid()=Visible > Grid(RootGrid)=Visible > ShellView()=Visible > ContentPresenter()=Visible > Grid(RootGrid)=Visible > Page(RootPage)=Visible > WindowRootView()=Visible > WindowRootViewContainer()=Visible > ContentPresenter(ClientAreaPresenter)=Visible > Border()=Visible > ScrollContentPresenter()=Visible > ScrollViewer()=Visible
    2026-11-13T12:23:18.9514431-08:00 After rebuild: FlyoutIsPresented=False; mode=KeepItemsInView; native=MauiItemsView; IsLoaded=True; Visibility=Visible; ItemsRepeaterCount=0
    Ancestors: FlyoutPanel()=Visible > ContentPresenter()=Visible > ContentControl(PaneCustomContentBorder)=Visible > Grid(PaneContentGrid)=Visible > Border()=Visible > Grid(PaneRoot)=Collapsed > Grid()=Visible > SplitView(RootSplitView)=Visible > Grid()=Visible > Grid(RootGrid)=Visible > ShellView()=Visible > ContentPresenter()=Visible > Grid(RootGrid)=Visible > Page(RootPage)=Visible > WindowRootView()=Visible > WindowRootViewContainer()=Visible > ContentPresenter(ClientAreaPresenter)=Visible > Border()=Visible > ScrollContentPresenter()=Visible > ScrollViewer()=Visible
    2026-11-13T12:23:18.9835671-08:00 First-chance ItemsRepeater failure (not suppressed):
    System.Runtime.InteropServices.COMException (0x800710DD): The operation identifier is not valid.
    
    ItemsRepeater part is not available.
       at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|41_0(Int32 hr) in C:\__w\1\s\src\WinRT.Runtime\ExceptionHelpers.cs:line 121
    

    ReproSample.zip

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-collectionviewcollectionview-winui-cv2i/regressionpartner/syncfusionplatform/windowsregressed-in-11-preview6s/triageds/verifiedt/bug

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions