You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] DllNotFoundException when trying to invoke Skia in a Wasi Wasm Console app #3015
When trying to run a Wasi Console app that depends on SkiaSharp. It builds the single-file wasm just fine. I added the nuget package for the NativeAssets.WebAssembly. But when attempting to run, it throws:
"System.TypeInitializationException: TypeInitialization_Type, SkiaSharp.SKImageInfo --- System.DllNotFoundException: libSkiaSharp at SkiaSharp.SKImageInfo..cctor()
The NativeAssets has build targets for Blazor, but seems to be missing them for Wasi Wasm apps.
I'm on .NET 9 preview 6. Is there some workaround or something I'm missing? I attached a small repro project. I included the wasm file in case that's useful. If you're not familiar with wasi or wasitime, see in the instructions in the readme. WasiSkiaSharpRepro.zip
Hmm! Good question. I was assuming the issue for me was because the NativeAssets package didn't include targets for wasi wasm. But maybe it's a larger issue with SkiaSharp in general?
Activity
SashelI commentedon Sep 24, 2024
Hi @enghch , I have a similar issue in Unity (see #3016 ) Do you think it's linked ?
enghch commentedon Sep 24, 2024
Hmm! Good question. I was assuming the issue for me was because the NativeAssets package didn't include targets for wasi wasm. But maybe it's a larger issue with SkiaSharp in general?
mattleibow commentedon Nov 26, 2024
The 3.x series should be including the native assets. Have you tried that yet?
ai-triage: classify #3015
ai-repro: reproduce #3015
ai-triage: classify #3015
ai-repro: reproduce #3015
ai-triage: classify #3015
ai-repro: reproduce #3015
ai-triage: backfill #3279, #1902, #3015, #2862, #3005, #3638, #2832, #…