runtime: After upgrade to 8.0.0, setting AOT compilation to true breaks published Blazor app.
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
Upgraded to 8.0 from 7.0.13. Now when publishing with AOT: true, If I then run the app, I get the following errors in the Chrome DevTools Console log
dotnet.runtime.8.0.0.14kkjimq5k.js:3 Error: [MONO] * Assertion at /__w/1/s/src/mono/mono/mini/interp/interp.c:2551,
condition `<disabled>' not met
at ht (dotnet.runtime.8.0.0.14kkjimq5k.js:3:12765)
at Ul (dotnet.runtime.8.0.0.14kkjimq5k.js:3:175673)
at dotnet.native.wasm:0x7db30a
at dotnet.native.wasm:0x847b44
at dotnet.native.wasm:0x40246f
at dotnet.native.wasm:0x57105
at dotnet.native.wasm:0x4259f
at dotnet.native.wasm:0x3b274
at dotnet.native.wasm:0x26a153
at dotnet.native.wasm:0xf9acc
Ul @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
$func27566 @ dotnet.native.wasm:0x7db30a
$func33684 @ dotnet.native.wasm:0x847b44
$func13559 @ dotnet.native.wasm:0x40246f
$func799 @ dotnet.native.wasm:0x57105
$func329 @ dotnet.native.wasm:0x4259f
$func91 @ dotnet.native.wasm:0x3b274
$func8614 @ dotnet.native.wasm:0x26a153
$func3638 @ dotnet.native.wasm:0xf9acc
$func32056 @ dotnet.native.wasm:0x80889e
$func31775 @ dotnet.native.wasm:0x800d7e
$func8612 @ dotnet.native.wasm:0x269e68
$func834 @ dotnet.native.wasm:0x58521
$Sb @ dotnet.native.wasm:0x7fc27d
Module._mono_wasm_load_runtime @ dotnet.native.8.0.0.yeegl3ehmw.js:8
ccall @ dotnet.native.8.0.0.yeegl3ehmw.js:8
(anonymous) @ dotnet.native.8.0.0.yeegl3ehmw.js:8
Dl @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
(anonymous) @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
(anonymous) @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
await in (anonymous) (async)
Ll.e.onRuntimeInitialized @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
doRun @ dotnet.native.8.0.0.yeegl3ehmw.js:8
run @ dotnet.native.8.0.0.yeegl3ehmw.js:8
runCaller @ dotnet.native.8.0.0.yeegl3ehmw.js:8
removeRunDependency @ dotnet.native.8.0.0.yeegl3ehmw.js:8
(anonymous) @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
await in (anonymous) (async)
Ll.e.preRun @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
callRuntimeCallbacks @ dotnet.native.8.0.0.yeegl3ehmw.js:8
preRun @ dotnet.native.8.0.0.yeegl3ehmw.js:8
run @ dotnet.native.8.0.0.yeegl3ehmw.js:8
runCaller @ dotnet.native.8.0.0.yeegl3ehmw.js:8
removeRunDependency @ dotnet.native.8.0.0.yeegl3ehmw.js:8
(anonymous) @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
await in (anonymous) (async)
(anonymous) @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
Ll.e.instantiateWasm @ dotnet.runtime.8.0.0.14kkjimq5k.js:3
createWasm @ dotnet.native.8.0.0.yeegl3ehmw.js:8
(anonymous) @ dotnet.native.8.0.0.yeegl3ehmw.js:8
ze @ dotnet.js:3
await in ze (async)
(anonymous) @ dotnet.js:3
await in (anonymous) (async)
Ne @ dotnet.js:3
await in Ne (async)
create @ dotnet.js:3
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
load @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
await in (anonymous) (async)
pn @ blazor.webassembly.js:1
hn @ blazor.webassembly.js:1
mn @ blazor.webassembly.js:1
Cn @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
(anonymous) @ blazor.webassembly.js:1
dotnet.runtime.8.0.0.14kkjimq5k.js:3 MONO_WASM: mono_wasm_load_runtime () failed ExitStatus {name: 'ExitStatus', message: 'Program terminated with exit(1)', status: 1}
Expected Behavior
In 7.0.13, app performed equally reliably whether AOT true or false when publishing. In 8.0.0, the app works as expected if AOT is false
Steps To Reproduce
I don’t have a minimalist example, only my project that works as expected in 7.0.13
Exceptions (if any)
No response
.NET Version
8.0.100
Anything else?
AspNetCore 8.0.0 Microsoft Visual Studio Professional 2022 Version 17.8.1 VisualStudio.17.Release/17.8.1+34316.72 Microsoft .NET Framework Version 4.8.09037
Installed Version: Professional
ASP.NET and Web Tools 17.8.352.38654 ASP.NET and Web Tools
C# Tools 4.8.0-7.23558.1+e091728607ca0fc9efca55ccfb3e59259c6b5a0a C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
NuGet Package Manager 6.8.0 NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
Razor (ASP.NET Core) 17.8.3.2353105+f0a326f3e15b2370371693a76fd379635387c74d Provides languages services for ASP.NET Core Razor.
About this issue
- Original URL
- State: open
- Created 7 months ago
- Comments: 18 (9 by maintainers)
autostart is an attribute that Blazor itself reads from the script tag here, it’s not an HTML spec attribute:
https://github.com/dotnet/aspnetcore/blob/5b1ad1ee4934be7d587e50670524876763cd45eb/src/Components/Web.JS/src/BootCommon.ts#L6
so you might need to do