Skip to content

[wasm] [MONO] * Assertion at /__w/1/s/src/runtime/src/mono/mono/metadata/appdomain.c:188, condition `<disabled>' not met #121840

Closed

Description

@softwaretirol

Description

We have a large WASM Project, and try to activate AOT compilation.
During startup we receive at the browser console:

dotnet.runtime.o0qy896u8v.js:3 [MONO] * Assertion at /__w/1/s/src/runtime/src/mono/mono/metadata/appdomain.c:188, condition `<disabled>' not met

Error
    at Mc (dotnet.runtime.o0qy896u8v.js:3:172283)
    at dotnet.native.wasm.wasm_trace_logger (dotnet.native.902gcw54ur.wasm:0x2a3fe83)
    at dotnet.native.wasm.eglib_log_adapter (dotnet.native.902gcw54ur.wasm:0x285cdd8)
    at dotnet.native.wasm.monoeg_g_logv_nofree (dotnet.native.902gcw54ur.wasm:0x285af0a)
    at dotnet.native.wasm.monoeg_assertion_message (dotnet.native.902gcw54ur.wasm:0x285b03d)
    at dotnet.native.wasm.mono_assertion_message (dotnet.native.902gcw54ur.wasm:0x285b084)
    at dotnet.native.wasm.mono_assertion_message_disabled (dotnet.native.902gcw54ur.wasm:0x285b055)
    at dotnet.native.wasm.mono_runtime_init_checked (dotnet.native.902gcw54ur.wasm:0x287ecf2)
    at dotnet.native.wasm.mini_init (dotnet.native.902gcw54ur.wasm:0x28fae99)
    at dotnet.native.wasm.mono_jit_init_version (dotnet.native.902gcw54ur.wasm:0x29015d0)
Mc	@	dotnet.runtime.o0qy896u8v.js:3

dotnet.runtime.o0qy896u8v.js:3 MONO_WASM: mono_wasm_load_runtime () failed [object Object]
dotnet.js:4 Uncaught (in promise) 
ExitStatus
dotnet.runtime.o0qy896u8v.js:3 Uncaught (in promise) 
ExitStatus
dotnet.runtime.o0qy896u8v.js:3 Uncaught (in promise) 
ExitStatus
blazor.webassembly.j…cb39c8d391f6d4623:1 Uncaught (in promise) Error: Failed to start platform. Reason: [object Object]
    at qt (blazor.webassembly.j…d391f6d4623:1:58420)

We tried several properties in the csproj but the error is always the same:

<WasmEnableExceptionHandling>false</WasmEnableExceptionHandling>
<WasmEnableSIMD>false</WasmEnableSIMD>
<InvariantGlobalization>false</InvariantGlobalization>
<RunAOTCompilation>true</RunAOTCompilation>
<WasmBuildNative>true</WasmBuildNative>
<WasmNativeFileExtension>.wasm</WasmNativeFileExtension>
<WasmNativeStrip>false</WasmNativeStrip>
<WasmDedup>false</WasmDedup>

Reproduction Steps

Can not say, because of too less information out of the runtime

Expected behavior

It should work.

Actual behavior

It does NOT work.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Activity

  1. added
    untriaged
    on Nov 20, 2025
  2. added
    needs-area-label
    on Nov 20, 2025
  3. added
    arch-wasm
    and removed
    needs-area-label
    on Nov 20, 2025
  4. dotnet-policy-service commented on Nov 20, 2025

    @dotnet-policy-service
    Contributor

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

  5. dotnet-policy-service commented on Nov 20, 2025

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @steveisok, @vitek-karas
    See info in area-owners.md if you want to be subscribed.

  6. oroztocil commented on Nov 20, 2025

    @oroztocil
    Member

    @softwaretirol Thank you for contacting us.

    Can you provide more information about your project (e.g., framework version, build configuration)? Ideally, can you reproduce the problem in a minimal project that you can share on GitHub?

  7. added
    needs-author-action
    on Nov 20, 2025
  8. dotnet-policy-service commented on Nov 20, 2025

    @dotnet-policy-service
    Contributor

    This issue has been marked needs-author-action and may be missing some important information.

  9. oroztocil commented on Nov 20, 2025

    @oroztocil
    Member

    @softwaretirol If you look at the assertion in the source code, you can see you are hitting an "out of memory" error. However, without more information we cannot diagnose your problem further.

  10. rodolfograve commented on Nov 20, 2025

    @rodolfograve

    I have been struggling with what seems to be the same, or at least a related, issue. I have now spent 3 days trying different combinations of settings in the .csproj and I always end up with one of the following errors. I created a new ticket for my issue, in case they are not actually related: #121849

  11. removed
    untriaged
    on Nov 21, 2025
  12. dotnet-policy-service commented on Dec 5, 2025

    @dotnet-policy-service
    Contributor

    This issue has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

  13. dotnet-policy-service commented on Dec 19, 2025

    @dotnet-policy-service
    Contributor

    This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

  14. locked and limited conversation to collaborators on Jan 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-wasmarea-Codegen-meta-mononeeds-author-action

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions