question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test failure System.Drawing.Tests.GraphicsTests

See original GitHub issue

Run: runtime-coreclr libraries-jitstress 20210411.1

Failed tests:

net6.0-windows-Release-arm64-CoreCLR_checked-zapdisable-Windows.10.Arm64v8.Open
 -System.Drawing.Tests.GraphicsTests.FromHwnd_ValidHwnd_ReturnsExpected(hWnd: 394176)
 -System.Drawing.Tests.GraphicsTests.FromHdc_ValidHdcWithContext_ReturnsExpected(hdc: 1308691546)
 -System.Drawing.Tests.GraphicsTests.FromHdcInternal_GetDC_ReturnsExpected(hdc: 2030111713)
 -System.Drawing.Tests.GraphicsTests.FromHwndInternal_ValidHwnd_ReturnsExpected(hWnd: 394176)
 -System.Drawing.Tests.GraphicsTests.FromHdc_ValidHdc_ReturnsExpected(hdc: 587271215)

Error message:

Assert.False() Failure
Expected: False
Actual:   True


Stack trace
   at System.Drawing.Tests.GraphicsTests.VerifyGraphics(Graphics graphics, RectangleF expectedVisibleClipBounds) in /_/src/libraries/System.Drawing.Common/tests/GraphicsTests.cs:line 3179
   at System.Drawing.Tests.GraphicsTests.FromHwnd_ValidHwnd_ReturnsExpected(IntPtr hWnd) in /_/src/libraries/System.Drawing.Common/tests/GraphicsTests.cs:line 265

Runfo Tracking Issue: system.drawing.tests.graphicstests.fromhdc_validhdcwithcontext_returnsexpected

Build Definition Kind Run Name

Build Result Summary

Day Hit Count Week Hit Count Month Hit Count
0 0 0

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:21 (18 by maintainers)

github_iconTop GitHub Comments

1reaction
karelzcommented, Jun 20, 2022

Happened again on 1833334 (6/19 AM) – all 5 tests on net7.0-windows-Release-x86-CoreCLR_release-Windows.7.Amd64.Open

Looking at Runfo, there have been 82 failures (12 failures are on Rolling runs) of all 5 tests on the same platform in last 7 days:

@dotnet/area-system-drawing can you please disable the test also on Win7 x86?

Note: Looks like it started regressing 4 days ago on 6/16

1reaction
hoyosjscommented, Jul 25, 2021

Kusto* (autocorrect in Spanish+English does some interesting guesses)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add Tests for System.Drawing.Common · Issue #22130
This issue tracks porting some set of tests from mono's test suite, covering the portions of System.Drawing that we support on .NET Core....
Read more >
c# - Drawing.Image Not allowed in Moq or Unit Test?
Drawing perfectly fine in order to use Image as a type. However in the Unit test code, despite using System.Drawing or any variant,...
Read more >
Testing Graphics Systems
The tests signal failure, causing the developer to quickly realize the mistake. ... too many problems regarding testing graphic systems at a higher...
Read more >
unit testing - TDD for Graphics application
Rendering of the lines , circles, oval, square and other shapes. I am finding it difficult how to test the rendering of the...
Read more >
Device.Graphics tests
D2D - DImage Effect Tests - 3DPerspectiveTransform ... D3D12 - DXIL Core Test - Graphics pipeline - Raw Buffer Load Store Test -...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found