Skip to content

UnmanagedCallersOnlyTest failing in AllSubsets_Mono_RuntimeTests  #42172

Closed

Description

@jkotas

Introduced by #42146 (comment)

Running TestUnmanagedCallersOnlyValid...
Test Failure: System.PlatformNotSupportedException: No native to managed transitions on this platform.
   at System.Delegate.CreateDelegate(Type type, Object firstArgument, MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed)
   at System.Delegate.CreateDelegate(Type type, Object firstArgument, MethodInfo method, Boolean throwOnBindFailure)
   at System.Delegate.CreateDelegate(Type type, Object firstArgument, MethodInfo method)
   at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType)
   at Program.TestUnmanagedCallersOnlyValid()
   at Program.Main(String[] args)

cc @AaronRobinsonMSFT

Activity

  1. added
    blocking-clean-ci
    on Sep 13, 2020
  2. added
    untriaged
    on Sep 13, 2020
  3. removed
    untriaged
    on Sep 14, 2020
  4. AaronRobinsonMSFT commented on Sep 14, 2020

    @AaronRobinsonMSFT
    Member

    I made a rushed decision here and introduced this issue. The 'fix' is to disable the tests for WASM as support doesn't exist to call back into managed from native code on WASM at present.

  5. v-haren commented on Sep 14, 2020

    @v-haren

    failed again in job: runtime 20200913.23

    failed test: Interop/UnmanagedCallersOnly/UnmanagedCallersOnlyTest/UnmanagedCallersOnlyTest.sh

    Mono Browser wasm Release @ Ubuntu.1804.Amd64.Open

    Error message

    Return code:      1
    Raw output file:      /home/helixbot/work/ABC40918/w/B8260A3F/e/Interop/UnmanagedCallersOnly/Reports/Interop.UnmanagedCallersOnly/UnmanagedCallersOnlyTest/UnmanagedCallersOnlyTest.output.txt
    Raw output:
    BEGIN EXECUTION
    Microsoft (R) Build Engine version 16.8.0-preview-20451-02+51a1071f8 for .NET
    Copyright (C) Microsoft Corporation. All rights reserved.
    
      You are using a preview version of .NET. See: https://aka.ms/dotnet-core-preview
      AppDir: /home/helixbot/work/ABC40918/w/B8260A3F/e/Interop/UnmanagedCallersOnly/UnmanagedCallersOnlyTest/WasmApp/
      TestBinDir: /home/helixbot/work/ABC40918/w/B8260A3F/e/Interop/UnmanagedCallersOnly/UnmanagedCallersOnlyTest
      ArtifactsBinDir: 
    Arguments: --run,UnmanagedCallersOnlyTest.dll,UnmanagedCallersOnlyTest
    console.debug: MONO_WASM: Initializing mono runtime
    console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode
    console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
    Initializing.....
    Running TestUnmanagedCallersOnlyValid...
    Test Failure: System.PlatformNotSupportedException: No native to managed transitions on this platform.
       at System.Delegate.CreateDelegate(Type type, Object firstArgument, MethodInfo method, Boolean throwOnBindFailure, Boolean allowClosed)
       at System.Delegate.CreateDelegate(Type type, Object firstArgument, MethodInfo method, Boolean throwOnBindFailure)
       at System.Delegate.CreateDelegate(Type type, Object firstArgument, MethodInfo method)
       at System.Reflection.Emit.DynamicMethod.CreateDelegate(Type delegateType)
       at Program.TestUnmanagedCallersOnlyValid()
       at Program.Main(String[] args)
    
    Expected: 100
    Actual: 101
    END EXECUTION - FAILED
    Test Harness Exitcode is : 1
    To run the test:
    > set CORE_ROOT=/home/helixbot/work/ABC40918/p
    > /home/helixbot/work/ABC40918/w/B8260A3F/e/Interop/UnmanagedCallersOnly/UnmanagedCallersOnlyTest/UnmanagedCallersOnlyTest.sh
    Expected: True
    Actual:   False
    
    
    Stack trace
       at Interop_UnmanagedCallersOnly._UnmanagedCallersOnlyTest_UnmanagedCallersOnlyTest_._UnmanagedCallersOnlyTest_UnmanagedCallersOnlyTest_sh() in /__w/1/s/artifacts/tests/coreclr/Browser.wasm.Release/TestWrappers/Interop.UnmanagedCallersOnly/Interop.UnmanagedCallersOnly.XUnitWrapper.cs:line 140
    
  6. ghost closed this as completedin #42191on Sep 14, 2020
  7. ghost locked as resolved and limited conversation to collaborators on Dec 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area-Interop-coreclrblocking-clean-ci

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions