- 
                Notifications
    
You must be signed in to change notification settings  - Fork 596
 
Open
Labels
area/libSkiaSharp.nativeos/Linuxtenet/compatibilityCompatibility with previous versions of SkiaSharpCompatibility with previous versions of SkiaSharptype/bug
Description
Description
We are deploying a set of WebAPIs using .NET Aspire. This creates a Linux based Container App. While everything works locally it does not work when deployed in this way.
Code
<PackageReference Include="SkiaSharp" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux.NoDependencies" />Expected Behavior
Images should be able to generate.
Actual Behavior
Images fail to generate
Version of SkiaSharp
3.116.0 (Current)
Last Known Good Version of SkiaSharp
2.88.9 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Linux
Platform / Operating System Version
- (Linux) Azure Container App - deployed with .NET Aspire
 
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
stdout F fail: Microsoft.AspNetCore.Server.Kestrel[13]
stdout F       Connection id "0HNGDGHEEMT83", Request id "0HNGDGHEEMT83:00000004": An unhandled exception was thrown by the application.
stdout F       System.TypeInitializationException: The type initializer for 'SkiaSharp.SKAbstractManagedStream' threw an exception.
stdout F        ---> System.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: 
stdout F       libfontconfig.so.1: cannot open shared object file: No such file or directory
stdout F       /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.10/libSkiaSharp.so: cannot open shared object file: No such file or directory
stdout F       /app/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
stdout F       /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.10/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
stdout F       /app/libSkiaSharp: cannot open shared object file: No such file or directory
stdout F       /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.10/libSkiaSharp: cannot open shared object file: No such file or directory
stdout F       /app/liblibSkiaSharp: cannot open shared object file: No such file or directory
stdout F       /usr/share/dotnet/shared/Microsoft.NETCore.App/9.0.10/liblibSkiaSharp: cannot open shared object file: No such file or directory
stdout F       
stdout F          at SkiaSharp.SkiaApi.sk_managedstream_set_procs(SKManagedStreamDelegates procs)
stdout F          at SkiaSharp.SkiaApi.sk_managedstream_set_procs(SKManagedStreamDelegates procs)
stdout F          at SkiaSharp.SKAbstractManagedStream..cctor()
stdout F          --- End of inner exception stack trace ---
stdout F          at SkiaSharp.SKAbstractManagedStream..ctor(Boolean owns)
stdout F          at SkiaSharp.SKManagedStream..ctor(Stream managedStream, Boolean disposeManagedStream)
stdout F          at SkiaSharp.SKCodec.WrapManagedStream(Stream stream)
stdout F          at SkiaSharp.SKCodec.Create(Stream stream, SKCodecResult& result)
stdout F          at SkiaSharp.SKCodec.Create(Stream stream)
stdout F          at SkiaSharp.SKBitmap.Decode(Stream stream)Code of Conduct
- I agree to follow this project's Code of Conduct
 
Metadata
Metadata
Assignees
Labels
area/libSkiaSharp.nativeos/Linuxtenet/compatibilityCompatibility with previous versions of SkiaSharpCompatibility with previous versions of SkiaSharptype/bug
Type
Projects
Status
New