Skip to content

Browser not loading 浏览器项目加载失败的问题 #19850

@ChangXiang-Kong

Description

@ChangXiang-Kong

Describe the bug

新建Avalonia跨平台项目,能够正常运行Desktop,但在运行Browser时出现异常:
marshal-to-js.ts:420 Uncaught ManagedError: One or more errors occurred. (The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.)

详细异常信息如下图:

Image

我尝试下载了SkiaSharp与SkiaSharp.WebAssembly,但也无法正常运行。

Image

我的workload如下:

Image Image

我也尝试了Issue#19692中的示例,同样无法运行正常Browser项目,也是出现与上面提到相同的异常信息

To Reproduce

marshal-to-js.ts:420 Uncaught ManagedError: One or more errors occurred. (The type initializer for 'SkiaSharp.SKImageInfo' threw an exception.)

Expected behavior

应该能够正常进入到界面
Image

Avalonia version

11.3.7

OS

Windows

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions