Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SkiaCanvas constructor fails in WASM (Avalonia UI) #774

Closed
1 task done
webprofusion-chrisc opened this issue Mar 2, 2022 · 0 comments · Fixed by #789
Closed
1 task done

SkiaCanvas constructor fails in WASM (Avalonia UI) #774

webprofusion-chrisc opened this issue Mar 2, 2022 · 0 comments · Fixed by #789
Assignees
Labels
area-rendering Everything related to the rendering platform-net Related to the .net version of alphaTab state-accepted This is a valid topic to work on. type-bug 🕷️

Comments

@webprofusion-chrisc
Copy link

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

@Danielku15 Danielku15 added area-rendering Everything related to the rendering platform-net Related to the .net version of alphaTab state-accepted This is a valid topic to work on. labels Mar 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-rendering Everything related to the rendering platform-net Related to the .net version of alphaTab state-accepted This is a valid topic to work on. type-bug 🕷️
Projects
None yet
2 participants