-
Notifications
You must be signed in to change notification settings - Fork 545
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Unable to load library 'libSkiaSharp'. #2758
Comments
This is the complete call stack: Exception information:
|
Is the libSkiaSharp.dll file in the bin folder somewhere? How are you publishing/deploying? Are you able to share a msbuild binlog so I can see why the native binary is not reaching the final output. If you run the app locally after publishing, does it work? |
@mattleibow We're also seeing this error but when trying out It's a Haven't tried publishing yet as we're seeing this error with regular Didn't want to bother early because it's still a preview. But can create a minimal repro if that's already expected to work properly. |
hi |
Hi @jakobeazy , How you have solved this issue, have you changed package and used another package for svg generation |
Yes, i changed the nuget package from svg.skia to svg. |
@romansp it should be working since there should be no changes for wasm in 3.x Please attach a repro/sample so I can have a look. |
@mattleibow I have the same issue when trying to run a Wasi Console app that depends on SkiaSharp. It builds the single-file wasm just fine. But when attempting to run, it throws:
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. |
I think this was fixed in the latest 2.x and 3.x releases. Please let me know if this is still happening. |
Hi @jakobeazy. We have added the |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. If it is closed, feel free to comment when you are able to provide the additional information and we will re-investigate. |
Description
using svg.skia on anASP.NET website i get the following error:
Exception message: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
Unable to load library 'libSkiaSharp'.
The strange thing is that debugging the code locally, it works, but when deploying it to a server it fails with this error.
The versions i an using:
Svg.Skia: 1.0.0.13
SkiaSharp: 2.88.6
SkiaSharp.HarfBuzz: 2.88.6
SkiaSharp.NativeAssets.macOS: 2.88.6
SkiaSharp.NativeAssets.Win32: 2.88.6
the project is a .NET Framework 4.7.2
I can't figure out why it can run locally and not remote.
Code
The best way to share code for larger projects is a link to a GitHub repository: https://github.com/user/repo/tree/bug-123
But, you can also share a short block of code here:
// some C# code here
You can also share some XAML:
<!-- xaml code here -->
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
Other (Please indicate in the description)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows Server 2016 v1607
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: