Skip to content

Sample App Crashes when Searching due to Animation on Item #3701

@michael-hawker

Description

@michael-hawker

Describe the bug

If you're typing in search, the Sample App can crash. This appears to be a failure due to an animation based effect on the search result items. There may also be a different similar issue as @avknaidu mentioned they can repro in the existing sample app, but we have since replaced it's animations with the new animation set from #3639.

Steps to Reproduce

  • Can this be reproduced in the Sample App?

Steps to reproduce the behavior:

  1. Open Sample app
  2. Search for something like 'System'
  3. Place mouse over an item so that it gets larger
  4. Modify search (with keyboard)
  5. Crash

Expected behavior

Not crash

Environment

Latest main

Additional context

FYI @Sergio0694

This is crashing in the Scale animation setup in the ItemContainer_PointerExited method of Shell.SamplePicker.cs which is initialized by the GridView SamplePickerGridView on each GridViewItem in SamplePickerGridView_ChoosingItemContainer.

System.ArgumentException
  HResult=0x80070057
  Message=The parameter is incorrect.

element
  Source=<Cannot evaluate the exception source>
  StackTrace:
<Cannot evaluate the exception stack trace>

at Windows.UI.Xaml.Hosting.ElementCompositionPreview.SetIsTranslationEnabled(UIElement element, Boolean value)
at Microsoft.Toolkit.Uwp.UI.Animations.AnimationBuilder.Start(UIElement element) in H:\\code\\WindowsCommunityToolkit\\Microsoft.Toolkit.Uwp.UI.Animations\\Builders\\AnimationBuilder.cs:line 69
at Microsoft.Toolkit.Uwp.SampleApp.Shell.ItemContainer_PointerExited(Object sender, PointerRoutedEventArgs e) in H:\\code\\WindowsCommunityToolkit\\Microsoft.Toolkit.Uwp.SampleApp\\Shell.SamplePicker.cs:line 239

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions