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

System.Drawing.Common.Tests fails during libraries test run #8845

Open
buyaa-n opened this issue May 18, 2022 · 6 comments
Open

System.Drawing.Common.Tests fails during libraries test run #8845

buyaa-n opened this issue May 18, 2022 · 6 comments
Labels
area-System.Drawing System.Drawing issues disabled-test Tracking tests that have been disabled to prevent run failures.
Milestone

Comments

@buyaa-n
Copy link
Member

buyaa-n commented May 18, 2022

Found while running all tests in libraries, running tests manually from the individual project also fails.

System.Drawing.Tests.BitmapTests.SaveWmfAsPngDoesntChangeImageBoundaries [FAIL]
        Assert.Equal() Failure
                              ↓ (pos 19)
        Expected: [..., 0, 1, 68, 0, 0, ...]
        Actual:   [..., 0, 1, 149, 0, 0, ...]
                              ↑ (pos 19)
        Stack Trace:
          D:\dotnet\runtime\src\libraries\System.Drawing.Common\tests\BitmapTests.cs(821,0): at System.Drawing.Tests.BitmapTests.SaveWmfAsPngDoesntChangeImageBoundaries()
             at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
          D:\dotnet\runtime\src\coreclr\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs(387,0): at System.Reflection.RuntimeMethodInfo.InvokeNonEmitUnsafe(Object obj, IntPtr* arguments, Span`1 argsForTemporaryMonoSupport, BindingFlags invokeAttr)

Failing with clean build having no any changes

@ghost ghost added the untriaged The team needs to look at this issue in the next triage label May 18, 2022
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Drawing System.Drawing issues and removed untriaged The team needs to look at this issue in the next triage labels May 18, 2022
@ghost
Copy link

ghost commented May 18, 2022

Tagging subscribers to this area: @dotnet/area-system-drawing
See info in area-owners.md if you want to be subscribed.

Issue Details

Found while running all tests in libraries, running tests manually from the individual project also fails.

System.Drawing.Tests.BitmapTests.SaveWmfAsPngDoesntChangeImageBoundaries [FAIL]
        Assert.Equal() Failure
                              ↓ (pos 19)
        Expected: [..., 0, 1, 68, 0, 0, ...]
        Actual:   [..., 0, 1, 149, 0, 0, ...]
                              ↑ (pos 19)
        Stack Trace:
          D:\dotnet\runtime\src\libraries\System.Drawing.Common\tests\BitmapTests.cs(821,0): at System.Drawing.Tests.BitmapTests.SaveWmfAsPngDoesntChangeImageBoundaries()
             at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
          D:\dotnet\runtime\src\coreclr\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs(387,0): at System.Reflection.RuntimeMethodInfo.InvokeNonEmitUnsafe(Object obj, IntPtr* arguments, Span`1 argsForTemporaryMonoSupport, BindingFlags invokeAttr)
Author: buyaa-n
Assignees: -
Labels:

area-System.Drawing

Milestone: -

@ViktorHofer
Copy link
Member

Thanks for filing @buyaa-n. What's your hardware configuration? Also, did only this one test fail or multiple ones?

@buyaa-n
Copy link
Member Author

buyaa-n commented May 23, 2022

What's your hardware configuration?

Windows 11, 64 bit, not sure what else needed ...

Also, did only this one test fail or multiple ones?

Two more tests were failing constantly, filed issue for one. The other one looks like depend on my system conf, so did not filed an issue, here is the log if you want to check:

<test name="System.Xml.Tests.XsltcTestBasicFunctionality.Var2(param0: \&quot;nul.xsl\&quot;, param1: \&quot;bft35.txt\&quot;, englishOnly: True)" type="System.Xml.Tests.XsltcTestBasicFunctionality" method="Var2" time="0.4372131" result="Fail">
        <traits>
          <trait name="category" value="XsltcExeRequired" />
        </traits>
        <failure exception-type="OLEDB.Test.ModuleCore.CTestFailedException">
          <message><![CDATA[OLEDB.Test.ModuleCore.CTestFailedException : Output was not as expected.\r\nExpected: `fatal error : Source file 'nul.xsl' could not be found. ---> Win32 device names are not allowed.\r\n`\r\nActual: `error : Source file 'nul.xsl' could not be found.\r\n`\r\nResult: 0\r\n]]></message>
          <stack-trace><![CDATA[   at System.Xml.Tests.XsltcTestCaseBase.CompareOutput(Stream expectedStream, Stream actualStream, Int32 count) in D:\dotnet\runtime\src\libraries\System.Private.Xml\tests\Xslt\XsltCompiler\CommonScenarios\XsltcTestCaseBase.cs:line 96
   at System.Xml.Tests.XsltcTestCaseBase.VerifyTest(String cmdLine, String asmName, Boolean asmCreated, String typeName, String pdbName, Boolean pdbCreated, String baselineFile, Boolean runAssemblyVerification, Boolean loadFromFile) in D:\dotnet\runtime\src\libraries\System.Private.Xml\tests\Xslt\XsltCompiler\CommonScenarios\XsltcTestCaseBase.cs:line 173
   at System.Xml.Tests.XsltcTestCaseBase.VerifyTest(String cmdLine, String asmName, Boolean asmCreated, String typeName, String pdbName, Boolean pdbCreated, String baselineFile, Boolean loadFromFile) in D:\dotnet\runtime\src\libraries\System.Private.Xml\tests\Xslt\XsltCompiler\CommonScenarios\XsltcTestCaseBase.cs:line 132
   at System.Xml.Tests.XsltcTestCaseBase.VerifyTest(String cmdLine, String asmName, Boolean asmCreated, String typeName, String baselineFile, Boolean loadFromFile) in D:\dotnet\runtime\src\libraries\System.Private.Xml\tests\Xslt\XsltCompiler\CommonScenarios\XsltcTestCaseBase.cs:line 127
   at System.Xml.Tests.XsltcTestCaseBase.VerifyTest(String cmdLine, String baselineFile, Boolean loadFromFile) in D:\dotnet\runtime\src\libraries\System.Private.Xml\tests\Xslt\XsltCompiler\CommonScenarios\XsltcTestCaseBase.cs:line 122
   at System.Xml.Tests.XsltcTestBasicFunctionality.Var2(Object param0, Object param1, Boolean englishOnly) in D:\dotnet\runtime\src\libraries\System.Private.Xml\tests\Xslt\XsltCompiler\CommonScenarios\XsltcTestBasicFunctionality.cs:line 42
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
   at System.Reflection.RuntimeMethodInfo.InvokeNonEmitUnsafe(Object obj, IntPtr* arguments, Span`1 argsForTemporaryMonoSupport, BindingFlags invokeAttr) in D:\dotnet\runtime\src\coreclr\System.Private.CoreLib\src\System\Reflection\RuntimeMethodInfo.CoreCLR.cs:line 383]]></stack-trace>
        </failure>
      </test>

@janvorli
Copy link
Member

janvorli commented Jun 7, 2022

I have just hit the same issue on my local devbox, only the wrong value was a bit different:

        Assert.Equal() Failure
                              ↓ (pos 19)
        Expected: [..., 0, 1, 68, 0, 0, ...]
        Actual:   [..., 0, 1, 229, 0, 0, ...]
                              ↑ (pos 19)

@MichalStrehovsky
Copy link
Member

Ran into this too on Windows 10.0.19044.1826 x64.

@jkotas jkotas added the disabled-test Tracking tests that have been disabled to prevent run failures. label Jul 19, 2022
@jkotas
Copy link
Member

jkotas commented Jul 19, 2022

Test disabled in dotnet/runtime#72416

@ViktorHofer ViktorHofer added this to the Future milestone Jul 19, 2022
@JeremyKuhne JeremyKuhne transferred this issue from dotnet/runtime Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-System.Drawing System.Drawing issues disabled-test Tracking tests that have been disabled to prevent run failures.
Projects
None yet
Development

No branches or pull requests

5 participants