Crash with software rendering in VirtualBox

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
ShawnCG
Posts: 57
Joined: Tue Oct 15, 2013 8:31 pm

Crash with software rendering in VirtualBox

Post by ShawnCG » Fri Jul 25, 2014 12:20 am

Dear Arction Support:

I compiled the WPF demo app with v. 6.0.9 and when running on a Windows 7 virtual machine, the following crash occurred when I resized the demo window:

Application: Arction.WPF.DemoApp.exe
Framework Version: v4.0.30319
Description: The process was terminated due to an unhandled exception.
Exception Info: SharpDX.SharpDXException
Stack:
at SharpDX.Result.CheckError()
at SharpDX.Direct3D9.Device.Reset(SharpDX.Direct3D9.PresentParameters[])
at A.DI.KG(Int32, Int32)
at Arction.WPF.LightningChartUltimate.LightningChartUltimate.HNC(Double, Double)
at Arction.WPF.LightningChartUltimate.LightningChartUltimate.OnRenderSizeChanged(System.Windows.SizeChangedInfo)
at System.Windows.ContextLayoutManager.fireSizeChangedEvents()
at System.Windows.ContextLayoutManager.UpdateLayout()
at System.Windows.UIElement.UpdateLayout()
at System.Windows.Interop.HwndSource.Process_WM_SIZE(System.Windows.UIElement, IntPtr, MS.Internal.Interop.WindowMessage, IntPtr, IntPtr)
at System.Windows.Interop.HwndSource.LayoutFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)
at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)
at System.Windows.Threading.Dispatcher.InvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.HwndSubclass.DefWndProcWrapper(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(System.Windows.Interop.MSG ByRef)
at System.Windows.Threading.Dispatcher.PushFrameImpl(System.Windows.Threading.DispatcherFrame)
at System.Windows.Threading.Dispatcher.PushFrame(System.Windows.Threading.DispatcherFrame)
at System.Windows.Application.RunDispatcher(System.Object)
at System.Windows.Application.RunInternal(System.Windows.Window)
at System.Windows.Application.Run(System.Windows.Window)
at Arction.WPF.DemoApp.App.Main()

ArctionJari

Re: Crash with software rendering in VirtualBox

Post by ArctionJari » Fri Jul 25, 2014 10:56 am

Have you read this: https://www.virtualbox.org/manual/ch04.html#guestadd-3d

If the three preconditions are met, can you send us a screen capture of dxdiag tool's Display tab page? It will show what kind of display adapter is used and what features are enabled on VirtualBox.

VirtualBox's support for DirectX 9 is experimental so this kind of problem are most likely expected.

ShawnCG
Posts: 57
Joined: Tue Oct 15, 2013 8:31 pm

Re: Crash with software rendering in VirtualBox

Post by ShawnCG » Fri Jul 25, 2014 3:54 pm

In the case that crashed, there was no hardware acceleration enabled -- the charts fall back to software rendering in that case, right? Anyhow, I am aware that the DirectX support in VirtualBox is experimental, I just wanted to forward the call stack to you in case there was something on your side that you noticed.

Post Reply