Skip to content

LibVLCSharp.Shared.VLCException: Could not create Direct3D11 device : No compatible adapter found. O

Hi,

Summary

I am receiving below exception for few desktops for the UWP platform. For your reference, I am facing this exception for "MSI NOTEBOOK CR610" device with Windows OS version "10.0.18363"

VideoViewBase.CreateSwapChain$catch$2 () at 0 LibVLCSharp.Shared.VLCException: Could not create Direct3D11 device : No compatible adapter found. O LibVLCSharp.Platforms.UWP VideoViewBase.CreateSwapChain$catch$2 () at 0 LibVLCSharp.Platforms.UWP VideoViewBase.b__10_0 (Object s, $SizeChangedEventArgs eventArgs) at 0 LibVLCSharp.Shared.MediaPlayer LibVLCAudioResumeCb.Invoke (IntPtr data, Int64 pts) Invoke at 16707566 __Interop.Intrinsics HasThisCall__31<System.__Canon> (Void* InstParam, Object __this, IntPtr pfn, __Canon arg0, Object arg1) at 0 __Interop.ReverseComStubs Stub_5<System.__Canon> (Void* InstParam, Object __this, Void* unsafe_sender, Void* unsafe_e, IntPtr __methodPtr) Stub_5 at 16707566 System.Runtime.InteropServices McgMarshal.ThrowOnExternalCallFailed (Int32 hr, RuntimeTypeHandle typeHnd) f:\dd\ndp\fxcore\CoreRT\src\System.Private.Interop\src\Shared\McgMarshal.cs at 1189:13 __Interop

Let me know if you need further more details.

Minimal project and steps to reproduce

What is the current bug behavior?

It throws the above exception on some Windows 10 devices.

What is the expected correct behavior?

Does it work on other plaforms? Does it work with the official VLC apps?

Relevant logs and/or screenshots

Environment

  • OS: Windows 10
  • Version 10.0.18363
  • Device: MSI NOTEBOOK CR610
  • LibVLC version and architecture 3.1.1.1 and VideoLAN.LibVLC.UWP
  • LibVLCSharp version 3.4.3

Possible fixes

Do we have any fallback logic in case if VLC doesn't find any compatible adapter?

Edited by Tushar Koshti
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information