-
Notifications
You must be signed in to change notification settings - Fork 538
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. |
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: