Application crash with Video Components (SDK)

Hello,

We’re excpeiancing an application crash while running Video Compenents within the SDK. Even samples found in the Milestone SDK folder.

The Milestone client is working just fine - but anything running with the SDK crashes with the following error in the eventlog:

PlaybackWpfUser.exe

Framework: v4.0.30319

System.Runtime.InteropServices.COMException

System.Windows.Media.Composition.DUCE+Channel.SyncFlush()

System.Windows.Interop.HwndTarget.UpdateWindowSettings(Boolean, System.Nullable`1)

System.Windows.Interop.HwndTarget.UpdateWindowPos(IntPtr)

System.Windows.Interop.HwndTarget.HandleMessage(MS.Internal.Interop.WindowMessage, IntPtr, IntPtr)

System.Windows.Interop.HwndSource.HwndTargetFilterMessage(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

MS.Win32.HwndWrapper.WndProc(IntPtr, Int32, IntPtr, IntPtr, Boolean ByRef)

MS.Win32.HwndSubclass.DispatcherCallbackOperation(System.Object)

System.Windows.Threading.ExceptionWrapper.InternalRealCall(System.Delegate, System.Object, Int32)

System.Windows.Threading.ExceptionWrapper.TryCatchWhen(System.Object, System.Delegate, System.Object, Int32, System.Delegate)

System.Windows.Threading.Dispatcher.LegacyInvokeImpl(System.Windows.Threading.DispatcherPriority, System.TimeSpan, System.Delegate, System.Object, Int32)

MS.Win32.HwndSubclass.SubclassWndProc(IntPtr, Int32, IntPtr, IntPtr)

Running WinDiag bring the following error:

0XE06D7363

System.IO.FileNotFoundException

System.Runtime.InteropServices.COMException

0XC000041D

It happens only on this specific mechine. Other machines doesn’t expriencing this. (Same os, type, server/sdk version, etc).

It runs both the Server and the Applications.

System Info:

OS Name: ‏‏Microsoft Windows 10 Pro

OS Version: 10.0.19042 N/A Build 19042

System Manufacturer: LENOVO

System Model: 82L9

System Type: x64-based PC

Processor(s): 1 Processor(s) Installed.

          \[01\]: Intel64 Family 6 Model 140 Stepping 1 GenuineIntel ~3302 Mhz

Total Physical Memory: 16,183 MB

Please advice.

Is this MIP SDK 2021R1? (If no, what version)

Does the crash happen at startup? Does the crash happen when connecting to camera or something else?

Ideas:

Framework: v4.0.30319 seems very old, it should be newer (if not because you are using a very old MIP SDK). Please try with 4.7 (I am in doubt whether you can get a report mentioning an older Framework even if using 4.7 when building.) Let me know what you observe.

Some crashes are caused by the hardware acceleration capabilities if the graphics driver on the PC is not up to date, please check and upgrade graphics drivers.

Yes. Sorry. I forgot to mention it.

Both server and sdk are the newest (2021 R1) and placed on the same machine (its isolated).

The crash happened when adding the camera to the viewer.

The connection to the server end successfully, same as getting a list of all the available cameras.

With this information I think it get very likely that a graphics drivers update will help you, let me know if it does.

We did check it. It has NVIDIA GeForce MX450, and the nvidia control panel show it has the latest driver installed.

But I will check it again just to be sure. Thank you.

It was indeed in the graphics.

My co-worker found this article: https://supportcommunity.milestonesys.com/s/article/run-Smart-Client-on-Nvidia-Optimus-hybrid-cards?language=en_US

He changed the settings and its working now!

Thank you.