Skip to content

[BUG] Blazor App Crashes in AOT mode with SkiaSharp.HarfBuzz in .NET 8 #3049

@elepner

Description

@elepner

Description

The library SkiaSharp.HarfBuzz does not work at all in AOT mode with .NET 8 and 9, however everything works fine in .NET 7.
image

Code

The github repo with minimal project to reproduce:
https://github.com/elepner/harfbuzzsharp-wasm-aot-bug/tree/report_bug

Publish the project
dotnet publish -c Release -o wasm-output
navigate to the output folder wasm-output/wwwroot and start any http-server.

Expected Behavior

The app should not crash.

Actual Behavior

No response

Version of SkiaSharp

2.88.8 (Current)

Last Known Good Version of SkiaSharp

2.88.7 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Other (Please indicate in the description)

Platform / Operating System Version

Blazor

Devices

Google chrome

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/SkiaSharp.Views.BlazorIssues relating to the views for ASP.NET Blazor.os/WASMIssues running on WebAssembly (ASP.NET Blazor or Uno Platform)type/bug

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions