Skip to content

Collectible AssemblyLoadContexts are not supported by WebAssembly #34072

Open

Description

@SamMonoRT

When running the following CoreCLR tests on the Mono runtime from the dotnet\runtime repo, we get the error :

System.ExecutionEngineException: Collectible AssemblyLoadContexts are not yet supported by MonoVM
             at System.Runtime.Loader.AssemblyLoadContext.InitializeAssemblyLoadContext(IntPtr thisHandlePtr, Boolean representsTPALoadContext, Boolean isCollectible) in /Users/samarthpatel/Documents/DotNetRunTime/runtime/src/mono/netcore/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.Mono.cs:line 23
             at System.Runtime.Loader.AssemblyLoadContext..ctor(Boolean representsTPALoadContext, Boolean isCollectible, String name) in /Users/samarthpatel/Documents/DotNetRunTime/runtime/src/libraries/System.Private.CoreLib/src/System/Runtime/Loader/AssemblyLoadContext.cs:line 94
             at System.Runtime.Loader.AssemblyLoadContext..ctor(Boolean isCollectible) in 

Tests failing with this issue :

  1. Interop/ICustomMarshaler/ConflictingNames/MultipleALCs/MultipleALCs.sh
  2. Loader/ContextualReflection/ContextualReflection/ContextualReflection.sh

Repro : Command to run individual tests : From the dotnet\runtime repo src\mono\netcore run this command - make run-tests-coreclr CoreClrTest="bash ../../artifacts/tests/coreclr/OSX.x64.Debug/Interop/ICustomMarshaler/ConflictingNames/MultipleALCs/MultipleALCs.sh"

Activity

  1. added
    runtime-mono
    on Mar 25, 2020
  2. added
    untriaged
    on Mar 25, 2020
  3. added and removed
    untriaged
    on Mar 25, 2020
  4. added this to the 5.0.0 milestone on Jun 22, 2020
  5. modified the milestones: 5.0.0, 6.0.0 on Jul 14, 2020
  6. CoffeeFlux commented on Jan 28, 2021

    @CoffeeFlux
    Contributor

    Using this as the new tracking issue for both the runtime and libraries tests.

  7. SamMonoRT commented on Jun 23, 2021

    @SamMonoRT
    MemberAuthor

    This is not going to fit in for .NET6. Moving to 7.0.0 - Opportunistically might get to some cleanup work earlier.

  8. modified the milestones: 6.0.0, 7.0.0 on Jun 23, 2021
  9. 10 remaining items

  10. added this to the Future milestone on Feb 9, 2024
  11. srxqds commented on Mar 8, 2025

    @srxqds
    Contributor

    Any progress and plan about it?

  12. removed their assignment
    on May 21, 2025
  13. changed the title [-]Collectible AssemblyLoadContexts are not supported by MonoVM [/-] [+]Collectible AssemblyLoadContexts are not supported by WebAssembly[/+] on Apr 22, 2026
  14. added
    arch-wasm
    runtime-coreclr
    on Apr 22, 2026
  15. dotnet-policy-service commented on Apr 22, 2026

    @dotnet-policy-service
    Contributor

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

  16. added
    disabled-test
    on Oct 5, 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-AssemblyLoader-monodisabled-testruntime-coreclrruntime-mono

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions