Skip to content

Instantly share code, notes, and snippets.

@ArsenShnurkov
Last active February 18, 2016 15:59
Show Gist options
  • Save ArsenShnurkov/4a0a39826d779b726724 to your computer and use it in GitHub Desktop.
Save ArsenShnurkov/4a0a39826d779b726724 to your computer and use it in GitHub Desktop.
/usr/lib64/mono/4.5/Microsoft.Common.targets: Error: Tool exited with code: 1. Output: libpng error: invalid after png_start_read_image or png_read_update_info
libpng error: invalid after png_start_read_image or png_read_update_info
libpng error: invalid after png_start_read_image or png_read_update_info
Read in 154 resources from '/var/calculate/remote/distfiles/egit-src/NClass.git/src/DiagramEditor/Properties/Resources.resx'
Error: A null reference or invalid value was found [GDI+ status: InvalidParameter]
Unhandled Exception:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) <0x41d26820 + 0x0017b> in <filename unknown>:0
at System.Drawing.Image.get_RawFormat () <0x41d266d0 + 0x0002f> in <filename unknown>:0
at System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo si, StreamingContext context) <0x41d264d0 + 0x0004f> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) <0x41d22650 + 0x0057e> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) <0x41d22060 + 0x00067> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize (System.Object graph, System.Runtime.Remoting.Messaging.Header[] inHeaders, System.Runtime.Serialization.Formatters.Binary.__BinaryWriter serWriter, Boolean fCheck) <0x41d205b0 + 0x0070f> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers, Boolean fCheck) <0x41d1fd80 + 0x00143> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers) <0x41d1fd40 + 0x00023> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph) <0x41d1fd10 + 0x0001b> in <filename unknown>:0
at System.Resources.ResourceWriter.WriteValue (ResourceTypeCode typeCode, System.Object value, System.IO.BinaryWriter writer, IFormatter objFormatter) <0x41d1f090 + 0x007f0> in <filename unknown>:0
at System.Resources.ResourceWriter.Generate () <0x41d148a0 + 0x00c8b> in <filename unknown>:0
at System.Resources.ResourceWriter.Dispose (Boolean disposing) <0x41d145e0 + 0x0002f> in <filename unknown>:0
at System.Resources.ResourceWriter.Dispose () <0x41d34260 + 0x00013> in <filename unknown>:0
at ResGen.CompileResourceFile (System.String sname, System.String dname, Boolean useSourcePath) <0x41cab2f0 + 0x007be> in <filename unknown>:0
at ResGen.Main (System.String[] args) <0x41c9fe30 + 0x0082f> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) <0x41d26820 + 0x0017b> in <filename unknown>:0
at System.Drawing.Image.get_RawFormat () <0x41d266d0 + 0x0002f> in <filename unknown>:0
at System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo si, StreamingContext context) <0x41d264d0 + 0x0004f> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) <0x41d22650 + 0x0057e> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) <0x41d22060 + 0x00067> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize (System.Object graph, System.Runtime.Remoting.Messaging.Header[] inHeaders, System.Runtime.Serialization.Formatters.Binary.__BinaryWriter serWriter, Boolean fCheck) <0x41d205b0 + 0x0070f> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers, Boolean fCheck) <0x41d1fd80 + 0x00143> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers) <0x41d1fd40 + 0x00023> in <filename unknown>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph) <0x41d1fd10 + 0x0001b> in <filename unknown>:0
at System.Resources.ResourceWriter.WriteValue (ResourceTypeCode typeCode, System.Object value, System.IO.BinaryWriter writer, IFormatter objFormatter) <0x41d1f090 + 0x007f0> in <filename unknown>:0
at System.Resources.ResourceWriter.Generate () <0x41d148a0 + 0x00c8b> in <filename unknown>:0
at System.Resources.ResourceWriter.Dispose (Boolean disposing) <0x41d145e0 + 0x0002f> in <filename unknown>:0
at System.Resources.ResourceWriter.Dispose () <0x41d34260 + 0x00013> in <filename unknown>:0
at ResGen.CompileResourceFile (System.String sname, System.String dname, Boolean useSourcePath) <0x41cab2f0 + 0x007be> in <filename unknown>:0
at ResGen.Main (System.String[] args) <0x41c9fe30 + 0x0082f> in <filename unknown>:0
(DiagramEditor)
@ArsenShnurkov
Copy link
Author

MONO_OPTIONS=--debug resgen /var/calculate/remote/distfiles/egit-src/NClass.git/src/DiagramEditor/Properties/Resources.resx

libpng error: invalid after png_start_read_image or png_read_update_info
libpng error: invalid after png_start_read_image or png_read_update_info
libpng error: invalid after png_start_read_image or png_read_update_info
Read in 154 resources from '/var/calculate/remote/distfiles/egit-src/NClass.git/src/DiagramEditor/Properties/Resources.resx'
Error: A null reference or invalid value was found [GDI+ status: InvalidParameter]

Unhandled Exception:
System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009b] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:212
at System.Drawing.Image.get_RawFormat () [0x0000e] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/Image.cs:729
at System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo si, StreamingContext context) [0x00006] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/Image.cs:88
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) [0x00141] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryobjectinfo.cs:159
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) [0x00007] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryobjectinfo.cs:110
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize (System.Object graph, System.Runtime.Remoting.Messaging.Header[] inHeaders, System.Runtime.Serialization.Formatters.Binary.__BinaryWriter serWriter, Boolean fCheck) [0x001c6] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryobjectwriter.cs:183
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers, Boolean fCheck) [0x00071] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryformatter.cs:233
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryformatter.cs:211
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph) [0x00000] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryformatter.cs:203
at System.Resources.ResourceWriter.WriteValue (ResourceTypeCode typeCode, System.Object value, System.IO.BinaryWriter writer, IFormatter objFormatter) [0x002ee] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:726
at System.Resources.ResourceWriter.Generate () [0x00285] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:435
at System.Resources.ResourceWriter.Dispose (Boolean disposing) [0x00011] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:263
at System.Resources.ResourceWriter.Dispose () [0x00000] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:276
at ResGen.CompileResourceFile (System.String sname, System.String dname, Boolean useSourcePath) [0x001a3] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/tools/resgen/monoresgen.cs:165
at ResGen.Main (System.String[] args) [0x0029a] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/tools/resgen/monoresgen.cs:270
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: A null reference or invalid value was found [GDI+ status: InvalidParameter]
at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009b] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:212
at System.Drawing.Image.get_RawFormat () [0x0000e] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/Image.cs:729
at System.Drawing.Image.System.Runtime.Serialization.ISerializable.GetObjectData (System.Runtime.Serialization.SerializationInfo si, StreamingContext context) [0x00006] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/class/System.Drawing/System.Drawing/Image.cs:88
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.InitSerialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) [0x00141] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryobjectinfo.cs:159
at System.Runtime.Serialization.Formatters.Binary.WriteObjectInfo.Serialize (System.Object obj, ISurrogateSelector surrogateSelector, StreamingContext context, System.Runtime.Serialization.Formatters.Binary.SerObjectInfoInit serObjectInfoInit, IFormatterConverter converter, System.Runtime.Serialization.Formatters.Binary.ObjectWriter objectWriter, System.Runtime.Serialization.SerializationBinder binder) [0x00007] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryobjectinfo.cs:110
at System.Runtime.Serialization.Formatters.Binary.ObjectWriter.Serialize (System.Object graph, System.Runtime.Remoting.Messaging.Header[] inHeaders, System.Runtime.Serialization.Formatters.Binary.__BinaryWriter serWriter, Boolean fCheck) [0x001c6] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryobjectwriter.cs:183
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers, Boolean fCheck) [0x00071] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryformatter.cs:233
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph, System.Runtime.Remoting.Messaging.Header[] headers) [0x00000] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryformatter.cs:211
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Serialize (System.IO.Stream serializationStream, System.Object graph) [0x00000] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/runtime/serialization/formatters/binary/binaryformatter.cs:203
at System.Resources.ResourceWriter.WriteValue (ResourceTypeCode typeCode, System.Object value, System.IO.BinaryWriter writer, IFormatter objFormatter) [0x002ee] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:726
at System.Resources.ResourceWriter.Generate () [0x00285] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:435
at System.Resources.ResourceWriter.Dispose (Boolean disposing) [0x00011] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:263
at System.Resources.ResourceWriter.Dispose () [0x00000] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/external/referencesource/mscorlib/system/resources/resourcewriter.cs:276
at ResGen.CompileResourceFile (System.String sname, System.String dname, Boolean useSourcePath) [0x001a3] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/tools/resgen/monoresgen.cs:165
at ResGen.Main (System.String[] args) [0x0029a] in /var/tmp/portage/dev-lang/mono-4.2.2.30/work/mono-4.2.2/mcs/tools/resgen/monoresgen.cs:270

@ArsenShnurkov
Copy link
Author

Looking at the text of error, it is difficult (impossible) to understand which source image caused the failure

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