Bug 41171 - System.Drawing.Imaging.PngCodecTest.Bitmap2bit* tests fail on Linux ARM64
Summary: System.Drawing.Imaging.PngCodecTest.Bitmap2bit* tests fail on Linux ARM64
Alias: None
Product: Class Libraries
Classification: Mono
Component: libgdiplus ()
Version: master
Hardware: PC Linux
: --- normal
Target Milestone: Untriaged
Assignee: Bugzilla
Depends on:
Reported: 2016-05-19 00:03 UTC by Alexander Köplinger [MSFT]
Modified: 2016-08-24 22:04 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 41171 on GitHub or Developer Community if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: GitHub Markdown or Developer Community HTML
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Alexander Köplinger [MSFT] 2016-05-19 00:03:16 UTC
They fail like this on ARM64, smells like a libgdiplus issue:

> System.ArgumentException : A null reference or invalid value was found [GDI+ status: InvalidParameter]
> +++++++++++++++++++
> at System.Drawing.GDIPlus.CheckStatus (System.Drawing.Status status) [0x0009b] in /media/ssd/jenkins/workspace/test-mono-mainline-linux/label/debian-8-arm64/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:212
> at System.Drawing.Bitmap..ctor (System.String filename, System.Boolean useIcm) [0x00034] in /media/ssd/jenkins/workspace/test-mono-mainline-linux/label/debian-8-arm64/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:127
> at System.Drawing.Bitmap..ctor (System.String filename) [0x00000] in /media/ssd/jenkins/workspace/test-mono-mainline-linux/label/debian-8-arm64/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:104
> at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor (string)
> at MonoTests.System.Drawing.Imaging.PngCodecTest.Bitmap2bitData () [0x0000c] in /media/ssd/jenkins/workspace/test-mono-mainline-linux/label/debian-8-arm64/mcs/class/System.Drawing/Test/System.Drawing.Imaging/PngCodecTest.cs:354
> at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
> at System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00038] in /media/ssd/jenkins/workspace/test-mono-mainline-linux/label/debian-8-arm64/mcs/class/corlib/System.Reflection/MonoMethod.cs:305
Comment 1 Alexander Köplinger [MSFT] 2016-08-24 22:04:02 UTC
I'm seeing the same issue on the Archlinux Docker job as well: https://jenkins.mono-project.com/job/test-mono-mainline-docker/label=docker-archlinux/82/testReport/MonoTests.System.Drawing.Imaging/PngCodecTest/Bitmap2bitData/

This suggests it's not something to do with ARM64 and rather a general libgdiplus issue (maybe due to newer libpng?).