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

Investigate failing System.Drawing.Common tests in RS4 #29858

Open
safern opened this issue May 22, 2018 · 0 comments

Comments

Projects
None yet
3 participants
@safern
Copy link
Member

commented May 22, 2018

 System.Drawing.Tests.BitmapTests.MakeTransparent_GrayscalePixelFormat_ThrowsArgumentException [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.Runtime.InteropServices.ExternalException)
      Actual:   (No exception was thrown)
      Stack Trace:
            at System.Drawing.Tests.BitmapTests.MakeTransparent_GrayscalePixelFormat_ThrowsArgumentException()
   System.Drawing.Printing.Tests.PrinterSettingsTests.CreateMeasurementGraphics_Default_ReturnsExpected [FAIL]
      System.OutOfMemoryException : Out of memory.
      Stack Trace:
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Graphics.Windows.cs(119,0): at System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrinterSettings.Windows.cs(631,0): at System.Drawing.Printing.PrinterSettings.CreateMeasurementGraphics(PageSettings pageSettings)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrinterSettingsTests.cs(476,0): at System.Drawing.Printing.Tests.PrinterSettingsTests.CreateMeasurementGraphics_Default_ReturnsExpected()
   System.Drawing.Printing.Tests.PrinterSettingsTests.CreateMeasurementGraphics_Bool_ReturnsExpected [FAIL]
      System.DivideByZeroException : Attempted to divide by zero.
      Stack Trace:
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PageSettings.Windows.cs(86,0): at System.Drawing.Printing.PageSettings.get_HardMarginX()
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrinterSettings.Windows.cs(622,0): at System.Drawing.Printing.PrinterSettings.CreateMeasurementGraphics(Boolean honorOriginAtMargins)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrinterSettingsTests.cs(491,0): at System.Drawing.Printing.Tests.PrinterSettingsTests.CreateMeasurementGraphics_Bool_ReturnsExpected()
   System.Drawing.Printing.Tests.PrintDocumentTests.QueryPageSettings_SetValue_ReturnsExpected [FAIL]
      System.NullReferenceException : Object reference not set to an instance of an object.
      Stack Trace:
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PageSettings.Windows.cs(388,0): at System.Drawing.Printing.PageSettings.get_ExtraBytes()
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PageSettings.Windows.cs(368,0): at System.Drawing.Printing.PageSettings.CopyToHdevmode(IntPtr hdevmode)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrintController.Windows.cs(276,0): at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrintDocumentTests.cs(275,0): at System.Drawing.Printing.Tests.PrintDocumentTests.TestPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrintController.Windows.cs(117,0): at System.Drawing.Printing.PrintController.Print(PrintDocument document)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrintDocumentTests.cs(225,0): at System.Drawing.Printing.Tests.PrintDocumentTests.QueryPageSettings_SetValue_ReturnsExpected()
   System.Drawing.Printing.Tests.PrinterSettingsTests.CreateMeasurementGraphics_Null_ThrowsNullReferenceException [FAIL]
      Assert.Throws() Failure
      Expected: typeof(System.NullReferenceException)
      Actual:   typeof(System.OutOfMemoryException): Out of memory.
      Stack Trace:
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Graphics.Windows.cs(119,0): at System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrinterSettings.Windows.cs(631,0): at System.Drawing.Printing.PrinterSettings.CreateMeasurementGraphics(PageSettings pageSettings)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrinterSettings.Windows.cs(640,0): at System.Drawing.Printing.PrinterSettings.CreateMeasurementGraphics(PageSettings pageSettings, Boolean honorOriginAtMargins)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrinterSettingsTests.cs(536,0): at System.Drawing.Printing.Tests.PrinterSettingsTests.<>c__DisplayClass49_0.<CreateMeasurementGraphics_Null_ThrowsNullReferenceException>b__1()
   System.Drawing.Printing.Tests.PrintDocumentTests.Ctor_Default_Success [FAIL]
      System.ArgumentNullException : Value cannot be null.
      Parameter name: ptr
      Stack Trace:
            at System.Runtime.InteropServices.Marshal.StructureToPtr(Object structure, IntPtr ptr, Boolean fDeleteOld)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PageSettings.Windows.cs(361,0): at System.Drawing.Printing.PageSettings.CopyToHdevmode(IntPtr hdevmode)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PageSettings.Windows.cs(235,0): at System.Drawing.Printing.PageSettings.get_PrinterResolution()
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrintDocumentTests.cs(255,0): at System.Drawing.Printing.Tests.PrintDocumentTests.AssertDefaultPageSettings(PageSettings pageSettings)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrintDocumentTests.cs(44,0): at System.Drawing.Printing.Tests.PrintDocumentTests.Ctor_Default_Success()
   System.Drawing.Printing.Tests.PrinterSettingsTests.IsPlotter_ReturnsExpected [FAIL]
      Assert.False() Failure
      Expected: False
      Actual:   True
      Stack Trace:
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrinterSettingsTests.cs(180,0): at System.Drawing.Printing.Tests.PrinterSettingsTests.IsPlotter_ReturnsExpected()
   System.Drawing.Printing.Tests.PrinterSettingsTests.CreateMeasurementGraphics_PageSettingsBool_ReturnsExpected [FAIL]
      System.OutOfMemoryException : Out of memory.
      Stack Trace:
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Graphics.Windows.cs(119,0): at System.Drawing.Graphics.FromHdcInternal(IntPtr hdc)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrinterSettings.Windows.cs(631,0): at System.Drawing.Printing.PrinterSettings.CreateMeasurementGraphics(PageSettings pageSettings)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\src\System\Drawing\Printing\PrinterSettings.Windows.cs(640,0): at System.Drawing.Printing.PrinterSettings.CreateMeasurementGraphics(PageSettings pageSettings, Boolean honorOriginAtMargins)
         D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Printing\PrinterSettingsTests.cs(521,0): at System.Drawing.Printing.Tests.PrinterSettingsTests.CreateMeasurementGraphics_PageSettingsBool_ReturnsExpected()

cc: @danmosemsft

@safern safern self-assigned this May 22, 2018

@safern safern added this to the 2.2.0 milestone May 22, 2018

@karelz karelz added the test bug label May 23, 2018

@safern safern modified the milestones: 3.0, Future Jun 17, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.