Skip to content
This repository was archived by the owner on Feb 25, 2026. It is now read-only.
This repository was archived by the owner on Feb 25, 2026. It is now read-only.

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

Closed

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

Activity

  1. added this to the 7.0 milestone on Jan 27, 2021
  2. michael-hawker commented on Mar 2, 2021

    @michael-hawker
    MemberAuthor

    @Sergio0694 any thoughts here on this issue?

  3. Sergio0694 commented on Mar 2, 2021

    @Sergio0694
    Member

    Taking a look... 👀

  4. ghost closed this as completedin #3801on Mar 3, 2021
  5. ghost added a commit that references this issue on Mar 3, 2021
    6ec8c8c
  6. ghost locked as resolved and limited conversation to collaborators on May 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions