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

CollectionView crashes on iOS and MacCatalyst when new items are added and it's in a view which isn't visible #22072

Open
KeithBoynton opened this issue Apr 26, 2024 · 1 comment
Labels
area-controls-collectionview CollectionView, CarouselView, IndicatorView platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Milestone

Comments

@KeithBoynton
Copy link

Description

If a CollectionView resides inside a view that is set to IsVisible="False" and the CollectionView is in a Grid with a row definition of * then it crashes on iOS and MacCatalyst when items are added to the collection.
It works fine on Windows and Android.

Steps to Reproduce

  1. Clone the attached project
  2. Run the solution on iOS or MacCatalyst
  3. Wait a few seconds for some items to be added to the collection
  4. Observe the crash
  5. Run the solution in Windows or Android and wait a few seconds
  6. Observe it works
  7. On the MainPage.xaml set the IsVisible to True on View2
  8. Run the solution on iOS or MacCatalyst
  9. Wait a few seconds and observe it working
  10. Or... revert the IsVisible back to False and change the row definition in View2.xaml from * to Auto
  11. Run the solution on iOS or MacCatalyst and observe it working

Link to public reproduction project repository

https://bitbucket.org/KeithBoynton/view-not-visible-crash/src/master/

Version with bug

8.0.21 SR4.1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

iOS, macOS

Affected platform versions

No response

Did you find any workaround?

No workaround found

Relevant log output

No response

@KeithBoynton KeithBoynton added the t/bug Something isn't working label Apr 26, 2024
@RoiChen001 RoiChen001 added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Apr 26, 2024
@RoiChen001
Copy link
Collaborator

RoiChen001 commented Apr 26, 2024

Can repro this issue at iOS platform on the latest 17.10 Preview 5(8.0.21).

@PureWeen PureWeen added the area-controls-collectionview CollectionView, CarouselView, IndicatorView label Apr 26, 2024
@PureWeen PureWeen added this to the Backlog milestone Apr 26, 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 platform/iOS 🍎 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants