Skip to content

[.NET 10 Preview 7] Poor CV performance, ghosting, crashing on Windows #31411

@daltzctr

Description

@daltzctr

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using a CollectionView on Windows with a complex datatemplate (the issue is more exaggerated the more complex data template), you will observe ghosting while scrolling and low performance. Scrolling will "stutter" and mutating the datatemplate (setting a visibility property from true to false) in bulk can sometimes cause a COMException and a crash (no stack trace, COMException is empty even with Just My Code disabled and mixed debugging on).

The below video is captured running in release mode.

PoorCVRepro_kU7gkx43ey.mp4

Expected Behavior

High performance scrolling with no "jittering", no crashing when children dynamically updated, just generally more stable.

Steps To Reproduce

  1. Create a collectionview binded to ~2000 items
  2. Create a complex datatemplate. The more complex the datatemplate, the better.
  3. Scroll to observe poor performance, jittering, ghosting.
  4. Mutate the children in bulk (for example, bind to a Visible property and set half of them to False
  5. Observe crash (sometimes)

Link to public reproduction project repository

https://github.com/daltzctr/PoorCVRepro

Environment

- .NET MAUI CommunityToolkit: None
- OS: Windows 11 26100.4946
- .NET MAUI: .NET 10 Preview 7

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions