Hang

A forum dedicated to WPF version of LightningChart Ultimate.

Moderator: Queue Moderators

Post Reply
eugene.lepekhin
Posts: 1
Joined: Thu Jun 11, 2015 6:04 pm

Hang

Post by eugene.lepekhin » Thu Jun 11, 2015 6:19 pm

Hang in Arction.Direct3D9.dll!SharpDX.Direct3D9.Device.DrawIndexedPrimitive
Hi,
I have my application hang in the following scenario:
- User log in to machine, start application, open a window with lighting chart.
- Lock the machine
- Connect to machine via remote desktop
- The application is hang
The issue is pretty hard to reproduce. For example the demo application is working like a charm.
Can someone please suggest how to debug this issue?
Here is the stack on UI thread I see after attaching to the process when it already hang:

d3dref9.dll!RefRast::EvalPixelPosition() + 0xfd bytes
d3dref9.dll!RefRast::DoScanCnvTri() + 0xd0 bytes
d3dref9.dll!RefDev::DrawTriangle() + 0x7a8 bytes
d3dref9.dll!RefDev::DrawOnePrimitive() + 0xc6 bytes
d3dref9.dll!RefDev::DrawDX9ClippedTriFan() + 0x13f bytes
d3dref9.dll!RefDev::DrawPrimitives2() + 0x1057 bytes
d3dref9.dll!RefRastDrawPrimitives2() + 0xc3 bytes
d3d9.dll!SwDrawPrimitives2() + 0x7c bytes
d3d9.dll!CD3DDDIDX8::FlushStates() + 0x161 bytes
d3d9.dll!CD3DBase::FlushStatesNoThrow() + 0x22 bytes
d3d9.dll!CDriverIndexBuffer::LockI() + 0x1ca82 bytes
d3d9.dll!CDriverIndexBuffer::Lock() + 0x1cad8 bytes
d3d9.dll!CTLIndexStream::Lock() + 0x6d bytes
d3d9.dll!CD3DDDIDX8::DrawIndexPrim() + 0x86 bytes
d3d9.dll!wmt_ProcessClippedIndexedTriangleList() + 0x13c bytes
d3d9.dll!wmt_CMaskSSENumericalExceptions::~wmt_CMaskSSENumericalExceptions() + 0x20c bytes
d3d9.dll!wmt_PVFUNCS::ProcessIndexedPrimitive() + 0xda bytes
d3d9.dll!CD3DDDIDX8::ProcessIndexedPrimitiveC() + 0x11d bytes
d3d9.dll!CD3DBase::DrawIndexedPrimitive() + 0xd8 bytes
[Managed to Native Transition]
Arction.Direct3D9.dll!SharpDX.Direct3D9.Device.DrawIndexedPrimitive(SharpDX.Direct3D9.PrimitiveType arg0, int baseVertexIndex, int minVertexIndex, int numVertices, int startIndex, int primCount) + 0x9f bytes
Arction.WPF.LightningChartUltimate.dll!A.FI.UK(SharpDX.Direct3D9.VertexBuffer A, SharpDX.Direct3D9.IndexBuffer B, A.ZD C) + 0x1b5 bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.LightningChartUltimate.EKC(Arction.WPF.LightningChartUltimate.Series3D.SurfaceSeries3DBase A, out System.Collections.Generic.List<A.GD> B) + 0x1926 bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.LightningChartUltimate.DKC(out System.Collections.Generic.List<A.GD> A) + 0x602 bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.LightningChartUltimate.AJC() + 0x130d bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.LightningChartUltimate.QXB() + 0xe3a bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.LightningChartUltimate.ChildPropertyChanged(object relayer, object source, uint flags, string param) + 0x29e bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.Views.View3D.View3D.ChildPropertyChanged(object relayer, object source, uint flags, string param) + 0x333 bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.Views.ViewBase.WNB(System.Windows.Input.MouseEventArgs A, Arction.WPF.LightningChartUltimate.MouseEventType B, Arction.WPF.LightningChartUltimate.LightningChartUltimate C) + 0x86d bytes
Arction.WPF.LightningChartUltimate.dll!Arction.WPF.LightningChartUltimate.LightningChartUltimate.OnMouseDown(System.Windows.Input.MouseButtonEventArgs eventArgs) + 0x136 bytes
PresentationCore.dll!System.Windows.UIElement.OnMouseDownThunk(object sender, System.Windows.Input.MouseButtonEventArgs e) + 0x8a bytes
PresentationCore.dll!System.Windows.RoutedEventArgs.InvokeHandler(System.Delegate handler, object target) + 0x56 bytes
PresentationCore.dll!System.Windows.EventRoute.InvokeHandlersImpl(object source, System.Windows.RoutedEventArgs args, bool reRaised) + 0x270 bytes
PresentationCore.dll!System.Windows.UIElement.RaiseEventImpl(System.Windows.DependencyObject sender, System.Windows.RoutedEventArgs args) + 0x14e bytes
PresentationCore.dll!System.Windows.UIElement.RaiseTrustedEvent(System.Windows.RoutedEventArgs args) + 0x64 bytes
PresentationCore.dll!System.Windows.Input.InputManager.ProcessStagingArea() + 0x42a bytes
PresentationCore.dll!System.Windows.Input.InputProviderSite.ReportInput(System.Windows.Input.InputReport inputReport) + 0xfd bytes
PresentationCore.dll!System.Windows.Interop.HwndMouseInputProvider.ReportInput(System.IntPtr hwnd, System.Windows.Input.InputMode mode, int timestamp, System.Windows.Input.RawMouseActions actions, int x, int y, int wheel) + 0x410 bytes
PresentationCore.dll!System.Windows.Interop.HwndMouseInputProvider.FilterMessage(System.IntPtr hwnd, MS.Internal.Interop.WindowMessage msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x334 bytes
PresentationCore.dll!System.Windows.Interop.HwndSource.InputFilterMessage(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) + 0x7c bytes
WindowsBase.dll!MS.Win32.HwndWrapper.WndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam, ref bool handled) Line 345 + 0x1f bytes Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.DispatcherCallbackOperation(object o) Line 494 + 0x22 bytes Unknown
WindowsBase.dll!System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate callback, object args, int numArgs) Line 111 + 0xa bytes Unknown
WindowsBase.dll!MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(object source, System.Delegate method, object args, int numArgs, System.Delegate catchHandler) Line 41 + 0x1a bytes Unknown
WindowsBase.dll!System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority priority, System.TimeSpan timeout, System.Delegate method, object args, int numArgs) Line 1447 + 0x2bc bytes Unknown
WindowsBase.dll!MS.Win32.HwndSubclass.SubclassWndProc(System.IntPtr hwnd, int msg, System.IntPtr wParam, System.IntPtr lParam) Line 398 + 0x20 bytes Unknown
[Native to Managed Transition]
user32.dll!UserCallWinProcCheckWow() + 0x11d bytes
user32.dll!DispatchMessageWorker() + 0x12a bytes
WindowsBase.ni.dll!000007feebfc5900()
[Frames below may be incorrect and/or missing, no symbols loaded for WindowsBase.ni.dll]
WindowsBase.ni.dll!000007feebea07a8()
WindowsBase.ni.dll!000007feebea07a8()
[Managed to Native Transition]
WindowsBase.dll!System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame frame) Line 2276 Unknown
PresentationFramework.dll!System.Windows.Application.RunInternal(System.Windows.Window window) + 0x17a bytes
PresentationFramework.dll!System.Windows.Application.Run() + 0x67 bytes
ZemaxGraphicsInfo.exe!ZemaxGraphicsInfo.App.Main() + 0x77 bytes C#
mscoreei.dll!_CorExeMain() + 0x5d bytes
mscoree.dll!_CorExeMain_Exported() + 0x69 bytes
kernel32.dll!BaseThreadInitThunk() + 0xd bytes
ntdll.dll!RtlUserThreadStart() + 0x21 bytes

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

Re: Hang

Post by ArctionPasi » Sun Jun 14, 2015 9:45 pm

Hi,

please ensure you are running with the latest assembly pack v. 6.4.6. There was fixes related to remote desktop hanging lately.
LightningChart Support Team, PT

ArctionTero
Posts: 42
Joined: Thu Mar 28, 2013 9:20 am

Re: Hang

Post by ArctionTero » Mon Jun 15, 2015 10:39 am

Hi,

Try to remove one item (series, annotation, etc.) at time to see if any of them is causing the hang.

Is the stack trace always the same after the hang?
LightningChart Support Team, TK

Post Reply