uno: [Wasm][SkiaSharp] RuntimeError: memory access out of bounds

Current behavior

In random cases, the runtime fails to render SKXamlCanvas content with the following error RuntimeError: memory access out of bounds.

Expected behavior

The rendering does not fail.

How to reproduce it (as minimally and precisely as possible)

No clear repro steps.

Environment

Nuget Package:

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • Windows
  • Build tasks

Visual Studio

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins

  • Resharper (version: )

Anything else we need to know?

This issue may be related to an issue coming from the mono runtime. An updated from https://github.com/unoplatform/Uno.Wasm.Bootstrap/issues/105 may help solve this issue.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 23 (8 by maintainers)

Most upvoted comments

Still getting this issue, even with FullAOT enabled. Was able to reproduce error message in attached project, though it appears that rendering continues in the sample.

CanvasTest.zip