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

Crash on windows scroll after an automatic translation #430

Open
systolan opened this issue Oct 2, 2021 · 10 comments
Open

Crash on windows scroll after an automatic translation #430

systolan opened this issue Oct 2, 2021 · 10 comments

Comments

@systolan
Copy link

systolan commented Oct 2, 2021

After translating with a translation provider (we use Deepl, but it seems to apply to any of them), if the list of the translated items is big enough and scrolling or windows resize is needed, the application crashes on scrolling or window resizing. The behaviour is observed in both VS and in a standalone mode.

Steps to reproduce the behavior:

  1. Open the extension or the app with a folder containing at least twice as much translatable entries as there visible in the app
  2. Navigate to Translate
  3. Perform an automatic translation of the entire sheet
  4. Try to scroll the list or resize the window
  5. => Crash
@tom-englert
Copy link
Collaborator

Can you attach a stack trace?

@systolan
Copy link
Author

systolan commented Oct 2, 2021

Anwendung: ResXManager.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.ArgumentNullException

   bei System.Windows.Automation.Peers.DataGridItemAutomationPeer..ctor(System.Object, System.Windows.Automation.Peers.DataGridAutomationPeer)
   bei System.Windows.Automation.Peers.DataGridAutomationPeer.CreateItemAutomationPeer(System.Object)
   bei System.Windows.Automation.Peers.ItemsControlAutomationPeer.GetChildrenCore()
   bei System.Windows.Automation.Peers.DataGridAutomationPeer.GetChildrenCore()
   bei System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   bei System.Windows.Automation.Peers.AutomationPeer.GetChildren()
   bei System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(System.Windows.Automation.Peers.AutomationPeer)
   bei MS.Internal.Automation.ElementProxy.StaticWrap(System.Windows.Automation.Peers.AutomationPeer, System.Windows.Automation.Peers.AutomationPeer)
   bei System.Windows.Automation.Peers.AutomationPeer.RaisePropertyChangedEvent(System.Windows.Automation.AutomationProperty, System.Object, System.Object)
   bei System.Windows.Automation.Peers.ComboBoxAutomationPeer.RaiseValuePropertyChangedEvent(System.String, System.String)
   bei System.Windows.Controls.ComboBox.OnTextChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   bei System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty, Boolean)
   bei System.Windows.Data.BindingExpressionBase.Invalidate(Boolean)
   bei System.Windows.Data.BindingExpression.TransferValue(System.Object, Boolean)
   bei System.Windows.Data.BindingExpression.Activate(System.Object)
   bei System.Windows.Data.BindingExpression.OnDataContextChanged(System.Windows.DependencyObject)
   bei System.Windows.Data.BindingExpression.HandlePropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.Data.BindingExpression.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependentList.InvalidateDependents(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   bei System.Windows.TreeWalkHelper.OnInheritablePropertyChanged(System.Windows.DependencyObject, System.Windows.InheritablePropertyChangeInfo, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean)
   bei System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   bei System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)
   bei System.Windows.Controls.ContentPresenter.OnContentChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   bei System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty, Boolean)
   bei System.Windows.Data.BindingExpressionBase.Invalidate(Boolean)
   bei System.Windows.Data.BindingExpression.TransferValue(System.Object, Boolean)
   bei System.Windows.Data.BindingExpression.HandlePropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.Data.BindingExpression.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependentList.InvalidateDependents(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   bei System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   bei System.Windows.TreeWalkHelper.InvalidateTreeDependentProperty(System.Windows.TreeChangeInfo, System.Windows.DependencyObject, MS.Internal.FrameworkObject ByRef, System.Windows.DependencyProperty, System.Windows.FrameworkPropertyMetadata, System.Windows.Style, System.Windows.Style, System.Windows.ChildRecord ByRef, Boolean, Boolean, Boolean, Boolean)
   bei System.Windows.TreeWalkHelper.InvalidateTreeDependentProperties(System.Windows.TreeChangeInfo, System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Windows.Style, System.Windows.Style, System.Windows.ChildRecord ByRef, Boolean, Boolean, Boolean, Boolean)
   bei System.Windows.FrameworkElement.InvalidateTreeDependentProperties(System.Windows.TreeChangeInfo, Boolean, Boolean)
   bei System.Windows.FrameworkElement.OnAncestorChangedInternal(System.Windows.TreeChangeInfo)
   bei System.Windows.TreeWalkHelper.OnAncestorChanged(System.Windows.DependencyObject, System.Windows.TreeChangeInfo, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkLogicalChildren(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Collections.IEnumerator)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkLogicalChildren(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Collections.IEnumerator)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkLogicalChildren(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Collections.IEnumerator)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   bei System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean)
   bei MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean)
   bei System.Windows.TreeWalkHelper.InvalidateOnTreeChange(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Windows.DependencyObject, Boolean)
   bei System.Windows.FrameworkElement.OnVisualParentChanged(System.Windows.DependencyObject)
   bei System.Windows.Media.Visual.FireOnVisualParentChanged(System.Windows.DependencyObject)
   bei System.Windows.Media.Visual.RemoveVisualChild(System.Windows.Media.Visual)
   bei System.Windows.Media.VisualCollection.DisconnectChild(Int32)
   bei System.Windows.Media.VisualCollection.InternalRemove(System.Windows.Media.Visual)
   bei System.Windows.Controls.UIElementCollection.RemoveNoVerify(System.Windows.UIElement)
   bei System.Windows.Controls.VirtualizingStackPanel.DisconnectRecycledContainers()
   bei System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl(System.Windows.Size, System.Nullable`1<Double> ByRef, System.Collections.Generic.List`1<Double> ByRef, System.Nullable`1<Double> ByRef, Boolean)
   bei System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(System.Windows.Size)
   bei System.Windows.Controls.Primitives.DataGridRowsPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ItemsPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ScrollContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
   bei System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
   bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.ScrollViewer.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.Controls.DataGrid.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Grid.MeasureCell(Int32, Boolean)
   bei System.Windows.Controls.Grid.MeasureCellsGroup(Int32, System.Windows.Size, Boolean, Boolean, Boolean ByRef)
   bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Control.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei MS.Internal.Helper.MeasureElementWithSingleChild(System.Windows.UIElement, System.Windows.Size)
   bei System.Windows.Controls.ContentPresenter.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.DockPanel.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Grid.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Controls.Border.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Documents.AdornerDecorator.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Window.MeasureOverrideHelper(System.Windows.Size)
   bei System.Windows.Window.MeasureOverride(System.Windows.Size)
   bei System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   bei System.Windows.UIElement.Measure(System.Windows.Size)
   bei System.Windows.Interop.HwndSource.Process_WM_SIZE(System.Windows.UIElement, IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr)
   bei System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
   bei MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
   bei MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr, Int32, IntPtr, IntPtr)
   bei MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

@tom-englert
Copy link
Collaborator

Since there is only system code in the stack trace, there is nothing I can do about this.
I've created an issue here: dotnet/wpf#5428
@systolan maybe you can provide some more input, like a sample project to reproduce the issue, and some more info about the environment you are using.

@Nisden
Copy link

Nisden commented Oct 29, 2021

Getting the same crash

VS: 2019 Community Edition
Windows: Microsoft Windows 10 Business - 10.0.19043 Build 19043

Project is part of a large solution with about 10 projects, all of them are .NET 5 either Web or Class Libraries.
There are resx files in multiple of the projects.

Application: devenv.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: System.ArgumentNullException
   at System.Windows.Automation.Peers.DataGridItemAutomationPeer..ctor(System.Object, System.Windows.Automation.Peers.DataGridAutomationPeer)
   at System.Windows.Automation.Peers.DataGridAutomationPeer.CreateItemAutomationPeer(System.Object)
   at System.Windows.Automation.Peers.ItemsControlAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.DataGridAutomationPeer.GetChildrenCore()
   at System.Windows.Automation.Peers.AutomationPeer.EnsureChildren()
   at System.Windows.Automation.Peers.AutomationPeer.GetChildren()
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.isDescendantOf(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.ValidateConnected(System.Windows.Automation.Peers.AutomationPeer)
   at MS.Internal.Automation.ElementProxy.StaticWrap(System.Windows.Automation.Peers.AutomationPeer, System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.ProviderFromPeer(System.Windows.Automation.Peers.AutomationPeer)
   at System.Windows.Automation.Peers.AutomationPeer.RaisePropertyChangedEvent(System.Windows.Automation.AutomationProperty, System.Object, System.Object)
   at System.Windows.Automation.Peers.ComboBoxAutomationPeer.RaiseValuePropertyChangedEvent(System.String, System.String)
   at System.Windows.Controls.ComboBox.OnTextChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   at System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty, Boolean)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean)
   at System.Windows.Data.BindingExpression.TransferValue(System.Object, Boolean)
   at System.Windows.Data.BindingExpression.Activate(System.Object)
   at System.Windows.Data.BindingExpression.OnDataContextChanged(System.Windows.DependencyObject)
   at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.Data.BindingExpression.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependentList.InvalidateDependents(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   at System.Windows.TreeWalkHelper.OnInheritablePropertyChanged(System.Windows.DependencyObject, System.Windows.InheritablePropertyChangeInfo, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.InheritablePropertyChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean)
   at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   at System.Windows.DependencyObject.SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean)
   at System.Windows.Controls.ContentPresenter.OnContentChanged(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.FrameworkElement.OnPropertyChanged(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   at System.Windows.DependencyObject.InvalidateProperty(System.Windows.DependencyProperty, Boolean)
   at System.Windows.Data.BindingExpressionBase.Invalidate(Boolean)
   at System.Windows.Data.BindingExpression.TransferValue(System.Object, Boolean)
   at System.Windows.Data.BindingExpression.HandlePropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.Data.BindingExpressionBase.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.Data.BindingExpression.OnPropertyInvalidation(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependentList.InvalidateDependents(System.Windows.DependencyObject, System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.NotifyPropertyChange(System.Windows.DependencyPropertyChangedEventArgs)
   at System.Windows.DependencyObject.UpdateEffectiveValue(System.Windows.EntryIndex, System.Windows.DependencyProperty, System.Windows.PropertyMetadata, System.Windows.EffectiveValueEntry, System.Windows.EffectiveValueEntry ByRef, Boolean, Boolean, System.Windows.OperationType)
   at System.Windows.TreeWalkHelper.InvalidateTreeDependentProperty(System.Windows.TreeChangeInfo, System.Windows.DependencyObject, MS.Internal.FrameworkObject ByRef, System.Windows.DependencyProperty, System.Windows.FrameworkPropertyMetadata, System.Windows.Style, System.Windows.Style, System.Windows.ChildRecord ByRef, Boolean, Boolean, Boolean, Boolean)
   at System.Windows.TreeWalkHelper.InvalidateTreeDependentProperties(System.Windows.TreeChangeInfo, System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Windows.Style, System.Windows.Style, System.Windows.ChildRecord ByRef, Boolean, Boolean, Boolean, Boolean)
   at System.Windows.FrameworkElement.InvalidateTreeDependentProperties(System.Windows.TreeChangeInfo, Boolean, Boolean)
   at System.Windows.FrameworkElement.OnAncestorChangedInternal(System.Windows.TreeChangeInfo)
   at System.Windows.TreeWalkHelper.OnAncestorChanged(System.Windows.DependencyObject, System.Windows.TreeChangeInfo, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkLogicalChildren(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Collections.IEnumerator)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkLogicalChildren(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Collections.IEnumerator)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkLogicalChildren(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Collections.IEnumerator)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]]._VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].VisitNode(System.Windows.DependencyObject, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].WalkFrameworkElementLogicalThenVisualChildren(System.Windows.FrameworkElement, Boolean)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].IterateChildren(System.Windows.DependencyObject)
   at System.Windows.DescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean)
   at MS.Internal.PrePostDescendentsWalker`1[[System.Windows.TreeChangeInfo, PresentationFramework, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35]].StartWalk(System.Windows.DependencyObject, Boolean)
   at System.Windows.TreeWalkHelper.InvalidateOnTreeChange(System.Windows.FrameworkElement, System.Windows.FrameworkContentElement, System.Windows.DependencyObject, Boolean)
   at System.Windows.FrameworkElement.OnVisualParentChanged(System.Windows.DependencyObject)
   at System.Windows.Media.Visual.FireOnVisualParentChanged(System.Windows.DependencyObject)
   at System.Windows.Media.Visual.RemoveVisualChild(System.Windows.Media.Visual)
   at System.Windows.Media.VisualCollection.DisconnectChild(Int32)
   at System.Windows.Media.VisualCollection.InternalRemove(System.Windows.Media.Visual)
   at System.Windows.Controls.UIElementCollection.RemoveNoVerify(System.Windows.UIElement)
   at System.Windows.Controls.VirtualizingStackPanel.DisconnectRecycledContainers()
   at System.Windows.Controls.VirtualizingStackPanel.MeasureOverrideImpl(System.Windows.Size, System.Nullable`1<Double> ByRef, System.Collections.Generic.List`1<Double> ByRef, System.Nullable`1<Double> ByRef, Boolean)
   at System.Windows.Controls.VirtualizingStackPanel.MeasureOverride(System.Windows.Size)
   at System.Windows.Controls.Primitives.DataGridRowsPresenter.MeasureOverride(System.Windows.Size)
   at System.Windows.FrameworkElement.MeasureCore(System.Windows.Size)
   at System.Windows.UIElement.Measure(System.Windows.Size)
   at System.Windows.ContextLayoutManager.UpdateLayout()
   at System.Windows.ContextLayoutManager.UpdateLayoutCallback(System.Object)
   at System.Windows.Media.MediaContext+InvokeOnRenderCallback.DoWork()
   at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
   at System.Windows.Media.MediaContext.RenderMessageHandlerCore(System.Object)
   at System.Windows.Media.MediaContext.RenderMessageHandler(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.DispatcherOperation.InvokeImpl()
   at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(System.Object)
   at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(System.Object)
   at System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   at System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object)
   at MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext, System.Threading.ContextCallback, System.Object)
   at System.Windows.Threading.DispatcherOperation.Invoke()
   at System.Windows.Threading.Dispatcher.ProcessQueue()
   at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

@systolan
Copy link
Author

WFP team seems to target a fix for 7.0.0, Oh my, this is a long run...
dotnet/wpf#5428

@tom-englert
Copy link
Collaborator

@madskristensen does something that crashes Visual Studio really has such a low prio at Microsoft?

@EmilAlipiev
Copy link

I get this crash also in Blazor serverside project on .net 6. I translate 10 sentences and when I press "apply all", it crashes everytime

@tom-englert
Copy link
Collaborator

@EmilAlipiev Since this bug will be only fixed in .net 7, that's expected.

@jbennink
Copy link

jbennink commented Jun 7, 2022

Came here for the same reason. Since I noticed a remark about scrolling I first moved the scrollbar to the last/lowest position and then tried the translate and then I don't get a crash.

@aaronhudon-pq
Copy link

This is happening to me every time now... argh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants