Skip to content

Disabling Blazor SIMD support breaks published app during runtime #103178

@eduardocp

Description

@eduardocp

Description

I'm publishing with these parameters
-p:WasmEnableSIMD=false

This is the runtime error I get when using the above parameters

blazor.webassembly.js:1  Error: raw cwrap mono_wasm_copy_managed_pointer not found
    at Za (dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:82931)
    at Bi (dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:116608)
    at dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:158681
    at dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:158804
    at Tl (dotnet.runtime.8.0.6.cfhqwq2l7j.js:3:173658)
    at dotnet.native.wasm:0x4ec1f
    at dotnet.native.wasm:0x1844a8
    at dotnet.native.wasm:0x17b71c
    at dotnet.native.wasm:0xbd8e4
    at dotnet.native.wasm:0x1daec
callEntryPoint @ blazor.webassembly.js:1
await in callEntryPoint (assíncrono)
mn @ blazor.webassembly.js:1
await in mn (assíncrono)
fn @ blazor.webassembly.js:1
An @ blazor.webassembly.js:1
(anônimo) @ blazor.webassembly.js:1
(anônimo) @ blazor.webassembly.js:1

I tried everything in #100234 but without success.

Reproduction Steps

Was unable to make a vanilla project demonstrating this issue. My Blazor app is quite large and difficult to pare down to a working example.

Expected behavior

The app work normaly with WasmEnableSIMD=false

Actual behavior

The app crash

Regression?

These parameters are now required as a consequence of 8.0 incorporating SIMD, which isn't supported by all browsers/OSs/hardware, so there is no historical precedent

Known Workarounds

None known

Configuration

latest .net/win11/Chrome/Edge/asp on high-end recent intel Avell Storm Two laptop.

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmWebAssembly architecturearea-Build-mononeeds-author-actionAn issue or pull request that requires more info or actions from the author.needs-further-triageIssue has been initially triaged, but needs deeper consideration or reconsiderationos-browserBrowser variant of arch-wasm

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions