Skip to content

[BUG] libSkiaSharp.dll Requires d3d12.dll in 3.119.0, Causing Crashes on Win7 #3267

@IDXGI

Description

@IDXGI

Description

Since 3.119.0-preview.1.2, SkiaSharp supports D3D12 rendering, but not all Windows has D3D12. I update to 3.119 then got a crash on Windows7.

SkiaSharp even doesn't depend on OpenGL, it can use CPU to render by default, but added a D3D12 dependency, is this a good idea?

Image
Image
Image

Code

using SkiaSharp;
namespace SkiaSharpCrashTest
{
   internal class Program
   {
      static void Main(string[] args)
      {
         Console.WriteLine("Before");

         // Force to load libSkiaSharp.dll
         var fontMgr = SKFontManager.Default;

         Console.WriteLine("After");
      }
   }
}

Expected Behavior

No response

Actual Behavior

No response

Version of SkiaSharp

3.119.0-preview.1.2

Last Known Good Version of SkiaSharp

3.118.0-preview.2.3

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

No response

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions