microsoft-ui-xaml: App crashes when rearranging tabs in TabView where TabItemsSource is used

Describe the bug If you try to rearrange tabs in the TabView which uses describes how to use TabItemsSource, the app crashes.

Steps to reproduce the bug

Steps to reproduce the behavior:

  1. Open the app, version 1.2.15.0
  2. navigate to tabview samples page
  3. scroll down to the section titled A TabView bound to a collection of MyData objects
  4. Try to rearrange the tabs in that section by dragging an dropping.
  5. app crashes

Expected behavior

app does not crash

Actual behavior

app crashes after dropping the tab

Screenshots

Version Info

Gallery version (found on Settings page):

1.2.15.0

Windows 10 version:

  • Insider Build (19041.264)
  • November 2019 Update (18363)
  • May 2019 Update (18362)
  • October 2018 Update (17763)
  • April 2018 Update (17134)
  • Fall Creators Update (16299)
  • Creators Update (15063)
  • Anniversary Update (14393)

Device form factor:

  • Desktop
  • Mobile
  • Xbox
  • Surface Hub
  • IoT

Additional context

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 7
  • Comments: 36 (26 by maintainers)

Commits related to this issue

Most upvoted comments

I think my assumption above was right. If you turn off system animations on your machine, the bug will no longer repro. I think Remote Desktop Connection turns off animations by default. (See ‘Show animations in Windows’ in the Settings app).

I can now repro on my Windows 10.0.18362.836 machine after turning on system animations on it.

This is also reproducible on build 18363 (v1909).

I am currently looking into Issue #2455 - it may be related. The scenario is a bit different because there the TabItemsSource is an observable collection of TabViewItem, as opposed to an observable collection of data objects.

@RBrid it crashes instantly for me in the xaml controls gallery app. Makes sure you scroll down to the demo for TabViewItemsSource. I just tried it now and still crashes instantly when I attempt a tab rearrange

The earliest version where the crash occurs is 2.2.190822001-prerelease. I will look into what changed between the release before that and that prerelease.