Closed runfoapp[bot] closed 1 year ago
Runfo Tracking Issue: [flaky test] embeddedresourcetests.embeddedresource_resourcesexist_cursor | Build | Definition | Kind | Run Name |
---|
Build Result Summary | Day Hit Count | Week Hit Count | Month Hit Count |
---|---|---|---|
0 | 0 | 0 |
System.ArgumentException : Image format is not valid. The image file may be corrupted. (Parameter 'stream')\r\n---- System.Runtime.InteropServices.COMException : Error HRESULT E_FAIL has been returned from a call to a COM component.
Stack trace
at System.Windows.Forms.Cursor.LoadPicture(Interface stream, String paramName) in /_/src/System.Windows.Forms/src/System/Windows/Forms/Cursor.cs:line 442
at System.Windows.Forms.Cursor..ctor(Stream stream) in /_/src/System.Windows.Forms/src/System/Windows/Forms/Cursor.cs:line 96
at System.Windows.Forms.Tests.EmbeddedResourceTests.EmbeddedResource_ResourcesExist_Cursor(String resourceName) in /_/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/EmbeddedResourceTests.cs:line 240
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
----- Inner Stack Trace -----
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode, IntPtr errorInfo)
at Windows.Win32.Foundation.HRESULT.ThrowOnFailure(IntPtr errorInfo) in /_/src/System.Windows.Forms.Primitives/src/Microsoft.Windows.CsWin32/Microsoft.Windows.CsWin32.SourceGenerator/Windows.Win32.HRESULT.g.cs:line 63
at Windows.Win32.System.Com.IPersistStream.Load(IStream* pStm) in /_/src/System.Windows.Forms.Primitives/src/Microsoft.Windows.CsWin32/Microsoft.Windows.CsWin32.SourceGenerator/Windows.Win32.IPersistStream.g.cs:line 156
at System.Windows.Forms.Cursor.LoadPicture(Interface stream, String paramName) in /_/src/System.Windows.Forms/src/System/Windows/Forms/Cursor.cs:line 415
It looks like there are a few different tests that are trying to access the same files for testing, which could be causing something to go wrong. We might want to do something like https://github.com/dotnet/winforms/issues/8373#issuecomment-1396320138 to see if this is the cause. This might be the same cause for https://github.com/dotnet/winforms/issues/8520 and https://github.com/dotnet/winforms/issues/8223 as well.