ArgumentOutOfRangeException and InvalidOperationException

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
spitzna
Posts: 29
Joined: Mon Jul 04, 2016 2:30 pm

ArgumentOutOfRangeException and InvalidOperationException

Post by spitzna » Mon Oct 24, 2016 2:07 pm

Hello,

today i found maybe two little bugs in v7.2.1.1 for Windows Forms in ZoomToFit() and i can reproduce it.
For the first I have increased the my refresh time of Chart update and it works stable, when i came near to 1ms refresh time it crashes.

AssemblyResolve: System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Auflistung sein.
Parametername: index
bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)AssemblyResolve: System.ArgumentOutOfRangeException: Der Index lag außerhalb des Bereichs. Er darf nicht negativ und kleiner als die Auflistung sein.
Parametername: index
bei System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)AssemblyResolve: System.InvalidOperationException: Die Auflistung wurde geändert. Der Enumerationsvorgang kann möglicherweise nicht ausgeführt werden.
bei System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)Timestamp: 2016-10-24 14:21:16
Exception: System.InvalidOperationException: Die Auflistung wurde geändert. Der Enumerationsvorgang kann möglicherweise nicht ausgeführt werden.
bei System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
bei System.Collections.Generic.List`1.Enumerator.MoveNextRare()
bei System.Collections.Generic.List`1.Enumerator.MoveNext()
bei Arction.RenderingEngine.DrawData.Dispose(Object dd)
bei Arction.WinForms.Charting.Axes.AxisX.LXB()
bei Arction.WinForms.Charting.Views.ViewXY.ViewXY.GZB()
bei Arction.WinForms.Charting.Views.ViewXY.ViewXY.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
bei Arction.WinForms.Charting.Axes.AxisBase.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
bei Arction.WinForms.Charting.Axes.AxisY.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
bei Arction.WinForms.Charting.Axes.AxisBase.set_Maximum(Double value)
bei Arction.WinForms.Charting.Axes.AxisBase.SetRange(Double minimum, Double maximum)
bei Arction.WinForms.Charting.Axes.AxisY.CHC(Boolean A, Double B, Int32 C, Boolean& F, Boolean G, Boolean H, Boolean I, Double J, Double K)
bei Arction.WinForms.Charting.Views.ViewXY.ViewXY.ZoomToFit()
bei TestGraphic.MainWindow.CalculateAndDrawGraphic(DataEventArgs e)

and

AssemblyResolve: System.InvalidOperationException: Die Auflistung wurde geändert. Der Enumerationsvorgang kann möglicherweise nicht ausgeführt werden.
bei System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)Timestamp: 2016-10-24 14:42:55
Exception: System.InvalidOperationException: Die Auflistung wurde geändert. Der Enumerationsvorgang kann möglicherweise nicht ausgeführt werden.
bei System.ThrowHelper.ThrowInvalidOperationException(ExceptionResource resource)
bei System.Collections.Generic.List`1.Enumerator.MoveNextRare()
bei System.Collections.Generic.List`1.Enumerator.MoveNext()
bei Arction.RenderingEngine.DrawData.Dispose(Object dd)
bei Arction.WinForms.Charting.Axes.AxisX.LXB()
bei Arction.WinForms.Charting.Views.ViewXY.ViewXY.GZB()
bei Arction.WinForms.Charting.Views.ViewXY.ViewXY.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
bei Arction.WinForms.Charting.Axes.AxisBase.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
bei Arction.WinForms.Charting.Axes.AxisY.ChildPropertyChanged(Object relayer, Object source, UInt32 flags, String param)
bei Arction.WinForms.Charting.Axes.AxisBase.set_Maximum(Double value)
bei Arction.WinForms.Charting.Axes.AxisBase.SetRange(Double minimum, Double maximum)
bei Arction.WinForms.Charting.Axes.AxisY.CHC(Boolean A, Double B, Int32 C, Boolean& F, Boolean G, Boolean H, Boolean I, Double J, Double K)
bei Arction.WinForms.Charting.Views.ViewXY.ViewXY.ZoomToFit()
bei TestGraphic.MainWindow.CalculateAndDrawGraphic(DataEventArgs e)

l.g.
André

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: ArgumentOutOfRangeException and InvalidOperationExceptio

Post by ArctionPasi » Tue Oct 25, 2016 8:11 am

Hi Spitzna,

With this info it seems we can't reproduce the problem or track it down.

It almost seems that some other thread is manipulating the chart at the same time it's being rendered. Can you check you have used Control.Invoke if you are updating the chart from background thread?

Please send us a small project to reproduce the issue.
LightningChart Support Team, PT

Post Reply