You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I update SkiaSharp.HarfBuzz to the version 3.0.0-preview.5.4 along with SkiaSharp.NativeAssets.WebAssembly I get the error
Unhandled exception rendering component: The type initializer for 'SkiaSharp.SKObject' threw an exception.
System.TypeInitializationException: The type initializer for 'SkiaSharp.SKObject' threw an exception.
---> System.InvalidOperationException: The version of the native libSkiaSharp library (116.0) is incompatible with this version of SkiaSharp. Supported versions of the native libSkiaSharp library are in the range [88.1, 89.0).
I have given a try to run this in .net9 with no success. There's another error which appears even in Debug mode.
logging.ts:43 MONO_WASM: instantiate_wasm_module() failed CompileError: WebAssembly.compileStreaming(): Compiling function #28714:"CompressionNative_Crc32" failed: expected 1 elements on the stack for fallthru, found 3 @+8898931
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.
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
The text was updated successfully, but these errors were encountered: