SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[BUG] Blazor Wasm : The type initializer for 'SkiaSharp.SKImageInfo' threw an exception

Open tossnet opened this issue 7 months ago • 3 comments

Description

I can't find a solution to this problem on Blazor Webassembly (no problem on Blazor Server).

 The error was: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
 ---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
 ---> System.DllNotFoundException: libSkiaSharp
   at SkiaSharp.SKImageInfo..cctor()

Code

My code is on this repository: https://github.com/tossnet/Blazor-Captcha/tree/master/BlazorCaptcha

I use SkiaSharp in the projet "BlazorCaptcha" in the file Captcha.cs

and run the Blazor-Wasm-Captcha-Test project

Expected Behavior

No response

Actual Behavior

No response

Version of SkiaSharp

3.118.0-preview.2 (Next Preview)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

No response

Devices

No response

Relevant Screenshots

Image

Relevant Log Output


Code of Conduct

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

tossnet avatar Apr 02 '25 07:04 tossnet