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] Tests failed on windows: System.Management.Tests #34689

Closed
MaximLipnin opened this issue Apr 8, 2020 · 1 comment
Closed

[mono] Tests failed on windows: System.Management.Tests #34689

MaximLipnin opened this issue Apr 8, 2020 · 1 comment
Labels
area-System.Management runtime-mono specific to the Mono runtime untriaged New issue has not been triaged by the area owner

Comments

@MaximLipnin
Copy link
Contributor

Several System.Management.Tests fail on windows with the following output:

System.Management.Tests.ManagementObjectSearcherTests.Dynamic_Instances [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(644,0): at System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler)
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(626,0): at System.Management.ManagementScope._Clone(ManagementScope scope)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(208,0): at System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(87,0): at System.Management.ManagementObjectSearcher..ctor()
    _\src\libraries\System.Management\tests\System\Management\ManagementObjectSearcherTests.cs(15,0): at System.Management.Tests.ManagementObjectSearcherTests.Dynamic_Instances()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementObjectTests.Set_Property_Win32_ComputerSystem [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(644,0): at System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler)
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(626,0): at System.Management.ManagementScope._Clone(ManagementScope scope)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(208,0): at System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(87,0): at System.Management.ManagementObjectSearcher..ctor()
    _\src\libraries\System.Management\tests\System\Management\ManagementObjectSearcherTests.cs(15,0): at System.Management.Tests.ManagementObjectSearcherTests.Dynamic_Instances()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Throw_On_Unsupported_Languages(lang: JScript) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(644,0): at System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler)
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(626,0): at System.Management.ManagementScope._Clone(ManagementScope scope)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(208,0): at System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(87,0): at System.Management.ManagementObjectSearcher..ctor()
    _\src\libraries\System.Management\tests\System\Management\ManagementObjectSearcherTests.cs(15,0): at System.Management.Tests.ManagementObjectSearcherTests.Dynamic_Instances()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.SelectQueryTests.Select_Win32_LogicalDisk_ClassName_Condition [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(644,0): at System.Management.ManagementScope._Clone(ManagementScope scope, IdentifierChangedEventHandler handler)
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(626,0): at System.Management.ManagementScope._Clone(ManagementScope scope)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(208,0): at System.Management.ManagementObjectSearcher..ctor(ManagementScope scope, ObjectQuery query, EnumerationOptions options)
    _\src\libraries\System.Management\src\System\Management\ManagementObjectSearcher.cs(87,0): at System.Management.ManagementObjectSearcher..ctor()
    _\src\libraries\System.Management\tests\System\Management\ManagementObjectSearcherTests.cs(15,0): at System.Management.Tests.ManagementObjectSearcherTests.Dynamic_Instances()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementObjectTests.Get_Win32_LogicalDisk [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementObject.cs(274,0): at System.Management.ManagementObject..ctor(String path)
    _\src\libraries\System.Management\tests\System\Management\ManagementObjectTests.cs(23,0): at System.Management.Tests.ManagementObjectTests.Get_Win32_LogicalDisk()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.SelectQueryTests.Select_Win32_LogicalDisk_ClassName [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementQuery.cs(675,0): at System.Management.SelectQuery..ctor(String queryOrClassName)
    _\src\libraries\System.Management\tests\System\Management\SelectQueryTests.cs(15,0): at System.Management.Tests.SelectQueryTests.Select_Win32_LogicalDisk_ClassName()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Throw_On_Unsupported_Languages(lang: Mcpp) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(60,0): at System.Management.Tests.ManagementClassTests.Throw_On_Unsupported_Languages(CodeLanguage lang)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Throw_On_Unsupported_Languages(lang: VJSharp) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(60,0): at System.Management.Tests.ManagementClassTests.Throw_On_Unsupported_Languages(CodeLanguage lang)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.SelectQueryTests.Select_All_Win32_LogicalDisk_Wql(scopeRoot: "\\\\N25\\") [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\tests\System\Management\SelectQueryTests.cs(54,0): at System.Management.Tests.SelectQueryTests.Select_All_Win32_LogicalDisk_Wql(String scopeRoot)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.SelectQueryTests.Select_All_Win32_LogicalDisk_Wql(scopeRoot: "\\\\.\\") [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\tests\System\Management\SelectQueryTests.cs(54,0): at System.Management.Tests.SelectQueryTests.Select_All_Win32_LogicalDisk_Wql(String scopeRoot)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.SelectQueryTests.Select_All_Win32_LogicalDisk_Wql(scopeRoot: "") [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\tests\System\Management\SelectQueryTests.cs(54,0): at System.Management.Tests.SelectQueryTests.Select_All_Win32_LogicalDisk_Wql(String scopeRoot)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Get_SourceFile_For_Win32_Processor(lang: CSharp) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(37,0): at System.Management.Tests.ManagementClassTests.Get_SourceFile_For_Win32_Processor(CodeLanguage lang)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Get_SourceFile_For_Win32_Processor(lang: VB) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(37,0): at System.Management.Tests.ManagementClassTests.Get_SourceFile_For_Win32_Processor(CodeLanguage lang)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(includeSystemClassInClassDef: False, systemPropertyClass: False) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(21,0): at System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(Boolean includeSystemClassInClassDef, Boolean systemPropertyClass)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(includeSystemClassInClassDef: False, systemPropertyClass: True) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(21,0): at System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(Boolean includeSystemClassInClassDef, Boolean systemPropertyClass)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(includeSystemClassInClassDef: True, systemPropertyClass: False) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(21,0): at System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(Boolean includeSystemClassInClassDef, Boolean systemPropertyClass)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(includeSystemClassInClassDef: True, systemPropertyClass: True) [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\src\System\Management\ManagementScope.cs(726,0): at System.Management.ManagementScope..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementClass.cs(268,0): at System.Management.ManagementClass..ctor(String scope, String path, ObjectGetOptions options)
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(21,0): at System.Management.Tests.ManagementClassTests.Get_CodeTypeDeclaration_For_Win32_LogicalDisk(Boolean includeSystemClassInClassDef, Boolean systemPropertyClass)
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.ClassMembers_For_Win32_LogicalDisk [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(79,0): at System.Management.Tests.ManagementClassTests.ClassMembers_For_Win32_LogicalDisk()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()
System.Management.Tests.ManagementClassTests.EnumerateInstances_For_Win32_LogicalDisk [FAIL]
System.TypeInitializationException : The type initializer for 'System.Management.ManagementPath' threw an exception.
---- System.InvalidOperationException : Failed to set the specified COM apartment state.
Stack Trace:
    _\src\libraries\System.Management\tests\System\Management\ManagementClassTests.cs(99,0): at System.Management.Tests.ManagementClassTests.EnumerateInstances_For_Win32_LogicalDisk()
    _\src\mono\netcore\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.cs(359,0): at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
    ----- Inner Stack Trace -----
    _\src\libraries\System.Private.CoreLib\src\System\Threading\Thread.cs(234,0): at System.Threading.Thread.SetApartmentState(ApartmentState state)
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1461,0): at System.Management.MTAHelper.InitWorkerThread()
    _\src\libraries\System.Management\src\System\Management\InteropClasses\WMIInterop.cs(1484,0): at System.Management.MTAHelper.CreateInMTA(Type type)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(252,0): at System.Management.ManagementPath.CreateWbemPath(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(195,0): at System.Management.ManagementPath..ctor(String path)
    _\src\libraries\System.Management\src\System\Management\ManagementPath.cs(76,0): at System.Management.ManagementPath..cctor()

The failing tests will be marked with ActiveIssue in #32592.

@danmoseley
Copy link
Member

dupe #34360

@danmoseley danmoseley added the runtime-mono specific to the Mono runtime label Apr 10, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Management runtime-mono specific to the Mono runtime untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

3 participants