System.AccessViolationException

Found a possible bug in LightningChart? Report it here.

Moderator: Arction_LasseP

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

System.AccessViolationException

Post by spitzna » Mon Aug 01, 2016 9:03 am

Hi,

One hour ago we downloaded and install the latest version of chart. Then i wanted to look into the new WPF Demos and viola the first example crashes (*Billion Points*).
The crash occurs on my computer with software and hardware redering (dx 9/11). Another test on a MS Surface tablet the example works.

The other examples seems to be working.

For your Information:

Code line: ExampleBillionPoints.cs row 365 >> .EndUpdate()

Exception:

System.AccessViolationException was unhandled
HResult=-2147467261
Message=Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
Source=Arction.DirectX
StackTrace:
bei SharpDX.Direct3D11.DeviceContext.Draw(Int32 vertexCount, Int32 startVertexLocation)
bei Arction.RenderingEngine11.RenderingEngine11.DrawWithDrawData(Object drawData)
bei Arction.Wpf.Charting.LightningChartUltimate.HIC(List`1 A, Int32 B, AxisX C, Double F, Double G, Boolean H, Int32 I)
bei Arction.Wpf.Charting.LightningChartUltimate.DIC(AxisX A, Double B, Double C, Int32 F, Double G, Int32 H)
bei Arction.Wpf.Charting.LightningChartUltimate.RFC()
bei Arction.Wpf.Charting.LightningChartUltimate.FSC()
bei Arction.Wpf.Charting.LightningChartUltimate.CSC()
bei Arction.Wpf.Charting.LightningChartUltimate.EndUpdate()
bei DemoAppWpf.ExampleBillionPoints.FeedData() in C:\ProgramData\Arction\LightningChart Ultimate SDK v.7\DemoAppWpf\ExampleBillionPoints.xaml.cs:Zeile 365.
bei DemoAppWpf.ExampleBillionPoints._timer_Tick(Object sender, EventArgs e) in C:\ProgramData\Arction\LightningChart Ultimate SDK v.7\DemoAppWpf\ExampleBillionPoints.xaml.cs:Zeile 373.
bei System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Windows.Threading.DispatcherOperation.Invoke()
bei System.Windows.Threading.Dispatcher.ProcessQueue()
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei DemoAppWpf.App.Main()
InnerException:

If you need further informations ask me for.

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

Re: System.AccessViolationException

Post by spitzna » Mon Aug 01, 2016 9:33 am

The same exception occurs also on some other examples like "World map"

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

Re: System.AccessViolationException

Post by ArctionPasi » Mon Aug 01, 2016 9:51 am

Thanks for reporting the problem.

To be clear, are you running with Surface Pro tablet, what model exactly? If you run the examples with a real PC, do they still crash for you?
LightningChart Support Team, PT

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

Re: System.AccessViolationException

Post by spitzna » Mon Aug 01, 2016 10:11 am

Hi,

The Demos crashes only on the real PC (Intel i5, Radeon HD6450 for Monitor 1 and Intel HD Graphics for Monitor 2). Latest graphics driver and Windows updates are fully installed.
On the Surface 2 (Intel i7 with Intel HD Graphics) no crash happens and all examples are working.

The crashes happens always when EndUpdate is called. (does not matter if a debugger is attached)

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

Re: System.AccessViolationException

Post by ArctionPasi » Mon Aug 01, 2016 6:54 pm

Unfortunately we don't have system like that here. I tested with AMD HD 4350 laptop (no intel graphics in this machine) with dual screens and it works. I open LightningChart WPF demo in VS 2013 and built the project and ran it with debugger attached. I didn't get problem.

I also tested with Nvidia GTX 960 desktop and that worked fine too.

So... did the older 7.0 work correcly in this machine?

Please uninstall LC SDK from your PC fully, and then reinstall 7.1, in case it has left some old files in the system folder.

We'd appreciate other users feedback on this matter.
LightningChart Support Team, PT

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

Re: System.AccessViolationException

Post by spitzna » Tue Aug 02, 2016 1:01 pm

Hi,

Yes all of the examples of the 7.0.x works last week.
At next i will reinstall the 7.1 with removing everythings looks like LC Sdk before installing.
I will give a Feedback if it solves or not.

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

Re: System.AccessViolationException

Post by spitzna » Tue Aug 02, 2016 2:16 pm

Hi,

Reinstallation brings not the wished resolution.

I have also testet it with new clean Windows on a different HD. Slowly i believe it's a AMD driver problem, because i found out that the
latest Driver says i have 4 graphics Cards in the PC - 2 AMD GC's and 2 Intel HDG's. :firing: This is not funny .

At first we will take it "as is" and dispose the problem by ordering a new computer without anything of AMD Hardware for me.
I think for our customers it will not be a problem, they using only NVidea high end graphics Cards.

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

Re: System.AccessViolationException

Post by ArctionPasi » Fri Aug 05, 2016 3:25 pm

Hello,

we may have found a fix to this. I'll send you download link to intermediate 7.1.1.2 build to your e-mail shortly.
LightningChart Support Team, PT

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

Re: System.AccessViolationException

Post by spitzna » Mon Aug 08, 2016 7:48 am

Hi,

many thx. i have tested the v7.1.1.2 some minutes ago. Most of the examples does now working. Thats cool.

For some the examples the AccessViolation error occurs again. I have copied stacktrace and exception Messages
below the text.
I hope this Information can helps, otherwise maybe I can made a full memory dump if needed.

Example Billion Points:

System.AccessViolationException was unhandled
HResult=-2147467261
Message=Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
Source=Arction.DirectX
StackTrace:
bei SharpDX.Direct3D11.DeviceContext.Draw(Int32 vertexCount, Int32 startVertexLocation)
bei Arction.RenderingEngine11.RenderingEngine11.DrawWithDrawData(Object drawData)
bei Arction.Wpf.Charting.LightningChartUltimate.GTC(List`1 A, Int32 B, AxisX C, Double F, Double G, Boolean H, Int32 I)
bei Arction.Wpf.Charting.LightningChartUltimate.CTC(AxisX A, Double B, Double C, Int32 F, Double G, Int32 H)
bei Arction.Wpf.Charting.LightningChartUltimate.QQC()
bei Arction.Wpf.Charting.LightningChartUltimate.YJC()
bei Arction.Wpf.Charting.LightningChartUltimate.VJC()
bei Arction.Wpf.Charting.LightningChartUltimate.EndUpdate()
bei DemoAppWpf.ExampleBillionPoints.FeedData() in C:\ProgramData\Arction\LightningChart Ultimate SDK v.7\DemoAppWpf\ExampleBillionPoints.xaml.cs:Zeile 365.
bei DemoAppWpf.ExampleBillionPoints._timer_Tick(Object sender, EventArgs e) in C:\ProgramData\Arction\LightningChart Ultimate SDK v.7\DemoAppWpf\ExampleBillionPoints.xaml.cs:Zeile 373.
bei System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.DispatcherOperation.InvokeImpl()
bei System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
bei MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
bei System.Windows.Threading.DispatcherOperation.Invoke()
bei System.Windows.Threading.Dispatcher.ProcessQueue()
bei System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
bei System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
bei System.Windows.Application.RunDispatcher(Object ignore)
bei System.Windows.Application.RunInternal(Window window)
bei DemoAppWpf.App.Main()

Example World map:

System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in Arction.DirectX.dll
Additional information: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
[Managed to Native Transition]
> Arction.DirectX.dll!SharpDX.Direct3D11.DeviceContext.Draw(int vertexCount, int startVertexLocation) Unknown
Arction.RenderingEngine11.dll!Arction.RenderingEngine11.RenderingEngine11.DrawWithDrawData(object drawData) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.TRC(Arction.Wpf.Charting.Maps.Map A, Arction.Wpf.Charting.Maps.MapLayer B, bool C, bool F, bool G, Arction.Wpf.Charting.Maps.Region H) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.RRC(Arction.Wpf.Charting.Maps.Map A, int B, int C) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.PRC(Arction.Wpf.Charting.Maps.Map A, int B, int C) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.MRC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.QQC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.YJC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.OnRenderSizeChanged(System.Windows.SizeChangedInfo sizeInfo) Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.fireSizeChangedEvents() Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayoutCallback(object arg) Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandlerCore(object resizedCompositionTarget) Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandler(object resizedCompositionTarget) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) Unknown
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) Unknown
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) Unknown
DemoAppWpf.exe!DemoAppWpf.App.Main() Unknown

Example World elevation
- map is shown, some seconds later the error occurs
- same error

Example Map with intensity series stencil:

System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in Arction.DirectX.dll
Additional information: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
[Managed to Native Transition]
> Arction.DirectX.dll!SharpDX.Direct3D11.DeviceContext.Draw(int vertexCount, int startVertexLocation) Unknown
Arction.RenderingEngine11.dll!Arction.RenderingEngine11.RenderingEngine11.DrawWithDrawData(object drawData) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.RRC(Arction.Wpf.Charting.Maps.Map A, int B, int C) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.NRC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.QQC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.YJC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.OnRender(System.Windows.Media.DrawingContext drawingContext) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!MS.Internal.Helper.ArrangeElementWithSingleChild(System.Windows.UIElement element, System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.Controls.ContentPresenter.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Border.ArrangeOverride(System.Windows.Size finalSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Control.ArrangeOverride(System.Windows.Size arrangeBounds) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!MS.Internal.Helper.ArrangeElementWithSingleChild(System.Windows.UIElement element, System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.Controls.ContentPresenter.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Border.ArrangeOverride(System.Windows.Size finalSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Control.ArrangeOverride(System.Windows.Size arrangeBounds) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Grid.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!MS.Internal.Helper.ArrangeElementWithSingleChild(System.Windows.UIElement element, System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.Controls.ContentPresenter.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Decorator.ArrangeOverride(System.Windows.Size arrangeSize) Unknown
PresentationFramework.dll!System.Windows.Documents.AdornerDecorator.ArrangeOverride(System.Windows.Size finalSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Controls.Border.ArrangeOverride(System.Windows.Size finalSize) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationFramework.dll!System.Windows.Window.ArrangeOverride(System.Windows.Size arrangeBounds) Unknown
PresentationFramework.dll!System.Windows.FrameworkElement.ArrangeCore(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.UIElement.Arrange(System.Windows.Rect finalRect) Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayoutCallback(object arg) Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandlerCore(object resizedCompositionTarget) Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandler(object resizedCompositionTarget) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) Unknown
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) Unknown
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) Unknown
DemoAppWpf.exe!DemoAppWpf.App.Main() Unknown

Example Wind data:

System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in Arction.DirectX.dll
Additional information: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
[Managed to Native Transition]
> Arction.DirectX.dll!SharpDX.Direct3D11.DeviceContext.Draw(int vertexCount, int startVertexLocation) Unknown
Arction.RenderingEngine11.dll!Arction.RenderingEngine11.RenderingEngine11.DrawWithDrawData(object drawData) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.TRC(Arction.Wpf.Charting.Maps.Map A, Arction.Wpf.Charting.Maps.MapLayer B, bool C, bool F, bool G, Arction.Wpf.Charting.Maps.Region H) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.RRC(Arction.Wpf.Charting.Maps.Map A, int B, int C) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.PRC(Arction.Wpf.Charting.Maps.Map A, int B, int C) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.MRC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.QQC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.YJC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.OnRenderSizeChanged(System.Windows.SizeChangedInfo sizeInfo) Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.fireSizeChangedEvents() Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayout() Unknown
PresentationCore.dll!System.Windows.ContextLayoutManager.UpdateLayoutCallback(object arg) Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandlerCore(object resizedCompositionTarget) Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandler(object resizedCompositionTarget) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) Unknown
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) Unknown
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) Unknown
DemoAppWpf.exe!DemoAppWpf.App.Main() Unknown

Example Vectors:

System.AccessViolationException was unhandled
Message: An unhandled exception of type 'System.AccessViolationException' occurred in Arction.DirectX.dll
Additional information: Es wurde versucht, im geschützten Speicher zu lesen oder zu schreiben. Dies ist häufig ein Hinweis darauf, dass anderer Speicher beschädigt ist.
[Managed to Native Transition]
> Arction.DirectX.dll!SharpDX.Direct3D11.DeviceContext.Draw(int vertexCount, int startVertexLocation) Unknown
Arction.RenderingEngine11.dll!Arction.RenderingEngine11.RenderingEngine11.DrawWithDrawData(object drawData) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.EUC(double A, double B, int C, int F, System.Drawing.Rectangle G, Arction.Wpf.Charting.Annotations.AnnotationXY H) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.RQC(Arction.Wpf.Charting.Axes.AxisX A, double B, double C, int F, int G, System.Drawing.Rectangle H, bool I) Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.QQC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.YJC() Unknown
Arction.Wpf.Charting.LightningChartUltimate.dll!Arction.Wpf.Charting.LightningChartUltimate.ControlLoadedWPF(object sender, System.Windows.RoutedEventArgs e) Unknown
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) Unknown
PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) Unknown
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastEvent(System.Windows.DependencyObject root, System.Windows.RoutedEvent routedEvent) Unknown
PresentationFramework.dll!System.Windows.BroadcastEventHelper.BroadcastLoadedEvent(object root) Unknown
PresentationCore.dll!MS.Internal.LoadedOrUnloadedOperation.DoWork() Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.FireLoadedPendingCallbacks() Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.FireInvokeOnRenderCallbacks() Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandlerCore(object resizedCompositionTarget) Unknown
PresentationCore.dll!System.Windows.Media.MediaContext.RenderMessageHandler(object resizedCompositionTarget) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.InvokeImpl() Unknown
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx) Unknown
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!MS.Internal.CulturePreservingExecutionContext.Run(MS.Internal.CulturePreservingExecutionContext executionContext, System.Threading.ContextCallback callback, object state) Unknown
WindowsBase.dll!System.Windows.Threading.DispatcherOperation.Invoke() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.ProcessQueue() Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.WndProcHook(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.TryCatchWhen(object source, System.Delegate callback, object args, int numArgs, System.Delegate catchHandler) Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) Unknown
[Native to Managed Transition]
[Managed to Native Transition]
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) Unknown
PresentationFramework.dll!System.Windows.Application.RunDispatcher(object ignore) Unknown
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) Unknown
DemoAppWpf.exe!DemoAppWpf.App.Main() Unknown

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

Re: System.AccessViolationException

Post by ArctionPasi » Tue Aug 09, 2016 1:11 pm

Fixing in blind. I sent new version 7.1.1.3 for your tests.
LightningChart Support Team, PT

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

Re: System.AccessViolationException

Post by spitzna » Tue Aug 09, 2016 3:01 pm

Hi,

Many thx. At my computer, same resolution with the v7.1.1.3. The examples crashes with same exceptions.
At the Computers of my colleagues all examples are working without any problems. Mmmmhhhh the all have an NVidea GC.
In my computer does a poor Radeon working. For my opinion i think it seems to be a AMD driver problem.

So i don't know if we searching for an bug which is not a bug and we can't solve because it lays in the driver layer or is an hardware issue.
Are there some user who reported the same Problem?

Tommorow morning i will made a full memory dump and put it on my Server for download. I think this do it easier, because you have the code
and the PDB's for debugging.

ahe
Posts: 51
Joined: Tue Aug 11, 2015 4:33 pm
Location: Düsseldorf, DE

Re: System.AccessViolationException

Post by ahe » Tue Aug 09, 2016 3:29 pm

Hallo spitzna,
I seem to have the same problem, but with an NVidia GT730 and using WinForms/ViewXY/IntensityGrid. StackTrace looks similar though (AccessViolation in Arction.DirectX.dll ie. SharpDX)
I'm already in contact with Pasi, but wanted to let you know that you're not alone ;-)
Gruß, Andreas

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

Re: System.AccessViolationException

Post by spitzna » Wed Aug 10, 2016 8:10 am

Hi Andreas,

ok, then let's help where we can.

@Pasi:
I upload the memory dump to my server for the DemoAppWpf with v7.1.1.3. (compiled as debug)
You can download the dump here:
http://www.repvalue.de/DemoAppWpf_with_ ... -08-10.zip
Hope it helps some more.

User avatar
ArctionLasse
Posts: 26
Joined: Fri Mar 27, 2015 11:23 am

Re: System.AccessViolationException

Post by ArctionLasse » Thu Aug 11, 2016 9:43 am

Hi,

Just a shot in a dark, but could you check if you have PlaysTV or other Raptr software running and if you do, shut them down and retry to crash the LC.
There has been some problem with those and some other software that capture and/or modify the image after drawing. PlaysTV is installed by default as a bundle on the new AMD driver package and AMD Gaming Evolved is created by Raptr, so at least with AMD cards ther's probably at least one of them running.
LightningChart Support Team, LV

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

Re: System.AccessViolationException

Post by spitzna » Thu Aug 11, 2016 1:48 pm

Hi Lasse,

I have taken a look in the program folders and installed programm list, I've found no installed AMD crapware like PlaysTV and other Raptr things. Only AMD catalyst control center and AMD install Manager is installed.
On the PC with the problem is currently only Windows 10 Ultimate, Office 2016, complete VST 2015 Ultimate, Snoop, SVN, Winmerge, Pulse and Resharper installed.

ahe
Posts: 51
Joined: Tue Aug 11, 2015 4:33 pm
Location: Düsseldorf, DE

Re: System.AccessViolationException

Post by ahe » Fri Aug 12, 2016 3:33 pm

I just tested 7.1.2 and I could not get it to crash so far. Which is nice :-)

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

Re: System.AccessViolationException

Post by spitzna » Tue Aug 16, 2016 2:58 pm

Hi,

The examples in DemoAppWpf i have listet, crashes with AccessViolation again on my PC. Therefore i thinks it's a problem of my GC.

The functions in chart we use are working, only the bar series we use does not with 7.1.2. This is reproducable on several computers here in company.
Thursday morning when i'am back at company i will made a new bug entry with some screenshots of my test app and describe the problem in detail.

For the rest of the day, have a nice day.

l.g.
André

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

Re: System.AccessViolationException

Post by ArctionPasi » Thu Sep 01, 2016 4:31 pm

Spitzna,

can you please reply if the problem still persists? If it does, please send a small project to reproduce the issue.
LightningChart Support Team, PT