SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[BUG] Regression: libHarfBuzzSharp.so uses symbols from the system libharfbuzz.so.0 which causes SIGSEGV

Open kekekeks opened this issue 4 months ago • 2 comments

This was previously fixed by https://github.com/mono/SkiaSharp/pull/2247, however LibraryLoader is only used for netfx builds, net6.0 build doesn't contain it anymore.

As of the issue details, see the original PR

Repro:

Use GtkSharp and the following code:

class Program
{    
    static void Main(string[] args)
    {
        // Causes SIGSEGV
        Gtk.Application.Init();
        var font = new HarfBuzzSharp.Font(new Face((_, _) => null));
        font.TryGetGlyph(65, out _);

        Console.WriteLine("Survived");
    }
}

kekekeks avatar Oct 15 '24 17:10 kekekeks