_An unhandled exception occurred while processing the request.
DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable:
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/libSkiaSharp.so: cannot open shared object file: No such file or directory
/app/libSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/app/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/libSkiaSharp: cannot open shared object file: No such file or directory
/app/libSkiaSharp: cannot open shared object file: No such file or directory
/usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/liblibSkiaSharp: cannot open shared object file: No such file or directory
/app/liblibSkiaSharp: cannot open shared object file: No such file or directory
SkiaSharp.SkiaApi.sk_color4f_fromcolor(uint color, SKColorF* color4f)
ASP.NET 7
Docker image: mcr.microsoft.com/dotnet/aspnet:7.0
Windows: ok it works
Linux (Debian): not
I can't test with other images, e.g. ubuntu
_An unhandled exception occurred while processing the request. DllNotFoundException: Unable to load shared library 'libSkiaSharp' or one of its dependencies. In order to help diagnose loading problems, consider using a tool like strace. If you're using glibc, consider setting the LD_DEBUG environment variable: /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/libSkiaSharp.so: cannot open shared object file: No such file or directory /app/libSkiaSharp.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /app/liblibSkiaSharp.so: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/libSkiaSharp: cannot open shared object file: No such file or directory /app/libSkiaSharp: cannot open shared object file: No such file or directory /usr/share/dotnet/shared/Microsoft.NETCore.App/7.0.11/liblibSkiaSharp: cannot open shared object file: No such file or directory /app/liblibSkiaSharp: cannot open shared object file: No such file or directory SkiaSharp.SkiaApi.sk_color4f_fromcolor(uint color, SKColorF* color4f)
ASP.NET 7 Docker image: mcr.microsoft.com/dotnet/aspnet:7.0 Windows: ok it works Linux (Debian): not I can't test with other images, e.g. ubuntu
My code:
I believe I will have to create an intermediate image by adding something like:
sudo apt-get install -y libfontconfig1
or try to use the package
SkiaSharp.NativeAssets.Linux.NoDependencies
as per: https://github.com/mono/SkiaSharp/issues/1341
updated
when trying to mount a custom image:
It didn't help, same error.