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

UnmanagedCallersOnlyTest failing in AllSubsets_Mono_RuntimeTests #42172

Closed
jkotas opened this issue Sep 13, 2020 · 2 comments · Fixed by #42191
Closed

UnmanagedCallersOnlyTest failing in AllSubsets_Mono_RuntimeTests #42172

jkotas opened this issue Sep 13, 2020 · 2 comments · Fixed by #42191
Assignees
Labels
area-Interop-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'

Comments

@jkotas
Copy link
Member

jkotas commented Sep 13, 2020

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

@jkotas jkotas added area-Interop-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms' labels Sep 13, 2020
@maryamariyan maryamariyan added the untriaged New issue has not been triaged by the area owner label Sep 13, 2020
@AaronRobinsonMSFT AaronRobinsonMSFT removed the untriaged New issue has not been triaged by the area owner label Sep 14, 2020
@AaronRobinsonMSFT
Copy link
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.

@v-haren
Copy link

v-haren commented Sep 14, 2020

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

@ghost ghost closed this as completed in #42191 Sep 14, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 7, 2020
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-Interop-coreclr blocking-clean-ci Blocking PR or rolling runs of 'runtime' or 'runtime-extra-platforms'
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants