So I had a small Avalonia project started a few months back. put it on the back burner while figuring out a couple other containers. Came back to it loaded it up and I am now getting an error:
Exception has occurred: CLR/System.TypeInitializationException
An unhandled exception of type 'System.TypeInitializationException' occurred in SkiaSharp.dll: 'The type initializer for 'SkiaSharp.SKFontManager' threw an exception.'
Inner exceptions found, see $exception in variables window for more details.
Innermost 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 [119.0, 120.0).
at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Version minSupported, Version current, Boolean throwIfIncompatible)
at SkiaSharp.SkiaSharpVersion.CheckNativeLibraryCompatible(Boolean throwIfIncompatible)
at SkiaSharp.SKObject..cctor()
so I did what I worked for me in the past and created a new avalonia project from the extension. Ran it just fine. Then brought my existing files over. rebuilt and still the same error. I am not sure how to work this one out since it is in the Skia library’s.
I did try adding these package references to the project:
<PackageReference Include="SkiaSharp" Version="3.119.1" />
<PackageReference Include="SkiaSharp.NativeAssets.Linux" Version="3.119.1" />
Which eliminates the exception… But then I am stuck with the following:
Fontconfig warning: "/usr/share/fontconfig/conf.avail/05-reset-dirs-sample.conf", line 6: unknown element "reset-dirs"
/home/torizon/app/PowisAvaloniaUI: symbol lookup error: /home/torizon/app/libSkiaSharp.so: undefined symbol: FT_Get_BDF_Property
and the container dies before I can collect any data.
I am still to darn new to the container trouble shooting so not sure which way to go.