dotnet / winforms

Windows Forms is a .NET UI framework for building Windows desktop applications.
MIT License
4.36k stars 966 forks source link

[Flaky Test] comnativedescriptortests.comnativedescriptor_getproperties_fromipicture #8619

Open runfoapp[bot] opened 1 year ago

runfoapp[bot] commented 1 year ago
Runfo Tracking Issue: [Flaky Test] comnativedescriptortests.comnativedescriptor_getproperties_fromipicture Build Definition Kind Run Name
Build Result Summary Day Hit Count Week Hit Count Month Hit Count
0 0 0
dreddy-work commented 1 year ago
System.Runtime.InteropServices.COMException : Error HRESULT E_FAIL has been returned from a call to a COM component.

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.Ole.IPicture.CreateFromImage(Image image) in /_/src/System.Windows.Forms.Primitives/src/Windows/Win32/System/Ole/IPicture.cs:line 23
   at Windows.Win32.System.Ole.IPicture.CreateObjectFromImage(Image image) in /_/src/System.Windows.Forms.Primitives/src/Windows/Win32/System/Ole/IPicture.cs:line 15
   at System.Windows.Forms.ComponentModel.Com2Interop.Tests.ComNativeDescriptorTests.ComNativeDescriptor_GetProperties_FromIPicture() in /_/src/System.Windows.Forms/tests/UnitTests/System/Windows/Forms/ComponentModel/Com2Interop/ComNativeDescriptorTests.cs:line 65
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr)
lonitra commented 1 year ago

Something may have gone wrong during PICTDESC creation, we should check the state of this. The cause for this may be related to https://github.com/dotnet/winforms/issues/8634 and it may be worthwhile to look at source code for OleCreatePictureIndirect()