Skip to content

SkiaCanvas constructor fails in WASM (Avalonia UI) #774

@webprofusion-chrisc

Description

@webprofusion-chrisc

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Currently the SkiaCanvas static constructor crashes due to the failed attempt to load libSkiaSharp (which is incidentally already loaded)

Expected Behavior

SkiaCanvas should still be created but warn that the library was unable to be loaded. This allows platforms that the code did not anticipate to proceed.

Steps To Reproduce

Use ScoreRenderer in an Avalonia UI Web project.

Link to jsFiddle, CodePen, Project

No response

Found in Version

1.3-alpha

Platform

.net (Other)

Environment

- Windows 11
- Chrome 98
- .net 6.0

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-renderingEverything related to the renderingplatform-netRelated to the .net version of alphaTabstate-acceptedThis is a valid topic to work on.

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions