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

[Mono][Test] Wasm-AOT runtime tests failing with Running wasm-aot libraries tests if failing locally with System.InvalidOperationException: Sequence contains more than one element. #49717

Closed
naricc opened this issue Mar 16, 2021 · 5 comments
Assignees
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono test-bug Problem in test source code (most likely) untriaged New issue has not been triaged by the area owner

Comments

@naricc
Copy link
Contributor

naricc commented Mar 16, 2021

Running wasm-aot libraries tests if failing locally with System.InvalidOperationException: Sequence contains more than one element. (full error message and stack trace below). This seem to happen with all libraries tests.

Tests runtime was built using:

./dotnet.sh build /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true src/libraries/tests.proj 

Command to run tests:

 ./dotnet.sh build /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true  /p:WasmNativeStrip=false /p:WasmNativeDebug=true 
 src/libraries/System.ComponentModel.TypeConverter/tests/

Output:

 XHarness command issued: wasm test --app=. --engine=V8 --engine-arg=--stack-trace-limit=1000 --js-file=runtime.js --output-directory=/Users/naricc/workspace/runtime-wasm-lib-test/artifacts/bin/System.ComponentModel.TypeConverter.Tests/net6.0-Debug/browser-wasm/AppBundle/xharness-output -- --run WasmTestRunner.dll System.ComponentModel.TypeConverter.Tests.dll -notrait category=OuterLoop -notrait category=failing
  info: 15:18:18.5334530 Running v8 --expose_wasm --stack-trace-limit=1000 runtime.js -- --run WasmTestRunner.dll System.ComponentModel.TypeConverter.Tests.dll -notrait category=OuterLoop -notrait category=failing
        
        
  fail: 15:18:19.4135220 console.error: System.AggregateException: AggregateException_ctor_DefaultMessage (Sequence contains more than one element)
        
  fail: 15:18:19.4138440  ---> System.InvalidOperationException: Sequence contains more than one element
        
  fail: 15:18:19.4138720 
        
  fail: 15:18:19.4138810    Exception_EndOfInnerExceptionStack
        
  fail: 15:18:19.4139410 console.error: program exited (with status: 1), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)
        
  info: console.info: Arguments: --run,WasmTestRunner.dll,System.ComponentModel.TypeConverter.Tests.dll,-notrait,category=OuterLoop,-notrait,category=failing
  info: console.debug: MONO_WASM: Initializing mono runtime
  info: console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode
  info: console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
  info: console.info: Initializing.....
  info: Assembly-level test framework attribute was not decorated with [TestFrameworkDiscoverer]
  info: Throw stacktrace:
  info: 
  info: Error
  info:     at 171549 (dotnet.js:1599:32)
  info:     at _emscripten_asm_const_int (dotnet.js:5983:31)
  info:     at mono_llvm_cpp_throw_exception (<anonymous>:wasm-function[6363]:0x18c453)
  info:     at throw_exception (<anonymous>:wasm-function[5795]:0x170757)
  info:     at mono_llvm_throw_exception (<anonymous>:wasm-function[5751]:0x16bfbc)
  info:     at System_Linq_System_Linq_ThrowHelper_ThrowMoreThanOneElementException (<anonymous>:wasm-function[55516]:0xf1b978)
  info:     at System_Linq_System_Linq_Enumerable_SingleOrDefault_TSource_REF_System_Collections_Generic_IEnumerable_1_TSource_REF (<anonymous>:wasm-function[55519]:0xf1cc9b)
  info:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestFrameworkDiscoverer__ctor_Xunit_Abstractions_IAssemblyInfo_Xunit_Abstractions_ISourceInformationProvider_Xunit_Abstractions_IMessageSink_Xunit_Sdk_IXunitTestCollectionFactory (<anonymous>:wasm-function[34640]:0x8dfa0b)
  info:     at xunit_execution_dotnet_Xunit_Sdk_XunitTestFramework_CreateDiscoverer_Xunit_Abstractions_IAssemblyInfo (<anonymous>:wasm-function[34639]:0x8df82f)
  info:     at xunit_execution_dotnet_Xunit_Sdk_TestFramework_GetDiscoverer_Xunit_Abstractions_IAssemblyInfo (<anonymous>:wasm-function[34500]:0x8cb163)
  info:     at xunit_execution_dotnet_Xunit_Sdk_TestFrameworkProxy_GetDiscoverer_Xunit_Abstractions_IAssemblyInfo (<anonymous>:wasm-function[34541]:0x8ce8ea)
  info:     at xunit_runner_utility_netcoreapp10_Xunit_Xunit2Discoverer__ctor_Xunit_AppDomainSupport_Xunit_Abstractions_ISourceInformationProvider_Xunit_Abstractions_IAssemblyInfo_string_string_string_bool_string_Xunit_Abstractions_IMessageSink_bool (<anonymous>:wasm-function[33647]:0x84be9c)
  info:     at xunit_runner_utility_netcoreapp10_Xunit_Xunit2Discoverer__ctor_Xunit_AppDomainSupport_Xunit_Abstractions_ISourceInformationProvider_string_string_bool_string_Xunit_Abstractions_IMessageSink_bool (<anonymous>:wasm-function[33641]:0x84add7)
  info:     at xunit_runner_utility_netcoreapp10_Xunit_Xunit2__ctor_Xunit_AppDomainSupport_Xunit_Abstractions_ISourceInformationProvider_string_string_bool_string_Xunit_Abstractions_IMessageSink_bool (<anonymous>:wasm-function[33640]:0x84ab25)
  info:     at invoke_viiiiiiiiii (dotnet.js:11864:25)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_MoveNext (<anonymous>:wasm-function[64882]:0x129f973)
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner__Rund__0_ (<anonymous>:wasm-function[64920]:0x12a9ca8)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_ThreadlessXunitTestRunner_Run_string_bool_Xunit_XunitFilters (<anonymous>:wasm-function[64868]:0x129e705)
  info:     at invoke_iiiiii (dotnet.js:11721:32)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_MoveNext (<anonymous>:wasm-function[64903]:0x12a69d6)
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_ (<anonymous>:wasm-function[64930]:0x12aa756)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint_Run (<anonymous>:wasm-function[64900]:0x12a3922)
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at WasmTestRunner_SimpleWasmTestRunner__Maind__0_MoveNext (<anonymous>:wasm-function[36199]:0x973902)
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at corlib_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_REF_TStateMachine_REF_ (<anonymous>:wasm-function[45343]:0xc13eff)
  info:     at WasmTestRunner_SimpleWasmTestRunner_Main_string__ (<anonymous>:wasm-function[36194]:0x971bca)
  info:     at aot_instances_aot_wrapper_gsharedvt_out_sig_obj_obj (<anonymous>:wasm-function[19876]:0x3bfa6a)
  info:     at invoke_viii (dotnet.js:11710:25)
  info:     at aot_instances_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[20388]:0x3dbcf6)
  info:     at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[5398]:0x1536cb)
  info:     at mono_jit_runtime_invoke (<anonymous>:wasm-function[5377]:0x15190a)
  info:     at do_runtime_invoke (<anonymous>:wasm-function[2467]:0xc0c4e)
  info:     at mono_runtime_try_invoke (<anonymous>:wasm-function[2483]:0xc17d5)
  info:     at mono_runtime_invoke (<anonymous>:wasm-function[2545]:0xc5786)
  info:     at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1323510)
  info:     at dotnet.js:1431:22
  info:     at ccall (dotnet.js:645:18)
  info:     at Object.invoke_method (dotnet.js:657:12)
  info:     at Object._call_method_with_converted_args (dotnet.js:9483:30)
  info:     at Object.call_method (dotnet.js:9443:18)
  info:     at dotnet.js:9702:29
  info:     at Object.call_assembly_entry_point (dotnet.js:9709:66)
  info:     at Object.init (runtime.js:355:24)
  info:     at Object.config.loaded_cb (runtime.js:241:8)
  info:     at Object._finalize_startup (dotnet.js:7662:11)
  info:     at onPendingRequestComplete (dotnet.js:7699:14)
  info:     at processFetchResponseBuffer (dotnet.js:7714:8)
  info: Throw stacktrace:
  info: 
  info: Error
  info:     at 171549 (dotnet.js:1599:32)
  info:     at _emscripten_asm_const_int (dotnet.js:5983:31)
  info:     at mono_llvm_cpp_throw_exception (<anonymous>:wasm-function[6363]:0x18c453)
  info:     at throw_exception (<anonymous>:wasm-function[5795]:0x170757)
  info:     at mono_llvm_throw_exception (<anonymous>:wasm-function[5751]:0x16bfbc)
  info:     at corlib_System_Runtime_ExceptionServices_ExceptionDispatchInfo_Throw (<anonymous>:wasm-function[41776]:0xb29ea5)
  info:     at corlib_System_Runtime_CompilerServices_TaskAwaiter_ThrowForNonSuccess_System_Threading_Tasks_Task (<anonymous>:wasm-function[46222]:0xc50114)
  info:     at corlib_System_Runtime_CompilerServices_TaskAwaiter_HandleNonSuccessAndDebuggerNotification_System_Threading_Tasks_Task (<anonymous>:wasm-function[46221]:0xc4fefa)
  info:     at corlib_System_Runtime_CompilerServices_TaskAwaiter_ValidateEnd_System_Threading_Tasks_Task (<anonymous>:wasm-function[45867]:0xc3f8b6)
  info:     at aot_instances_System_Runtime_CompilerServices_TaskAwaiter_1_TResult_INT_GetResult (<anonymous>:wasm-function[16935]:0x317b0c)
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_MoveNext (<anonymous>:wasm-function[64903]:0x12a6d94)
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint__Rund__24_ (<anonymous>:wasm-function[64930]:0x12aa756)
  info:     at Microsoft_DotNet_XHarness_TestRunners_Xunit_Microsoft_DotNet_XHarness_TestRunners_Xunit_WasmApplicationEntryPoint_Run (<anonymous>:wasm-function[64900]:0x12a3922)
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at WasmTestRunner_SimpleWasmTestRunner__Maind__0_MoveNext (<anonymous>:wasm-function[36199]:0x973902)
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at corlib_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_REF_TStateMachine_REF_ (<anonymous>:wasm-function[45343]:0xc13eff)
  info:     at WasmTestRunner_SimpleWasmTestRunner_Main_string__ (<anonymous>:wasm-function[36194]:0x971bca)
  info:     at aot_instances_aot_wrapper_gsharedvt_out_sig_obj_obj (<anonymous>:wasm-function[19876]:0x3bfa6a)
  info:     at invoke_viii (dotnet.js:11710:25)
  info:     at aot_instances_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[20388]:0x3dbcf6)
  info:     at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[5398]:0x1536cb)
  info:     at mono_jit_runtime_invoke (<anonymous>:wasm-function[5377]:0x15190a)
  info:     at do_runtime_invoke (<anonymous>:wasm-function[2467]:0xc0c4e)
  info:     at mono_runtime_try_invoke (<anonymous>:wasm-function[2483]:0xc17d5)
  info:     at mono_runtime_invoke (<anonymous>:wasm-function[2545]:0xc5786)
  info:     at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1323510)
  info:     at dotnet.js:1431:22
  info:     at ccall (dotnet.js:645:18)
  info:     at Object.invoke_method (dotnet.js:657:12)
  info:     at Object._call_method_with_converted_args (dotnet.js:9483:30)
  info:     at Object.call_method (dotnet.js:9443:18)
  info:     at dotnet.js:9702:29
  info:     at Object.call_assembly_entry_point (dotnet.js:9709:66)
  info:     at Object.init (runtime.js:355:24)
  info:     at Object.config.loaded_cb (runtime.js:241:8)
  info:     at Object._finalize_startup (dotnet.js:7662:11)
  info:     at onPendingRequestComplete (dotnet.js:7699:14)
  info:     at processFetchResponseBuffer (dotnet.js:7714:8)
  info: Throw stacktrace:
  info: 
  info: Error
  info:     at 171549 (dotnet.js:1599:32)
  info:     at _emscripten_asm_const_int (dotnet.js:5983:31)
  info:     at mono_llvm_cpp_throw_exception (<anonymous>:wasm-function[6363]:0x18c453)
  info:     at throw_exception (<anonymous>:wasm-function[5795]:0x170757)
  info:     at mono_llvm_throw_exception (<anonymous>:wasm-function[5751]:0x16bfbc)
  info:     at corlib_System_Runtime_ExceptionServices_ExceptionDispatchInfo_Throw (<anonymous>:wasm-function[41776]:0xb29ea5)
  info:     at corlib_System_Runtime_CompilerServices_TaskAwaiter_ThrowForNonSuccess_System_Threading_Tasks_Task (<anonymous>:wasm-function[46222]:0xc50114)
  info:     at corlib_System_Runtime_CompilerServices_TaskAwaiter_HandleNonSuccessAndDebuggerNotification_System_Threading_Tasks_Task (<anonymous>:wasm-function[46221]:0xc4fefa)
  info:     at corlib_System_Runtime_CompilerServices_TaskAwaiter_ValidateEnd_System_Threading_Tasks_Task (<anonymous>:wasm-function[45867]:0xc3f8b6)
  info:     at aot_instances_System_Runtime_CompilerServices_TaskAwaiter_1_TResult_INT_GetResult (<anonymous>:wasm-function[16935]:0x317b0c)
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at WasmTestRunner_SimpleWasmTestRunner__Maind__0_MoveNext (<anonymous>:wasm-function[36199]:0x97505b)
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at corlib_System_Runtime_CompilerServices_AsyncMethodBuilderCore_Start_TStateMachine_REF_TStateMachine_REF_ (<anonymous>:wasm-function[45343]:0xc13eff)
  info:     at WasmTestRunner_SimpleWasmTestRunner_Main_string__ (<anonymous>:wasm-function[36194]:0x971bca)
  info:     at aot_instances_aot_wrapper_gsharedvt_out_sig_obj_obj (<anonymous>:wasm-function[19876]:0x3bfa6a)
  info:     at invoke_viii (dotnet.js:11710:25)
  info:     at aot_instances_wrapper_runtime_invoke_object_runtime_invoke_sig_void_intptr_intptr_intptr_object_intptr_intptr_intptr (<anonymous>:wasm-function[20388]:0x3dbcf6)
  info:     at mono_llvmonly_runtime_invoke (<anonymous>:wasm-function[5398]:0x1536cb)
  info:     at mono_jit_runtime_invoke (<anonymous>:wasm-function[5377]:0x15190a)
  info:     at do_runtime_invoke (<anonymous>:wasm-function[2467]:0xc0c4e)
  info:     at mono_runtime_try_invoke (<anonymous>:wasm-function[2483]:0xc17d5)
  info:     at mono_runtime_invoke (<anonymous>:wasm-function[2545]:0xc5786)
  info:     at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1323510)
  info:     at dotnet.js:1431:22
  info:     at ccall (dotnet.js:645:18)
  info:     at Object.invoke_method (dotnet.js:657:12)
  info:     at Object._call_method_with_converted_args (dotnet.js:9483:30)
  info:     at Object.call_method (dotnet.js:9443:18)
  info:     at dotnet.js:9702:29
  info:     at Object.call_assembly_entry_point (dotnet.js:9709:66)
  info:     at Object.init (runtime.js:355:24)
  info:     at Object.config.loaded_cb (runtime.js:241:8)
  info:     at Object._finalize_startup (dotnet.js:7662:11)
  info:     at onPendingRequestComplete (dotnet.js:7699:14)
  info:     at processFetchResponseBuffer (dotnet.js:7714:8)
  info: 15:18:19.5156760 Process v8 exited with 1
        
  fail: Application has finished with exit code 1 but 0 was expected
  XHarness exit code: 71 (GENERAL_FAILURE)
  XHarness artifacts: /Users/naricc/workspace/runtime-wasm-lib-test/artifacts/bin/System.ComponentModel.TypeConverter.Tests/net6.0-Debug/browser-wasm/AppBundle/xharness-output
/Users/naricc/workspace/runtime-wasm-lib-test/eng/testing/tests.targets(117,5): error : One or more tests failed while running tests from 'System.ComponentModel.TypeConverter.Tests'. [/Users/naricc/workspace/runtime-wasm-lib-test/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]

Build FAILED.

/Users/naricc/workspace/runtime-wasm-lib-test/eng/testing/tests.targets(117,5): error : One or more tests failed while running tests from 'System.ComponentModel.TypeConverter.Tests'. [/Users/naricc/workspace/runtime-wasm-lib-test/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
    0 Warning(s)
    1 Error(s)
@naricc naricc added arch-wasm WebAssembly architecture test-bug Problem in test source code (most likely) area-Infrastructure-mono labels Mar 16, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged New issue has not been triaged by the area owner label Mar 16, 2021
@ghost
Copy link

ghost commented Mar 16, 2021

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

Issue Details

Running wasm-aot libraries tests if failing locally with System.InvalidOperationException: Sequence contains more than one element. (full error message and stack trace below). This seem to happen with all libraries tests.

Tests runtime was built using:

./dotnet.sh build /t:Test /p:TargetOS=Browser /p:TargetArchitecture=wasm /p:Configuration=Release /p:EnableAggressiveTrimming=true /p:RunAOTCompilation=true src/libraries/tests.proj

v8 --expose_wasm --stack-trace-limit=1000 runtime.js -- --run WasmTestRunner.dll System.ComponentModel.TypeConverter.Tests.dll -notrait category=OuterLoop -notrait category=failing
        
        
  fail: 13:20:28.1720210 console.error: System.AggregateException: AggregateException_ctor_DefaultMessage (Sequence contains more than one element)
        
  fail: 13:20:28.1722750  ---> System.InvalidOperationException: Sequence contains more than one element
        
  fail: 13:20:28.1722960 
        
  fail: 13:20:28.1723030    Exception_EndOfInnerExceptionStack
        
  fail: 13:20:28.1723270 console.error: program exited (with status: 1), but EXIT_RUNTIME is not set, so halting execution but not exiting the runtime or preventing further async execution (build with EXIT_RUNTIME=1, if you want a true shutdown)
        
  info: console.info: Arguments: --run,WasmTestRunner.dll,System.ComponentModel.TypeConverter.Tests.dll,-notrait,category=OuterLoop,-notrait,category=failing
  info: console.debug: MONO_WASM: Initializing mono runtime
  info: console.debug: MONO_WASM: ICU data archive(s) loaded, disabling invariant mode
  info: console.debug: mono_wasm_runtime_ready fe00e07a-5519-4dfe-b35a-f867dbaf2e28
  info: console.info: Initializing.....
  info: Assembly-level test framework attribute was not decorated with [TestFrameworkDiscoverer]
  info: Throw stacktrace:
  info: 
  info: Error
  info:     at 171549 (dotnet.js:1599:32)
  info:     at _emscripten_asm_const_int (dotnet.js:5983:31)
  info:     at <anonymous>:wasm-function[6363]:0x187445
  info:     at <anonymous>:wasm-function[5795]:0x16bcd6
  info:     at <anonymous>:wasm-function[5751]:0x16763d
  info:     at <anonymous>:wasm-function[55516]:0xf05091
  info:     at <anonymous>:wasm-function[55519]:0xf063a2
  info:     at <anonymous>:wasm-function[34640]:0x8d02a5
  info:     at <anonymous>:wasm-function[34639]:0x8d00c9
  info:     at <anonymous>:wasm-function[34500]:0x8bbad2
  info:     at <anonymous>:wasm-function[34541]:0x8bf235
  info:     at <anonymous>:wasm-function[33647]:0x83ce14
  info:     at <anonymous>:wasm-function[33641]:0x83bd59
  info:     at <anonymous>:wasm-function[33640]:0x83baa7
  info:     at invoke_viiiiiiiiii (dotnet.js:11864:25)
  info:     at <anonymous>:wasm-function[64882]:0x128563a
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at <anonymous>:wasm-function[64920]:0x128f915
  info:     at <anonymous>:wasm-function[64868]:0x12843f4
  info:     at invoke_iiiiii (dotnet.js:11721:32)
  info:     at <anonymous>:wasm-function[64903]:0x128c67b
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at <anonymous>:wasm-function[64930]:0x12903b7
  info:     at <anonymous>:wasm-function[64900]:0x12895db
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at <anonymous>:wasm-function[36199]:0x9637e8
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at <anonymous>:wasm-function[45343]:0xc004c8
  info:     at <anonymous>:wasm-function[36194]:0x961abc
  info:     at <anonymous>:wasm-function[19876]:0x3b4586
  info:     at invoke_viii (dotnet.js:11710:25)
  info:     at <anonymous>:wasm-function[20388]:0x3d055c
  info:     at <anonymous>:wasm-function[5398]:0x14f2b1
  info:     at <anonymous>:wasm-function[5377]:0x14d542
  info:     at <anonymous>:wasm-function[2467]:0xbea46
  info:     at <anonymous>:wasm-function[2483]:0xbf5b9
  info:     at <anonymous>:wasm-function[2545]:0xc345e
  info:     at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1308bb5)
  info:     at dotnet.js:1431:22
  info:     at ccall (dotnet.js:645:18)
  info:     at Object.invoke_method (dotnet.js:657:12)
  info:     at Object._call_method_with_converted_args (dotnet.js:9483:30)
  info:     at Object.call_method (dotnet.js:9443:18)
  info:     at dotnet.js:9702:29
  info:     at Object.call_assembly_entry_point (dotnet.js:9709:66)
  info:     at Object.init (runtime.js:355:24)
  info:     at Object.config.loaded_cb (runtime.js:241:8)
  info:     at Object._finalize_startup (dotnet.js:7662:11)
  info:     at onPendingRequestComplete (dotnet.js:7699:14)
  info:     at processFetchResponseBuffer (dotnet.js:7714:8)
  info: Throw stacktrace:
  info: 
  info: Error
  info:     at 171549 (dotnet.js:1599:32)
  info:     at _emscripten_asm_const_int (dotnet.js:5983:31)
  info:     at <anonymous>:wasm-function[6363]:0x187445
  info:     at <anonymous>:wasm-function[5795]:0x16bcd6
  info:     at <anonymous>:wasm-function[5751]:0x16763d
  info:     at <anonymous>:wasm-function[41776]:0xb179cf
  info:     at <anonymous>:wasm-function[46222]:0xc3c2ee
  info:     at <anonymous>:wasm-function[46221]:0xc3c0d4
  info:     at <anonymous>:wasm-function[45867]:0xc2bbd2
  info:     at <anonymous>:wasm-function[16935]:0x30d744
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at <anonymous>:wasm-function[64903]:0x128ca39
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at <anonymous>:wasm-function[64930]:0x12903b7
  info:     at <anonymous>:wasm-function[64900]:0x12895db
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at <anonymous>:wasm-function[36199]:0x9637e8
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at <anonymous>:wasm-function[45343]:0xc004c8
  info:     at <anonymous>:wasm-function[36194]:0x961abc
  info:     at <anonymous>:wasm-function[19876]:0x3b4586
  info:     at invoke_viii (dotnet.js:11710:25)
  info:     at <anonymous>:wasm-function[20388]:0x3d055c
  info:     at <anonymous>:wasm-function[5398]:0x14f2b1
  info:     at <anonymous>:wasm-function[5377]:0x14d542
  info:     at <anonymous>:wasm-function[2467]:0xbea46
  info:     at <anonymous>:wasm-function[2483]:0xbf5b9
  info:     at <anonymous>:wasm-function[2545]:0xc345e
  info:     at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1308bb5)
  info:     at dotnet.js:1431:22
  info:     at ccall (dotnet.js:645:18)
  info:     at Object.invoke_method (dotnet.js:657:12)
  info:     at Object._call_method_with_converted_args (dotnet.js:9483:30)
  info:     at Object.call_method (dotnet.js:9443:18)
  info:     at dotnet.js:9702:29
  info:     at Object.call_assembly_entry_point (dotnet.js:9709:66)
  info:     at Object.init (runtime.js:355:24)
  info:     at Object.config.loaded_cb (runtime.js:241:8)
  info:     at Object._finalize_startup (dotnet.js:7662:11)
  info:     at onPendingRequestComplete (dotnet.js:7699:14)
  info:     at processFetchResponseBuffer (dotnet.js:7714:8)
  info: Throw stacktrace:
  info: 
  info: Error
  info:     at 171549 (dotnet.js:1599:32)
  info:     at _emscripten_asm_const_int (dotnet.js:5983:31)
  info:     at <anonymous>:wasm-function[6363]:0x187445
  info:     at <anonymous>:wasm-function[5795]:0x16bcd6
  info:     at <anonymous>:wasm-function[5751]:0x16763d
  info:     at <anonymous>:wasm-function[41776]:0xb179cf
  info:     at <anonymous>:wasm-function[46222]:0xc3c2ee
  info:     at <anonymous>:wasm-function[46221]:0xc3c0d4
  info:     at <anonymous>:wasm-function[45867]:0xc2bbd2
  info:     at <anonymous>:wasm-function[16935]:0x30d744
  info:     at invoke_iii (dotnet.js:11655:32)
  info:     at <anonymous>:wasm-function[36199]:0x964f41
  info:     at invoke_vii (dotnet.js:11666:25)
  info:     at <anonymous>:wasm-function[45343]:0xc004c8
  info:     at <anonymous>:wasm-function[36194]:0x961abc
  info:     at <anonymous>:wasm-function[19876]:0x3b4586
  info:     at invoke_viii (dotnet.js:11710:25)
  info:     at <anonymous>:wasm-function[20388]:0x3d055c
  info:     at <anonymous>:wasm-function[5398]:0x14f2b1
  info:     at <anonymous>:wasm-function[5377]:0x14d542
  info:     at <anonymous>:wasm-function[2467]:0xbea46
  info:     at <anonymous>:wasm-function[2483]:0xbf5b9
  info:     at <anonymous>:wasm-function[2545]:0xc345e
  info:     at mono_wasm_invoke_method (<anonymous>:wasm-function[65878]:0x1308bb5)
  info:     at dotnet.js:1431:22
  info:     at ccall (dotnet.js:645:18)
  info:     at Object.invoke_method (dotnet.js:657:12)
  info:     at Object._call_method_with_converted_args (dotnet.js:9483:30)
  info:     at Object.call_method (dotnet.js:9443:18)
  info:     at dotnet.js:9702:29
  info:     at Object.call_assembly_entry_point (dotnet.js:9709:66)
  info:     at Object.init (runtime.js:355:24)
  info:     at Object.config.loaded_cb (runtime.js:241:8)
  info:     at Object._finalize_startup (dotnet.js:7662:11)
  info:     at onPendingRequestComplete (dotnet.js:7699:14)
  info:     at processFetchResponseBuffer (dotnet.js:7714:8)
  info: 13:20:28.2122310 Process v8 exited with 1
        
  fail: Application has finished with exit code 1 but 0 was expected
  XHarness exit code: 71 (GENERAL_FAILURE)
  XHarness artifacts: /Users/naricc/workspace/runtime-wasm-lib-test/artifacts/bin/System.ComponentModel.TypeConverter.Tests/net6.0-Debug/browser-wasm/AppBundle/xharness-output
/Users/naricc/workspace/runtime-wasm-lib-test/eng/testing/tests.targets(117,5): error : One or more tests failed while running tests from 'System.ComponentModel.TypeConverter.Tests'. [/Users/naricc/workspace/runtime-wasm-lib-test/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]

Build FAILED.

/Users/naricc/workspace/runtime-wasm-lib-test/eng/testing/tests.targets(117,5): error : One or more tests failed while running tests from 'System.ComponentModel.TypeConverter.Tests'. [/Users/naricc/workspace/runtime-wasm-lib-test/src/libraries/System.ComponentModel.TypeConverter/tests/System.ComponentModel.TypeConverter.Tests.csproj]
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:05:43.73```

<table>
  <tr>
    <th align="left">Author:</th>
    <td>naricc</td>
  </tr>
  <tr>
    <th align="left">Assignees:</th>
    <td>-</td>
  </tr>
  <tr>
    <th align="left">Labels:</th>
    <td>

`arch-wasm`, `area-Infrastructure-mono`, `test bug`

</td>
  </tr>
  <tr>
    <th align="left">Milestone:</th>
    <td>-</td>
  </tr>
</table>
</details>

@naricc
Copy link
Contributor Author

naricc commented Mar 16, 2021

@mdh1418 I couldn't find an existing issue for this, so I created one.

@naricc naricc self-assigned this Mar 16, 2021
@naricc
Copy link
Contributor Author

naricc commented Mar 16, 2021

After tracing this a while, it seems like this is the not very helpful error message you get from XUnit if you supply an incompatible list of attributes: https://github.com/xunit/xunit/blob/5d00c2d668705b0f9303a124e0f8c8471e5f1e93/src/xunit.v3.core/Sdk/v3/Framework/XunitTestFrameworkDiscoverer.cs#L40

I am not sure where we are adding these attributes so that every, or most tests, are effected though.

@tqiu8
Copy link
Contributor

tqiu8 commented Mar 17, 2021

This issue seems to happen after #49538 was merged. cc @vargaz

@naricc
Copy link
Contributor Author

naricc commented Mar 23, 2021

Fixed.

@naricc naricc closed this as completed Mar 23, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Infrastructure-mono test-bug Problem in test source code (most likely) untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

2 participants