KirillOsenkov / MSBuildStructuredLog

A logger for MSBuild that records a structured representation of executed targets, tasks, property and item values.
MIT License
1.45k stars 196 forks source link

WPF VirtualizingStackPanel: System.ArgumentNullException: Value cannot be null. #665

Closed surajraja closed 11 months ago

surajraja commented 1 year ago


Unexpected exception. Sorry about that. Please Ctrl+C to copy this text and file an issue at https://github.com/KirillOsenkov/MSBuildStructuredLog/issues/new

System.ArgumentNullException: Value cannot be null. Parameter name: element at MS.Internal.Media.VisualTreeUtils.AsNonNullVisual(DependencyObject element, Visual& visual, Visual3D& visual3D) at System.Windows.Media.VisualTreeHelper.GetParent(DependencyObject reference) at System.Windows.Controls.VirtualizingStackPanel.FindScrollOffset(Visual v) at System.Windows.Controls.VirtualizingStackPanel.OnAnchorOperation(Boolean isAnchorOperationPending) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

OK

KirillOsenkov commented 1 year ago

oh wow, thanks for logging.

KirillOsenkov commented 1 year ago

I'm not sure what to do about this. It's a bug in WPF and it won't be fixed. Hopefully this is infrequent enough that we can just ignore.

If this continues, try turning off virtualization:

image

KirillOsenkov commented 11 months ago

Duplicate of #570