dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
14.9k stars 4.63k forks source link

Encountering runtime errors when running Blazor WebAssembly (WASM) application on Safari iOS 15.4. #104895

Open Nikitos-dev opened 1 month ago

Nikitos-dev commented 1 month ago

Description

When attempting to run my Blazor WASM application on Safari iOS version 15.4, I encounter the following errors in the browser console:

MONO_WASM: AllowRange:3e code generation failed: CompileError: WebAssembly.Module doesn't parse at byte 11: can't get Function local's type in group 4, in function at index 0 (evaluating 'new WebAssembly.Module(p)') Module@[native code]
MONO_WASM: get_Cache:0 code generation failed: CompileError: WebAssembly.Module doesn't parse at byte 11: can't get Function local's type in group 4, in function at index 0 (evaluating 'new WebAssembly.Module(p)')
Unhandled Promise Rejection: RuntimeError: Out of bounds memory access (evaluating 'St.mono_wasm_invoke_method_bound(e,t,n.address)')

Reproduction Steps

Expected behavior

The Blazor WASM application should load and run without errors on Safari iOS 15.4, similar to other supported browsers.

Actual behavior

Encounter runtime errors related to WebAssembly.Module and out of bounds memory access, preventing the application from functioning correctly.

изображение

Regression?

No response

Known Workarounds

No response

Configuration

Other information

No response

steveisok commented 1 month ago

/cc @lewing

frpp9512 commented 3 weeks ago

Having the exact same issue with the same version of Safari. Using the .NET 8 Blazor WebAssembly. image image