forked from codemerx/CodemerxDecompile
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
area:skiadependenciesIssues related to dependencies, such as Skia.Issues related to dependencies, such as Skia.os:linuxLinux specific issuesLinux specific issuesquestionFurther information is requestedFurther information is requested
Description
Once I run the executable in my Linux Mint 22 distro, I get the following error:
[ProjectRover] Main started. Console output is working.
System.TypeInitializationException: The type initializer for 'SkiaSharp.SKFontManager' threw an exception.
---> System.TypeInitializationException: The type initializer for 'SkiaSharp.SKObject' threw an exception.
---> System.InvalidOperationException: The version of the native libSkiaSharp library (88.1) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [116.0, 117.0).
at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Version minSupported, Version current, Boolean throwIfIncompatible)
at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Boolean throwIfIncompatible)
at SkiaSharp.SKObject..cctor()
--- End of inner exception stack trace ---
at SkiaSharp.SKObject..ctor(IntPtr handle, Boolean owns)
at SkiaSharp.SKFontManager..ctor(IntPtr handle, Boolean owns)
at SkiaSharp.SKFontManager.SKFontManagerStatic..ctor(IntPtr x)
at SkiaSharp.SKFontManager..cctor()
--- End of inner exception stack trace ---
at SkiaSharp.SKFontManager.get_Default()
at Avalonia.Skia.FontManagerImpl..ctor()
at Avalonia.Skia.SkiaPlatform.Initialize(SkiaOptions options)
at Avalonia.SkiaApplicationExtensions.<>c.<UseSkia>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 ProjectRover.Program.Main(String[] args) in /Users/runner/work/ProjectRover/ProjectRover/src/ProjectRover/Program.cs:line 49
After some digging, I figured out the libSkiaSharp.so from the build you released for Linux is outdated. After downloading the latest nuget package and replacing the .SO file with the new one, the application seemed to execute properly.
Metadata
Metadata
Assignees
Labels
area:skiadependenciesIssues related to dependencies, such as Skia.Issues related to dependencies, such as Skia.os:linuxLinux specific issuesLinux specific issuesquestionFurther information is requestedFurther information is requested