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

Layout Cycle Crash in ItemsRepeater inside ListViewItem #1293

Closed
dannyp32 opened this issue Sep 7, 2019 · 1 comment
Closed

Layout Cycle Crash in ItemsRepeater inside ListViewItem #1293

dannyp32 opened this issue Sep 7, 2019 · 1 comment
Assignees
Labels
area-ItemsRepeater bug Something isn't working team-Controls Issue for the Controls team

Comments

@dannyp32
Copy link

dannyp32 commented Sep 7, 2019

Describe the bug
An ItemsRepeater inside of a ListViewItem datatemplate causes a crash when trying to scroll due to a layout cycle.
Its easy to repro if the window height is small like shown in the video and there are 2 (more than 1?) items in the item repeater that both are larger than the window height.

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Run the test app.
    ItemsRepeaterCrash.zip

  2. Make the height of the window small like shown in the video.

  3. Scroll down and you should hit the crash.

Expected behavior
Should scroll normally. No Crash.

Screenshots

ReproCrash.mp4.zip
callstack.txt

Version Info
NuGet package version:
[Microsoft.UI.Xaml 2.2.190830001]

Windows 10 version Saw the problem?
Insider Build (xxxxx)
May 2019 Update (18362) Yes
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Mobile
Xbox
Surface Hub
IoT

Additional context

@msft-github-bot msft-github-bot added this to Needs triage in Controls Triage Sep 7, 2019
@jevansaks jevansaks added area-ItemsRepeater bug Something isn't working labels Sep 9, 2019
@jevansaks jevansaks moved this from Needs triage to Backlog in Controls Triage Sep 9, 2019
@ranjeshj
Copy link
Contributor

ListView and ItemsRepeater do their own corrections and anchoring which at times can conflict with each other especially if the growth is in the same direction. Please nest ItemsRepeater instead which knows how to work when nested.

Controls Triage automation moved this from Backlog to Closed Sep 10, 2019
@jevansaks jevansaks added the team-Controls Issue for the Controls team label Nov 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-ItemsRepeater bug Something isn't working team-Controls Issue for the Controls team
Projects
No open projects
Development

No branches or pull requests

3 participants