Skip to content

DrawLines_PointFs, DrawBezier_PointFs, DrawBezier_Points and DrawLines_Points failing sporadically in CI #8814

Open

Description

@stephentoub

I've seen these fail multiple times in CI now, e.g.
https://mc.dot.net/#/user/dotnet-maestro-bot/pr~2Fjenkins~2Fdotnet~2Fcorefx~2Fmaster~2F/test~2Ffunctional~2Fcli~2F/7868028f16d0fb97037930838ec20cba5077191f/workItem/System.Drawing.Common.Tests/wilogs

2018-06-26 22:47:39,723: INFO: proc(54): run_and_log_output: Output:    System.Drawing.Tests.Graphics_DrawBezierTests.DrawBezier_PointFs [FAIL]
2018-06-26 22:47:39,723: INFO: proc(54): run_and_log_output: Output:       Assert.Equal() Failure
2018-06-26 22:47:39,723: INFO: proc(54): run_and_log_output: Output:       Expected: Byte[] [208, 0, 8, 33, 6, ...]
2018-06-26 22:47:39,723: INFO: proc(54): run_and_log_output: Output:       Actual:   Byte[] [27, 206, 219, 21, 255, ...]
2018-06-26 22:47:39,737: INFO: proc(54): run_and_log_output: Output:       Stack Trace:
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:          D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\DrawingTest.cs(21,0): at System.Drawing.Tests.DrawingTest.ValidateImageContent(Image image, Byte[] expectedHash)
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:          D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Graphics_DrawBezierTests.cs(59,0): at System.Drawing.Tests.Graphics_DrawBezierTests.DrawBezier_PointFs()
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:    System.Drawing.Tests.Graphics_DrawLineTests.DrawLines_PointFs [FAIL]
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:       Assert.Equal() Failure
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:       Expected: Byte[] [142, 194, 251, 180, 222, ...]
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:       Actual:   Byte[] [89, 188, 96, 22, 200, ...]
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:       Stack Trace:
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:          D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\DrawingTest.cs(21,0): at System.Drawing.Tests.DrawingTest.ValidateImageContent(Image image, Byte[] expectedHash)
2018-06-26 22:47:39,987: INFO: proc(54): run_and_log_output: Output:          D:\j\workspace\windows-TGrou---f8ac6754\src\System.Drawing.Common\tests\Graphics_DrawLineTests.cs(32,0): at System.Drawing.Tests.Graphics_DrawLineTests.DrawLines_PointFs()

I could be wrong, but I believe I only started seeing it after dotnet/corefx#30099.
cc: @safern, @JeremyKuhne

Activity

  1. JeremyKuhne commented on Jun 27, 2018

    @JeremyKuhne
    Member

    We can disable these pending further investigation. I assumed that drawing wouldn't change, but I'm likely missing some key environmental input.

  2. safern commented on Jun 27, 2018

    @safern
    Member

    I've opened: dotnet/corefx#30684 to disable.

    @JeremyKuhne I've assigned the issue to you so that you can investigate what changed.

    Fyi: @eerhardt

  3. jkotas commented on Oct 24, 2018

    @jkotas
    Member
  4. changed the title [-]DrawLines_PointFs and DrawBezier_PointFs failing sporadically in CI[/-] [+]DrawLines_PointFs, DrawBezier_PointFs, DrawBezier_Points and DrawLines_Points failing sporadically in CI[/+] on Jan 16, 2019
  5. transferred this issue fromdotnet/corefxon Jan 31, 2020
  6. added
    untriaged
    on Feb 23, 2020
  7. removed their assignment
    on Mar 25, 2020
  8. removed
    untriaged
    on Jul 6, 2020
  9. added this to the Future milestone on Jul 6, 2020
  10. jkotas commented on May 18, 2021

    @jkotas
    Member
  11. adamsitnik commented on Jun 8, 2021

    @adamsitnik
    Member

    Failed in dotnet/runtime#52720

    
    C:\h\w\AFB90990\w\A0EE0925\e>xunit.console.exe System.Drawing.Common.Tests.dll -xml testResults.xml -nologo -nocolor -notrait category=IgnoreForCI -notrait category=OuterLoop -notrait category=failing  
      Discovering: System.Drawing.Common.Tests (app domain = on [no shadow copy], method display = ClassAndMethod, method display options = None)
      Discovered:  System.Drawing.Common.Tests (found 1999 of 2047 test cases)
      Starting:    System.Drawing.Common.Tests (parallel test collections = on, max threads = 2)
        System.Drawing.Tests.ImageAnimatorManualTests.AnimateAndCaptureFrames [SKIP]
          Condition(s) not met: "ManualTestsEnabled"
        System.Drawing.Tests.Graphics_DrawBezierTests.DrawBezier_PointFs [FAIL]
          Assert.Equal() Failure
          Expected: Byte[] [208, 0, 8, 33, 6, ...]
          Actual:   Byte[] [79, 110, 253, 57, 153, ...]
          Stack Trace:
            /_/src/libraries/System.Drawing.Common/tests/DrawingTest.cs(21,0): at System.Drawing.Tests.DrawingTest.ValidateImageContent(Image image, Byte[] expectedHash)
            /_/src/libraries/System.Drawing.Common/tests/Graphics_DrawBezierTests.cs(63,0): at System.Drawing.Tests.Graphics_DrawBezierTests.DrawBezier_PointFs()
        System.Drawing.Tests.Graphics_DrawLineTests.DrawLines_PointFs [FAIL]
          Assert.Equal() Failure
          Expected: Byte[] [142, 194, 251, 180, 222, ...]
          Actual:   Byte[] [79, 110, 253, 57, 153, ...]
          Stack Trace:
            /_/src/libraries/System.Drawing.Common/tests/DrawingTest.cs(21,0): at System.Drawing.Tests.DrawingTest.ValidateImageContent(Image image, Byte[] expectedHash)
            /_/src/libraries/System.Drawing.Common/tests/Graphics_DrawLineTests.cs(35,0): at System.Drawing.Tests.Graphics_DrawLineTests.DrawLines_PointFs()
    
  12. transferred this issue fromdotnet/runtimeon Mar 14, 2023
  13. JeremyKuhne commented on Apr 4, 2023

    @JeremyKuhne
    Member

    Changing these tests to validate the lockbits, which should be more stable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-System.Drawingdisabled-test

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions