System.Runtime.InteropServices.COMException when make chart

Found a possible bug in LightningChart? Report it here.

System.Runtime.InteropServices.COMException when make chart

Postby bool001 » Mon Jul 30, 2018 12:32 pm

Hi, I test my application on a laptop, when create a chart the UI is STUCK. And I get a exception with my bug reportor, below it is:

OS: Windows
Windows: 6.3.17134.0
Date: 2018-07-30T11:52:55.2269912Z

System.Runtime.InteropServices.COMException: UCEERR_RENDERTHREADFAILURE (HRESULT:0x88980406)
在 System.Windows.Media.Composition.DUCE.Channel.SyncFlush()
在 System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean enableRenderTarget, Nullable`1 channelSet)
在 System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr lParam)
在 System.Windows.Interop.HwndTarget.OnWindowPosChanging(IntPtr lParam)
在 System.Windows.Interop.HwndTarget.HandleMessage(WindowMessage msg, IntPtr wparam, IntPtr lparam)
在 System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
在 MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

And below is my laptop information:
CPU: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz 2.50 GHz
RAM: 8.00 GB (7.48 GB Available)
bool001
 
Posts: 9
Joined: Wed Apr 04, 2018 3:06 am

Re: System.Runtime.InteropServices.COMException when make ch

Postby ArctionPasi » Mon Jul 30, 2018 5:35 pm

Hi,

most likely reason for this, is to forget to Control.Invoke (WinForms) or Dispatcher.Invoke (WPF) when updating data from background thread to chart. For correct usage, please see ExampleThreadMultiChannel example in the demo applications.
LightningChart Support Team, PT
User avatar
ArctionPasi
 
Posts: 1362
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: System.Runtime.InteropServices.COMException when make ch

Postby bool001 » Thu Aug 02, 2018 3:15 am

ArctionPasi wrote:Hi,

most likely reason for this, is to forget to Control.Invoke (WinForms) or Dispatcher.Invoke (WPF) when updating data from background thread to chart. For correct usage, please see ExampleThreadMultiChannel example in the demo applications.


Hi, thank you.
I provide some details:
1. My program use the LightingChart WPF lib.
2. There is no problem that run my program on other computers.
3. When run LightingChart official demo on this laptop, also occur same problem that it get stuck when create charts.
4. LightingChart Winform lib is OK, but WPF libs(bindable, Semi-bindable, non-bindable) all occur the problem.

Below is the detail of my laptop:
Manufacturer: LENOVO,
DeviceModel: 20J6A012CD,
TotalPhysicalMemoryInGB: 7GB,
OSVersion: Microsoft Windows NT 6.2.9200.0,
Is64BitOS: True,
ProcessorCount: 4,
CpuInfo: Intel(R) Core(TM) i5-7300HQ CPU @ 2.50GHz,
VideoControllerInfo: Intel(R) HD Graphics 630

I'm very grade to upload the demonstrate video if you leave me a mail address.
bool001
 
Posts: 9
Joined: Wed Apr 04, 2018 3:06 am

Re: System.Runtime.InteropServices.COMException when make ch

Postby ArctionPasi » Mon Aug 06, 2018 7:03 am

Hello,

so it seems to be a computer-specific problem. First, make sure all Windows Updates have been installed, and Intel drivers updated.

If the problem doesn't solve, please send us email on support [at} arction.com, and we'll give more detailed support there :)
LightningChart Support Team, PT
User avatar
ArctionPasi
 
Posts: 1362
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland

Re: System.Runtime.InteropServices.COMException when make ch

Postby bool001 » Sat Aug 11, 2018 4:31 am

My laptop has two video card drivers. Once disabled one, the chart is available now. I don't why. I look forward to get more detail about this problem. thank you!
bool001
 
Posts: 9
Joined: Wed Apr 04, 2018 3:06 am

Re: System.Runtime.InteropServices.COMException when make ch

Postby warnerwanton » Tue Jan 29, 2019 11:13 am

When an error occurs during object creation, a COMException (defined in System.Runtime.InteropServices) is thrown. The UnknownWrapper class is a helper class designed to be exposed to COM as a VARIANT. When you use the late-binding mechanism, you can avoid this behavior if you pass the parameters as UnKnownWrapper to methods that have parameters of type IUnKnown. The UnKnownWrapper constructor initializes a new instance of the UnknownWrapper class with the object that will be wrapped.
warnerwanton
 
Posts: 1
Joined: Tue Jan 29, 2019 11:11 am


Return to LightningChart Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron