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

[wasm] Blazor/AOT crashing with preview1 - Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2443 #82481

Closed
e012345678 opened this issue Feb 22, 2023 · 16 comments
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Milestone

Comments

@e012345678
Copy link

e012345678 commented Feb 22, 2023

Description

I am getting the following error after updating my solution to dotnet 8 Preview 1. No compilation config was changed from dotnet 7 to dotnet 8.

14:14:12.204 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2443, condition `<disabled>' not met

    at se (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:521)
    at ie (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:811)
    at 0ecc80da:0x32cd142
    at 0ecc80da:0x31867ee
    at 0ecc80da:0x32ac944
    at 0ecc80da:0x32ac9d8
    at 0ecc80da:0x32aca1f
    at 0ecc80da:0x32ac9f0
    at 0ecc80da:0x32984c9
    at 0ecc80da:0x328c70c
ie @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
$func140215 @ 0ecc80da:0x32cd142
$func133828 @ 0ecc80da:0x31867ee
$func139722 @ 0ecc80da:0x32ac944
$func139725 @ 0ecc80da:0x32ac9d8
$func139727 @ 0ecc80da:0x32aca1f
$func139726 @ 0ecc80da:0x32ac9f0
$func139371 @ 0ecc80da:0x32984c9
$func139217 @ 0ecc80da:0x328c70c
invoke_vi @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
$func130990 @ 0ecc80da:0x30ec48e
$func139216 @ 0ecc80da:0x328c519
$func139218 @ 0ecc80da:0x328ce8f
$func139231 @ 0ecc80da:0x328d6f1
$func133003 @ 0ecc80da:0x315d7d7
$func133001 @ 0ecc80da:0x315d746
$func133002 @ 0ecc80da:0x315d760
$func132221 @ 0ecc80da:0x313618d
$func132220 @ 0ecc80da:0x313605d
$mono_wasm_load_runtime @ 0ecc80da:0x32cc5f0
Module._mono_wasm_load_runtime @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
ccall @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.204 blazor.webassembly.js:1 MONO_WASM: mono_wasm_load_runtime () failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.204 blazor.webassembly.js:1 MONO_WASM: user callback posRun() failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.205 blazor.webassembly.js:1 Error: Failed to start platform. Reason: [object Object]
    at Kt (blazor.webassembly.js:1:62385)
u @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.catch (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.205 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Uncaught (in promise) ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1}
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1

Reproduction Steps

Publish a dotnet 8 Preview 1 Blazor WebAssembly application with

<WasmEnableSIMD Condition="'$(Configuration)'=='Release'">true</WasmEnableSIMD>
<RunAOTCompilation Condition="'$(Configuration)'=='Release'">true</RunAOTCompilation>
<!--https://github.com/dotnet/runtime/issues/61925  (value maybe 128mb (134217728)) maybe remove with .NET 8--><EmccTotalMemory Condition="'$(Configuration)'=='Release'">134217728</EmccTotalMemory>

Expected behavior

Runtime loads successfully.

Actual behavior

See errors above, program fails.

Regression?

No response

Known Workarounds

No response

Configuration

dotnet.8.0.0-preview.1.23110.8
Windows 10 x64
Chrome

Other information

No response

@ghost ghost added the untriaged New issue has not been triaged by the area owner label Feb 22, 2023
@e012345678 e012345678 changed the title Mono condition `<disabled>' not met Mono condition `<disabled>' not met - AOT Blazor Feb 22, 2023
@vcsjones vcsjones added the arch-wasm WebAssembly architecture label Feb 22, 2023
@ghost
Copy link

ghost commented Feb 22, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Description

I am getting the following error after updating my solution to dotnet 8 Preview 1. No compilation config was changed from dotnet 7 to dotnet 8.

14:14:12.204 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2443, condition `<disabled>' not met

    at se (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:521)
    at ie (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:811)
    at 0ecc80da:0x32cd142
    at 0ecc80da:0x31867ee
    at 0ecc80da:0x32ac944
    at 0ecc80da:0x32ac9d8
    at 0ecc80da:0x32aca1f
    at 0ecc80da:0x32ac9f0
    at 0ecc80da:0x32984c9
    at 0ecc80da:0x328c70c
ie @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
$func140215 @ 0ecc80da:0x32cd142
$func133828 @ 0ecc80da:0x31867ee
$func139722 @ 0ecc80da:0x32ac944
$func139725 @ 0ecc80da:0x32ac9d8
$func139727 @ 0ecc80da:0x32aca1f
$func139726 @ 0ecc80da:0x32ac9f0
$func139371 @ 0ecc80da:0x32984c9
$func139217 @ 0ecc80da:0x328c70c
invoke_vi @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
$func130990 @ 0ecc80da:0x30ec48e
$func139216 @ 0ecc80da:0x328c519
$func139218 @ 0ecc80da:0x328ce8f
$func139231 @ 0ecc80da:0x328d6f1
$func133003 @ 0ecc80da:0x315d7d7
$func133001 @ 0ecc80da:0x315d746
$func133002 @ 0ecc80da:0x315d760
$func132221 @ 0ecc80da:0x313618d
$func132220 @ 0ecc80da:0x313605d
$mono_wasm_load_runtime @ 0ecc80da:0x32cc5f0
Module._mono_wasm_load_runtime @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
ccall @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.204 blazor.webassembly.js:1 MONO_WASM: mono_wasm_load_runtime () failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.204 blazor.webassembly.js:1 MONO_WASM: user callback posRun() failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.205 blazor.webassembly.js:1 Error: Failed to start platform. Reason: [object Object]
    at Kt (blazor.webassembly.js:1:62385)
u @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.catch (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
14:14:12.205 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Uncaught (in promise) ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1}
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:14
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1

Reproduction Steps

Publish a dotnet 8 Preview 1 Blazor WebAssembly application with

<WasmEnableSIMD Condition="'$(Configuration)'=='Release'">true</WasmEnableSIMD>
<RunAOTCompilation Condition="'$(Configuration)'=='Release'">true</RunAOTCompilation>
<!--https://github.com/dotnet/runtime/issues/61925  (value maybe 128mb (134217728)) maybe remove with .NET 8--><EmccTotalMemory Condition="'$(Configuration)'=='Release'">134217728</EmccTotalMemory>

Expected behavior

Runtime loads successfully.

Actual behavior

See errors above, program fails.

Regression?

No response

Known Workarounds

No response

Configuration

dotnet.8.0.0-preview.1.23110.8
Windows 10 x64
Chrome

Other information

No response

Author: e012345678
Assignees: -
Labels:

arch-wasm, untriaged

Milestone: -

@radical
Copy link
Member

radical commented Feb 22, 2023

cc @vargaz @radekdoulik

@radical radical changed the title Mono condition `<disabled>' not met - AOT Blazor [wasm] Blazor/AOT crashing with preview1 - Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2443 Feb 22, 2023
@vargaz
Copy link
Contributor

vargaz commented Feb 23, 2023

Could you build with <WasmNativeStrip>false</WasmNativeStrip> to get a better stack trace ?

@e012345678
Copy link
Author

e012345678 commented Feb 23, 2023

@vargaz See below for build with WasmNativeStrip set to false


`15:12:54.960 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2443, condition `<disabled>' not met

    at se (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:521)
    at ie (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:811)
    at wasm_trace_logger (dotnet.wasm:0x35676a9)
    at eglib_log_adapter (dotnet.wasm:0x33faa94)
    at monoeg_g_logstr (dotnet.wasm:0x35473a9)
    at monoeg_g_logv_nofree (dotnet.wasm:0x3547353)
    at monoeg_assertion_message (dotnet.wasm:0x3547428)
    at mono_assertion_message (dotnet.wasm:0x354746f)
    at mono_assertion_message_disabled (dotnet.wasm:0x3547440)
    at load_container_amodule (dotnet.wasm:0x3530a3e)
ie @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
$wasm_trace_logger @ dotnet.wasm:0x35676a9
$eglib_log_adapter @ dotnet.wasm:0x33faa94
$monoeg_g_logstr @ dotnet.wasm:0x35473a9
$monoeg_g_logv_nofree @ dotnet.wasm:0x3547353
$monoeg_assertion_message @ dotnet.wasm:0x3547428
$mono_assertion_message @ dotnet.wasm:0x354746f
$mono_assertion_message_disabled @ dotnet.wasm:0x3547440
$load_container_amodule @ dotnet.wasm:0x3530a3e
$mono_aot_get_method @ dotnet.wasm:0x3530499
$mono_jit_compile_method_with_opt @ dotnet.wasm:0x35253de
$jit_compile_method_with_opt_cb @ dotnet.wasm:0x3521d9c
invoke_vi @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:8806
$mono_llvm_cpp_catch_exception @ dotnet.wasm:0x334e252
$jit_compile_method_with_opt @ dotnet.wasm:0x3521d5d
$mono_jit_compile_method_jit_only @ dotnet.wasm:0x3521de9
$mono_jit_runtime_invoke @ dotnet.wasm:0x3522de5
$do_runtime_invoke @ dotnet.wasm:0x33c93d2
$mono_runtime_invoke_checked @ dotnet.wasm:0x33c937a
$mono_runtime_invoke_handle_void @ dotnet.wasm:0x33c9396
$create_exception_two_strings @ dotnet.wasm:0x339f236
$mono_exception_from_name_two_strings_checked @ dotnet.wasm:0x339f0e5
$create_domain_objects @ dotnet.wasm:0x334f314
$mono_runtime_init_checked @ dotnet.wasm:0x334ef72
$mini_init @ dotnet.wasm:0x3522bd5
$mono_jit_init_version @ dotnet.wasm:0x3529347
$mono_wasm_load_runtime @ dotnet.wasm:0x3566dfc
Module._mono_wasm_load_runtime @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:7494
ccall @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:659
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:682
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:54.960 blazor.webassembly.js:1 MONO_WASM: mono_wasm_load_runtime () failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:54.960 blazor.webassembly.js:1 MONO_WASM: user callback posRun() failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:54.961 blazor.webassembly.js:1 Error: Failed to start platform. Reason: [object Object]
    at Kt (blazor.webassembly.js:1:62385)
u @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.catch (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:54.967 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Uncaught (in promise) ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1}
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:55.369 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/mini/aot-runtime.c:2443, condition `<disabled>' not met

    at se (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:521)
    at ie (dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5:811)
    at wasm_trace_logger (dotnet.wasm:0x35676a9)
    at eglib_log_adapter (dotnet.wasm:0x33faa94)
    at monoeg_g_logstr (dotnet.wasm:0x35473a9)
    at monoeg_g_logv_nofree (dotnet.wasm:0x3547353)
    at monoeg_assertion_message (dotnet.wasm:0x3547428)
    at mono_assertion_message (dotnet.wasm:0x354746f)
    at mono_assertion_message_disabled (dotnet.wasm:0x3547440)
    at load_container_amodule (dotnet.wasm:0x3530a3e)
ie @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
$wasm_trace_logger @ dotnet.wasm:0x35676a9
$eglib_log_adapter @ dotnet.wasm:0x33faa94
$monoeg_g_logstr @ dotnet.wasm:0x35473a9
$monoeg_g_logv_nofree @ dotnet.wasm:0x3547353
$monoeg_assertion_message @ dotnet.wasm:0x3547428
$mono_assertion_message @ dotnet.wasm:0x354746f
$mono_assertion_message_disabled @ dotnet.wasm:0x3547440
$load_container_amodule @ dotnet.wasm:0x3530a3e
$mono_aot_get_method @ dotnet.wasm:0x3530499
$mono_jit_compile_method_with_opt @ dotnet.wasm:0x35253de
$jit_compile_method_with_opt_cb @ dotnet.wasm:0x3521d9c
invoke_vi @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:8806
$mono_llvm_cpp_catch_exception @ dotnet.wasm:0x334e252
$jit_compile_method_with_opt @ dotnet.wasm:0x3521d5d
$mono_jit_compile_method_jit_only @ dotnet.wasm:0x3521de9
$mono_jit_runtime_invoke @ dotnet.wasm:0x3522de5
$do_runtime_invoke @ dotnet.wasm:0x33c93d2
$mono_runtime_invoke_checked @ dotnet.wasm:0x33c937a
$mono_runtime_invoke_handle_void @ dotnet.wasm:0x33c9396
$create_exception_two_strings @ dotnet.wasm:0x339f236
$mono_exception_from_name_two_strings_checked @ dotnet.wasm:0x339f0e5
$create_domain_objects @ dotnet.wasm:0x334f314
$mono_runtime_init_checked @ dotnet.wasm:0x334ef72
$mini_init @ dotnet.wasm:0x3522bd5
$mono_jit_init_version @ dotnet.wasm:0x3529347
$mono_wasm_load_runtime @ dotnet.wasm:0x3566dfc
Module._mono_wasm_load_runtime @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:7494
ccall @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:659
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:682
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:55.370 blazor.webassembly.js:1 MONO_WASM: mono_wasm_load_runtime () failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
kc @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
postRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:55.370 blazor.webassembly.js:1 MONO_WASM: user callback posRun() failed: {"name":"ExitStatus","message":"Program terminated with exit(1)","status":1}
u @ blazor.webassembly.js:1
Ec @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:55.371 blazor.webassembly.js:1 Error: Failed to start platform. Reason: [object Object]
    at Kt (blazor.webassembly.js:1:62385)
u @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
Promise.catch (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
15:12:55.371 dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5 Uncaught (in promise) ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1}
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
postRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1189
doRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9920
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9933
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
m @ blazor.webassembly.js:1
await in m (async)
(anonymous) @ blazor.webassembly.js:1
preRun @ blazor.webassembly.js:1
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
e.preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
callRuntimeCallbacks @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1507
preRun @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1164
run @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9899
runCaller @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:9887
removeRunDependency @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1258
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
await in (anonymous) (async)
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
e.instantiateWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:5
createWasm @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:1475
(anonymous) @ dotnet.8.0.0-preview.1.23110.8.rqi6qmc4oy.js:6746
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
start @ blazor.webassembly.js:1
Kt @ blazor.webassembly.js:1
await in Kt (async)
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
`

@vargaz
Copy link
Contributor

vargaz commented Feb 23, 2023

Adding <WasmDedup>false</WasmDedup> might work around the problem for now.

@marek-safar marek-safar added this to the 8.0.0 milestone Feb 23, 2023
@marek-safar marek-safar removed the untriaged New issue has not been triaged by the area owner label Feb 23, 2023
@e012345678
Copy link
Author

@vargaz Compiling with <WasmDedup>false</WasmDedup> seems to work! What does that setting do and is it safe to use it production? Is there anything we should think about? Thank you

@vargaz
Copy link
Contributor

vargaz commented Feb 23, 2023

It's safe to use, its just makes the app bigger. This issue will be fixed so the workaround is not going to be required.

@lewing
Copy link
Member

lewing commented Feb 27, 2023

@radical we should land a workaround for this in p2 and pick a different default for dedup for blazor targets

radical added a commit to radical/runtime that referenced this issue Mar 1, 2023
radical added a commit that referenced this issue Mar 2, 2023
…or AOT (#82748)

* [wasm] Wasm.Build.Tests: Add blazor+aot run test

* cleanup

* [wasm] Wasm.Build.Tests: Use $(_IsPublishing) to avoid unncessary

.. relinking during "Build", when publishing.

`Publish` target triggers `Build` target to run. When publishing, we
don't want to run relinking step during the `Build`, as it will be run
for `Publish` anyway. Earlier there wasn't a good way to differentiate
the two cases of `build` when building, and `build` when publishing, but
now the sdk sets `$(_IsPublishing)=true`, which can be used here.

* fix blazor tests

* Wasm.Build.Tests: Add support for running published blazor projects

`dotnet run` uses the regular build output. Published blazor app, like
when using AOT, needs to be run more "manually" by starting a web server
in the publish folder. This is accomplished here by using the new
xharness command `wasm webserver`.

* Detect runtime assertions in blazor runs

* Update test to track changes

* cleanup

* Disable BlazorPublishRunTest because of #82481

* Update test to track changes

* Update xharness dependency

Updating 'Microsoft.DotNet.XHarness.CLI': '1.0.0-prerelease.23117.1' => '1.0.0-prerelease.23151.1' (from build '20230301.1' of 'https://github.com/dotnet/xharness')
Updating 'Microsoft.DotNet.XHarness.TestRunners.Common': '1.0.0-prerelease.23117.1' => '1.0.0-prerelease.23151.1' (from build '20230301.1' of 'https://github.com/dotnet/xharness')
Updating 'Microsoft.DotNet.XHarness.TestRunners.Xunit': '1.0.0-prerelease.23117.1' => '1.0.0-prerelease.23151.1' (from build '20230301.1' of 'https://github.com/dotnet/xharness')
@e012345678
Copy link
Author

Is this fixed in the .net 8 preview 2 released yesterday?

@e012345678
Copy link
Author

Seems not. It doesn't work without the WasmDedup setting in .net 8 Preview 2.

@e012345678
Copy link
Author

Any update on this? @lewing @vargaz In .net 8 preview 2 this is not fixed.

@vargaz
Copy link
Contributor

vargaz commented Apr 4, 2023

What is the current error message ?

@e012345678
Copy link
Author

e012345678 commented Apr 4, 2023

	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[185692]
	<?>.wasm-function[27184]
	<?>.wasm-function[27217]
	<?>.wasm-function[19100]
	<?>.wasm-function[173477]
	<?>.wasm-function[19092]
	<?>.wasm-function[19091]
	<?>.wasm-function[4626]
	<?>.wasm-function[177848]
	<?>.wasm-function[1]
	<?>.wasm-function[177718]
	<?>.wasm-function[177707]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186292]
	wasm-stub
	_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS (_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:25)
	endInvokeJSFromDotNet (blazor.webassembly.js:1:42907)
	promiseReactionJob
[Error] Unhandled Promise Rejection: 91932320
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186292]
	wasm-stub
	_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS (_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:25)
	endInvokeJSFromDotNet (blazor.webassembly.js:1:42907)
	promiseReactionJob
[Error] Unhandled Promise Rejection: 91925856
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186292]
	wasm-stub
	_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS (_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:25)
	endInvokeJSFromDotNet (blazor.webassembly.js:1:42907)
	promiseReactionJob
[Error] Unhandled Promise Rejection: 91908232
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186292]
	wasm-stub
	_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS (_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:25)
	endInvokeJSFromDotNet (blazor.webassembly.js:1:42907)
	promiseReactionJob
[Error] Unhandled Promise Rejection: Error: Assert failed: Value is not an Error number
	ts (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:108428)
	(anonymous function) (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:186636)
	(anonymous function) (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:108180)
	promiseReactionJob
[Error] Unhandled Promise Rejection: 91908328
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186292]
	wasm-stub
	_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS (_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:25)
	endInvokeJSFromDotNet (blazor.webassembly.js:1:42907)
	promiseReactionJob
[Error] Unhandled Promise Rejection: 91908360
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186292]
	wasm-stub
	_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS (_Microsoft_AspNetCore_Components_WebAssembly__Microsoft_AspNetCore_Components_WebAssembly_Services_DefaultWebAssemblyJSRuntime_EndInvokeJS:25)
	endInvokeJSFromDotNet (blazor.webassembly.js:1:42907)
	promiseReactionJob
[Error] 91966144
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179834]
	<?>.wasm-function[185437]
	<?>.wasm-function[185601]
	<?>.wasm-function[185858]
	<?>.wasm-function[158985]
	<?>.wasm-function[167807]
	<?>.wasm-function[167786]
	<?>.wasm-function[167785]
	<?>.wasm-function[176009]
	<?>.wasm-function[168192]
	<?>.wasm-function[167695]
	<?>.wasm-function[167689]
	<?>.wasm-function[167685]
	<?>.wasm-function[167684]
	<?>.wasm-function[2419]
	<?>.wasm-function[177848]
	<?>.wasm-function[1]
	<?>.wasm-function[177718]
	<?>.wasm-function[177707]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[185870]
	wasm-stub
	(anonymous function) (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:150068)
[Error] 91966176
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186291]
	wasm-stub
	ni (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:125448)
	(anonymous function) (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:186318)
	Gn (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:86102)
	(anonymous function) (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:85502)
[Error] 91966208
	___cxa_throw (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:12:22868)
	wasm-stub
	<?>.wasm-function[178046]
	<?>.wasm-function[177755]
	<?>.wasm-function[185456]
	<?>.wasm-function[179833]
	<?>.wasm-function[179838]
	<?>.wasm-function[179865]
	<?>.wasm-function[186291]
	wasm-stub
	ni (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:125448)
	(anonymous function) (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:186318)
	Gn (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:86102)
	(anonymous function) (dotnet.8.0.0-preview.2.23128.3.rqi6qmc4oy.js:3:85502)```

@vargaz
Copy link
Contributor

vargaz commented Apr 4, 2023

Could you run with false ?

Also, the stack trace is a bit hard to read, but this appears to be a different error.

@e012345678
Copy link
Author

e012345678 commented Apr 4, 2023

Probably a different error yeah. I am currently unable to run with false settings because we've rolled back everything to .NET 7 already. The settings we had were:

 <PropertyGroup>
    <TargetFramework>net8.0</TargetFramework>
	<ServiceWorkerAssetsManifest>service-worker-assets.js</ServiceWorkerAssetsManifest>
	<!--<WasmEnableSIMD Condition="'$(Configuration)'=='Release'">true</WasmEnableSIMD>-->
	<!--SIMD not supported on iOS? -->
	<RunAOTCompilation Condition="'$(Configuration)'=='Release'">true</RunAOTCompilation>
	<!--https://github.com/dotnet/runtime/issues/61925  (value maybe 128mb (134217728)) maybe remove with .NET 8-->
	<EmccTotalMemory Condition="'$(Configuration)'=='Release'">134217728</EmccTotalMemory>
  </PropertyGroup>

We tried both with <WasmDedup> both false and true without any difference. I cannot upgrade my solution to .net 8 now because of my colleagues so would appreciate if you could troubleshoot this somehow because its clearly an issue in .net 8 AOT somewhere. Let me know if I can help more somehow.

radical added a commit to radical/runtime that referenced this issue Jun 20, 2023
`Blazor.BuildPublishTests.WithDllImportInMainAssembly`
`Blazor.BuildPublishTests.BlazorPublishRun`

Issue: dotnet#82725
Issue: dotnet#82481
radical added a commit that referenced this issue Jun 21, 2023
* [wasm] Use -s EXPORT_ES6=1 only for link time

Fixes `emcc: warning: linker setting ignored during compilation: 'EXPORT_ES6' [-Wunused-command-line-argument]`

* [wasm] Fix loading `dotnet.native.js.symbols`

* [wasm] WBT: Re-enable skiasharp test

.. as a new build of skiasharp native lib is now available.

Fixes issue: #82725

* [wasm] WBT: Enable more previously disabled tests

`Blazor.BuildPublishTests.WithDllImportInMainAssembly`
`Blazor.BuildPublishTests.BlazorPublishRun`

Issue: #82725
Issue: #82481

* [wasm] Browser.targets - fix up paths for webcil

* [wasm] Add make target build-packages to build the nugets

* address review feedback from @maraf, and add text implementations for node, and error cases

* address review feedback from @maraf

* WBT: remove unnecessary code

WithDllImportInMainAssembly: remove `CheckNativeFileLinked` because we
can run the blazor project now.

* address review feedback from @pavelsavara

* Disable failing blazor test on windows
@lewing lewing modified the milestones: 8.0.0, 9.0.0 Aug 13, 2023
@vargaz vargaz removed their assignment Mar 22, 2024
@lewing
Copy link
Member

lewing commented Apr 13, 2024

Haven't seen this in quite some time considering it closed

@lewing lewing closed this as completed Apr 13, 2024
@github-actions github-actions bot locked and limited conversation to collaborators May 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono
Projects
None yet
Development

No branches or pull requests

7 participants