Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

Hi,


We have received several bug reports from customers on these crashes and have witnessed them ourselves as well.  So far it seems to happen at random with no reproducible steps.


Here are some of the stack traces:


Exception: System.ArgumentOutOfRangeException
Message
Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index
Stack Trace
at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderBackgrounds(DrawingContext dc)
at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderBackgrounds()
at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.OnRender(DrawingContext dc)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.ScrollContentPresenter.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
at System.Windows.Controls.ScrollViewer.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Grid.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Border.ArrangeOverride(Size finalSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.Controls.Control.ArrangeOverride(Size arrangeBounds)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at MS.Internal.Helper.ArrangeElementWithSingleChild(UIElement element, Size arrangeSize)
at System.Windows.Controls.ContentPresenter.ArrangeOverride(Size arrangeSize)
at System.Windows.FrameworkElement.ArrangeCore(Rect finalRect)
at System.Windows.UIElement.Arrange(Rect finalRect)
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
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)


 Stack Trace
 at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderVerticalLines(DrawingContext dc, VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders(DrawingContext dc)
 at Syncfusion.Windows.Controls.Grid.GridControlBase.RenderCellBorders(DrawingContext dc)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders()
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.OnRender(DrawingContext dc)
 at Syncfusion.Windows.Controls.Grid.GridControlBase.OnRender(DrawingContext dc)
 at System.Windows.UIElement.Arrange(Rect finalRect)
 at System.Windows.ContextLayoutManager.UpdateLayout()
 at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
 at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
 at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
 at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
 at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
 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)


Stack Trace
 at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderVerticalLines(DrawingContext dc, VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders(DrawingContext dc)
 at Syncfusion.Windows.Controls.Grid.GridControlBase.RenderCellBorders(DrawingContext dc)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders()
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.OnRender(DrawingContext dc)
 at System.Windows.UIElement.Arrange(Rect finalRect)
 at System.Windows.ContextLayoutManager.UpdateLayout()
 at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
 at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
 at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
 at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
 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)

Stack Trace

at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)

at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderVerticalLines(DrawingContext dc, VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)

at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders(DrawingContext dc)

at Syncfusion.Windows.Controls.Grid.GridControlBase.RenderCellBorders(DrawingContext dc)

at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders()

at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.OnRender(DrawingContext dc)

at System.Windows.UIElement.Arrange(Rect finalRect)

at System.Windows.ContextLayoutManager.UpdateLayout()

at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)

at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()

 Stack Trace
 at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderVerticalLines(DrawingContext dc, VisibleLinesCollection visibleRows, VisibleLinesCollection visibleColumns)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders(DrawingContext dc)
 at Syncfusion.Windows.Controls.Grid.GridControlBase.RenderCellBorders(DrawingContext dc)
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.RenderCellBorders()
 at Syncfusion.Windows.Controls.Cells.VirtualizingCellsControl.OnRender(DrawingContext dc)
 at Syncfusion.Windows.Controls.Grid.GridControlBase.OnRender(DrawingContext dc)
 at System.Windows.UIElement.Arrange(Rect finalRect)
 at System.Windows.ContextLayoutManager.UpdateLayout()
 at System.Windows.ContextLayoutManager.UpdateLayoutCallback(Object arg)
 at System.Windows.Media.MediaContext.InvokeOnRenderCallback.DoWork()
 at System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks()
 at System.Windows.Media.MediaContext.RenderMessageHandlerCore(Object resizedCompositionTarget)
 at System.Windows.Media.MediaContext.RenderMessageHandler(Object resizedCompositionTarget)
 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)

If you have any info on how to catch and mitigate these exceptions or whether the newest version of your product is free from these index out of range issues, please let me know.