Unable to run new Project on Ubuntu 24.04 - liblibSkia not found and glib_2.33 issue on glib_2.39 System #15824
Closed
MarcoGriep88
started this conversation in
General
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
1 reply
-
You are using .NET SDK or IDE from Snap. This is not supported and will not be supported. Install the SDK using .deb packages, preferably from the microsoft repository and not the botched ones from ubuntu repositories. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i'm having some issues on running my newly generated Project in AvaloniaUI on .net 8.0 and Ubuntu 24.04.
I already installed nuget package: SkiaSharp.NativeAssets.Linux and also tried "NoDependencies". I'm not sure if the issue is in glib_2.39, because 2.33 is referenced.
StackTrace:
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/AvaloniaApplication1
Unhandled exception. System.TypeInitializationException: The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.
---> 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:
/snap/core20/current/lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by /lib/x86_64-linux-gnu/libfontconfig.so.1)
/snap/dotnet-sdk/245/shared/Microsoft.NETCore.App/8.0.5/libSkiaSharp.so: cannot open shared object file: No such file or directory
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/libSkiaSharp.so: cannot open shared object file: No such file or directory
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/runtimes/linux-x64/native/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/snap/dotnet-sdk/245/shared/Microsoft.NETCore.App/8.0.5/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/liblibSkiaSharp.so: cannot open shared object file: No such file or directory
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/runtimes/linux-x64/native/libSkiaSharp: cannot open shared object file: No such file or directory
/snap/dotnet-sdk/245/shared/Microsoft.NETCore.App/8.0.5/libSkiaSharp: cannot open shared object file: No such file or directory
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/libSkiaSharp: cannot open shared object file: No such file or directory
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/runtimes/linux-x64/native/liblibSkiaSharp: cannot open shared object file: No such file or directory
/snap/dotnet-sdk/245/shared/Microsoft.NETCore.App/8.0.5/liblibSkiaSharp: cannot open shared object file: No such file or directory
/home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/bin/Debug/net8.0/liblibSkiaSharp: cannot open shared object file: No such file or directory
at SkiaSharp.SkiaApi.sk_colortype_get_default_8888()
at SkiaSharp.SKImageInfo..cctor()
--- End of inner exception stack trace ---
at Avalonia.Skia.PlatformRenderInterface..ctor(Nullable1 maxResourceBytes)
at Avalonia.Skia.SkiaPlatform.Initialize(SkiaOptions options)
at Avalonia.SkiaApplicationExtensions.<>c.b__0_0()
at Avalonia.AppBuilder.SetupUnsafe()
at Avalonia.AppBuilder.Setup()
at Avalonia.AppBuilder.SetupWithLifetime(IApplicationLifetime lifetime)
at Avalonia.ClassicDesktopStyleApplicationLifetimeExtensions.StartWithClassicDesktopLifetime(AppBuilder builder, String[] args, Action`1 lifetimeBuilder)
at AvaloniaApplication1.Program.Main(String[] args) in /home/marcogriep/RiderProjects/AvaloniaApplication1/AvaloniaApplication1/Program.cs:line 12
Process finished with exit code 134.
csproj file
WinExe net8.0 enable true app.manifest trueHope anyone can help :)
Beta Was this translation helpful? Give feedback.
All reactions