-
Notifications
You must be signed in to change notification settings - Fork 547
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] SKiaSharp on linux can't find liblibSkiaSharp.so #2653
Comments
I'm experiencing this too on linux app service on Azure Edit: issue came down to user error. SkiaSharp.NativeAssets.Linux.NoDependencies version 2.88.6, along with the base skiasharp 2.88.6 worked fine for me. |
I seem to be having a similar issue. We are running our application in Azure Kubernetes Service on a Linux container. Whenever we get images to start processing them, we get this exception:
I've tried several remedies that I've seen in the Issues here, including
Nothing so far as worked. |
@aodpi Have you found any workarounds for this since the OP? |
I haven't found any workarounds, I ended up not using Skiasharp anymore |
same bug |
I also keep getting this. nothing works |
Does things start to work if you use the SkiaSharp depends on Font Config, so make sure you either use "NoDependencies" or you install the |
sudo apt install fontconfig - no difference. Same error message. |
see https://curia.me/develop-graphical-linux-apps-with-avalonia-ui/ |
That's the package we are using but it did not fix this issue. |
@jhariel8 I also was running under a linux build with this issue. If it helps my fix was to uninstall all Skiasharp packages and only install the NoDependencies package |
I have a same issue on Azure pipeline with Docker.: Error Message: How to resolve that? Switching SkiaSharp / SkiaSharp.NativeAssets.Linux.NoDependencies / SkiaSharp.NativeAssets.Linux didn't help. |
this works for Syncfusion libs, thanks |
can you manually copy the .so files? |
I am also using skiasharp 2.88.8 in .net 8 and running it Linux container getting the same issue , is there any workaround for this issue |
@Ragurajan21 I've just had the same problem. It was working fine on windows but running with in a docker container I had the same problem. I installed SkiaSharp.NativeAssets.Linux 2.88.8 but that made no difference. The fix for me was to install libfontconfig1 docker exec -it --user root bash I just need to add that into my Dockerfile for when I build the container |
Hi guys, First:
Second:
Third:
The fix for me was to install libfontconfig1, libice6, and libsm6 to my WSL (Ubuntu).
Hope it will help you guys. |
This did the trick on my end, too! Thanks for that! |
If there are still issues with linux and docker, please create a repo with the code and docker file so I can check. |
This worked for me. |
Still didn’t work. |
@Saganeiro please attach a repro sample or github link so I can check it out. |
My app is a Blazor server application and I build my container under WSL. This solutions works fine for me, building for Windows WSL or Linux hosts. Run this before building the container
I then added the following under the base container to my Dockerfile.
|
I also encounter this. None of the usual suggestions of NoDependencies work. I even copied libSkiaSharp.o from the NuGet and it does not work. For what it’s worth I’ve been trying this on a Raspberry Pi 3.
|
I was having similar issues on .NET 8.0 and a RHEL / Rocky / CentOS platform... downgrading Check your GLIBC version and see if you can upgrade that or downgrade the above dep to one that aligns. |
I’m facing the opposite problem; only x64 is working for me. |
This is not completely clear, as there are 4 different |
Facing the exact same issue, coincidentally also while working with Bitmaps. I added the following bits to my Dockerfile, but unfortunately this doesn't help either, although I am using Linux.NoDependencies. I found that on Windows I need to move the libSkiaSharp.dll from runtimes to the project folder, so I tried that here as well.
I am using SkiaSharp in a 32 bit project (on a 64 bit system, though), so I suppose that could also be it, considering there is only a x64 .so. I'm on v3.116.1. Happy to provide more information if necessary. |
I'm using the normal SkiaSharp with the dependencies installed into our alpine image. But the problem for me is that |
I tried using Can it be that the For now I'll switch to the |
Having |
Description
I'm trying to use SkiaSharp on .net core 7.0 to validate an image size. The app is running on a docker container on alpine linux.
I've installed the package
SkiaSharp.NativeAssets.Linux
in my project. After building the libSkiaSharp.so is present in the folderruntimtes/linux-musl-x64/native/
so it should work fine. But for some reason .net is try to load a file calledliblibSkiaSharp.so
in that folder. Is it a naming issue or something, where does the secondlib
word come from ?The version of SkiaSharp I'm using is: 2.88.6
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:
Expected Behavior
The image should be loaded successfully.
Actual Behavior
Trying to decode an image throws an exception
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
Linux
Platform / Operating System Version
No response
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
Code of Conduct
The text was updated successfully, but these errors were encountered: