TabItem: fix StackOverflowException in OnPreviewGotKeyboardFocus - #11680
Open
etvorun wants to merge 1 commit into
Open
TabItem: fix StackOverflowException in OnPreviewGotKeyboardFocus#11680etvorun wants to merge 1 commit into
etvorun wants to merge 1 commit into
Azure Pipelines / dotnet-wpf CI
failed
Jun 2, 2026 in 12m 8s
Build #20260601.7 had test failures
Details
- Failed: 2 (0.00%)
- Passed: 49,014 (99.87%)
- Other: 62 (0.13%)
- Total: 49,078
Annotations
azure-pipelines / dotnet-wpf CI
Wpf.UnitTests.Controls.TabItemTests.OnPreviewGotKeyboardFocus_NoStackOverflow_WhenGotKeyboardFocusRedirectsFocusToTabItem
System.IO.FileNotFoundException : Could not load file or assembly 'UIAutomationProvider, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
Raw output
at System.Windows.Controls.TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\TextBox.cs:line 1013
at System.Windows.Controls.TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\TextBox.cs:line 1013
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 1713
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 1528
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 813
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 418
at MS.Internal.Documents.UndoManager.AttachUndoManager(DependencyObject scope, UndoManager undoManager) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Documents\UndoManager.cs:line 107
at System.Windows.Documents.TextContainer.EnableUndo(FrameworkElement uiScope) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Documents\TextContainer.cs:line 178
at System.Windows.Documents.TextEditor..ctor(ITextContainer textContainer, FrameworkElement uiScope, Boolean isUndoEnabled) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\windows\Documents\TextEditor.cs:line 61
at System.Windows.Controls.Primitives.TextBoxBase.InitializeTextContainer(TextContainer textContainer) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\Primitives\TextBoxBase.cs:line 1438
at System.Windows.Controls.TextBox..ctor() in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\TextBox.cs:line 92
at Wpf.UnitTests.Controls.TabItemTests.OnPreviewGotKeyboardFocus_NoStackOverflow_WhenGotKeyboardFocusRedirectsFocusToTabItem() in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\tests\UnitTests\PresentationFramework.Tests\Controls\TabItemTests.cs:line 37
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
azure-pipelines / dotnet-wpf CI
Wpf.UnitTests.Controls.TabItemTests.OnPreviewGotKeyboardFocus_NoStackOverflow_WhenGotKeyboardFocusRedirectsFocusToTabItem
System.IO.FileNotFoundException : Could not load file or assembly 'UIAutomationProvider, Version=11.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
Raw output
at System.Windows.Controls.TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\TextBox.cs:line 1013
at System.Windows.Controls.TextBox.OnPropertyChanged(DependencyPropertyChangedEventArgs e) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\TextBox.cs:line 1013
at System.Windows.DependencyObject.NotifyPropertyChange(DependencyPropertyChangedEventArgs args) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 1713
at System.Windows.DependencyObject.UpdateEffectiveValue(EntryIndex entryIndex, DependencyProperty dp, PropertyMetadata metadata, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 1528
at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 813
at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\WindowsBase\System\Windows\DependencyObject.cs:line 418
at MS.Internal.Documents.UndoManager.AttachUndoManager(DependencyObject scope, UndoManager undoManager) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\MS\Internal\Documents\UndoManager.cs:line 107
at System.Windows.Documents.TextContainer.EnableUndo(FrameworkElement uiScope) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Documents\TextContainer.cs:line 178
at System.Windows.Documents.TextEditor..ctor(ITextContainer textContainer, FrameworkElement uiScope, Boolean isUndoEnabled) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\windows\Documents\TextEditor.cs:line 61
at System.Windows.Controls.Primitives.TextBoxBase.InitializeTextContainer(TextContainer textContainer) in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\Primitives\TextBoxBase.cs:line 1438
at System.Windows.Controls.TextBox..ctor() in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\src\PresentationFramework\System\Windows\Controls\TextBox.cs:line 92
at Wpf.UnitTests.Controls.TabItemTests.OnPreviewGotKeyboardFocus_NoStackOverflow_WhenGotKeyboardFocusRedirectsFocusToTabItem() in D:\a\_work\1\s\src\Microsoft.DotNet.Wpf\tests\UnitTests\PresentationFramework.Tests\Controls\TabItemTests.cs:line 37
at System.Reflection.MethodBaseInvoker.InterpretedInvoke_Method(Object obj, IntPtr* args)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Loading