Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unstable][MAUI]I9_Scrolling_SnapPoints page throws System.ObjectDisposedException after setting SnapPointsType. #23528

Open
ninachen03 opened this issue Jul 10, 2024 · 1 comment
Assignees
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView csi-new p/2 Work that is important, but is currently not scheduled for release platform/android 🤖 s/triaged Issue has been reviewed t/bug Something isn't working
Milestone

Comments

@ninachen03
Copy link

ninachen03 commented Jul 10, 2024

Description

I9_Scrolling
Affected case:
I9_Scrolling_SnapPoints

Note:
The I2 space test case sometimes throws same exception.
I2-Vertical list for ItemSpacing
I2-Horizontal list for ItemSpacing
image

Steps to Reproduce

  1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to Android.
  2. Navigate to 'I CollectionView' ->'I9_Scrolling ->SnapPoints page
  3. Set SnapPointsType from None to others.

Actual Behavior:
I9_Scrolling_SnapPoints throw exception
System.ObjectDisposedException
Message=Cannot access a disposed object.
Object name: 'Microsoft.Maui.Controls.Handlers.Items.MauiRecyclerView3[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.GroupableItemsViewAdapter2[[Microsoft.Maui.Controls.ReorderableItemsView, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.IGroupableItemsViewSource, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]], Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null],[Microsoft.Maui.Controls.Handlers.Items.IGroupableItemsViewSource, Microsoft.Maui.Controls, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]'.
image
Call stack:0x23 in ManualMauiTests.Views.VerticalListSnapPointsPage.OnSnapPointsTypeSelectedIndexChanged at C:\Users\admin\Desktop\ManualMauiTests\ManualMauiTests\Views\SnapPoints\VerticalListSnapPointsPage.xaml.cs:17,13
Expected Behavior:
Can set SnapPointsType from None to others, it displays normally and does not throw any exceptions

Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

Version with bug

8.0.80-ci.net8.24357.1

Is this a regression from previous behavior?

Not sure if it is a regression, because the problem is not stable and reproducible

Affected platforms

Android

Did you find any workaround?

Reopen and redeploy, it works fine since it is unstable issue.

@ninachen03 ninachen03 added t/bug Something isn't working platform/windows 🪟 s/triaged Issue has been reviewed csi-new labels Jul 10, 2024
Copy link
Contributor

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@ninachen03 ninachen03 changed the title [Unstable][MAUI]I9_Scrolling_SnapPoints page throw exception [Unstable][MAUI]I9_Scrolling_SnapPoints page throws System.ObjectDisposedException after setting SnapPointsType. Jul 10, 2024
@PureWeen PureWeen added p/2 Work that is important, but is currently not scheduled for release area-controls-collectionview CollectionView, CarouselView, IndicatorView labels Jul 10, 2024
@PureWeen PureWeen self-assigned this Jul 10, 2024
@PureWeen PureWeen added this to the Backlog milestone Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView csi-new p/2 Work that is important, but is currently not scheduled for release platform/android 🤖 s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants