[Mono-winforms-list] libgdiplus MWF regression

Ivan N. Zlatev contact at i-nz.net
Sun Apr 20 16:38:30 EDT 2008


On Sun, Apr 20, 2008 at 9:03 PM, Sebastien Pouliot <sebastien at ximian.com> wrote:
> On Sun, 2008-04-20 at 19:17 +0100, Ivan N. Zlatev wrote:
>  ...
>
> > Also, do you have any clue why would I get the following failures[1],
>  > considering that I am running the tests on a machine with 3GB of ram?
>
>  yep, compatibility :(
>
>  MS GDI+ return OutOfMemory *way* too often (looks like whenever they see
>  a NULL pointer, whatever the real cause) and this is translated into a
>  OutOfMemoryException by SD (both Mono and MS).
>
>  I did not see any bots with those errors. Are you sure you built
>  libgdiplus with all the codecs ?
>

Good call! I was missing the giflib headers. No failures now, thanks.

>  If so then on which arch/distro are your getting those results ?
>
>
>
>  > Thanks,
>  > Ivan
>  >
>  > [1] Test Failures
>  >
>  > 2) MonoTests.System.Windows.Forms.ButtonTest.ImageTest :
>  > System.OutOfMemoryException : Not enough memory to complete operation
>  > [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.ButtonTest.ImageTest () [0x0000d]
>  > in /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ButtonTest.cs:227
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 3) MonoTests.System.Windows.Forms.ButtonTest.ImageListTest :
>  > System.OutOfMemoryException : Not enough memory to complete operation
>  > [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.ButtonTest.ImageListTest ()
>  > [0x00006] in /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ButtonTest.cs:235
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 4) MonoTests.System.Windows.Forms.EventClass.BgrndImageChangedTest :
>  > System.OutOfMemoryException : Not enough memory to complete operation
>  > [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.EventClass.BgrndImageChangedTest
>  > () [0x00024] in
>  > /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ControlEventTest.cs:38
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 5) MonoTests.System.Windows.Forms.ImageListTest.ImageListPropertyTest
>  > : System.OutOfMemoryException : Not enough memory to complete
>  > operation [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.ImageListTest.ImageListPropertyTest
>  > () [0x000c4] in
>  > /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ImageListTest.cs:42
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 6) MonoTests.System.Windows.Forms.ImageListTest.ImageListComponentModelTest
>  > : System.OutOfMemoryException : Not enough memory to complete
>  > operation [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.ImageListTest.ImageListComponentModelTest
>  > () [0x0014c] in
>  > /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ImageListTest.cs:89
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 7) MonoTests.System.Windows.Forms.ImageListTest+ImageListRecreateHandleEventClass.RecreateHandleEvenTest
>  > : System.OutOfMemoryException : Not enough memory to complete
>  > operation [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.ImageListTest+ImageListRecreateHandleEventClass.RecreateHandleEvenTest
>  > () [0x00015] in
>  > /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ImageListTest.cs:188
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 8) MonoTests.System.Windows.Forms.PictureBoxTest.ImagePropertyTest :
>  > System.OutOfMemoryException : Not enough memory to complete operation
>  > [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.PictureBoxTest.ImagePropertyTest
>  > () [0x00017] in
>  > /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/PictureBoxTest.cs:49
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 9) MonoTests.System.Windows.Forms.ProgressBarTest.ProgressBarPropertyTest
>  > : System.OutOfMemoryException : Not enough memory to complete
>  > operation [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.ProgressBarTest.ProgressBarPropertyTest
>  > () [0x00055] in
>  > /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ProgressBarTest.cs:33
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 10) MonoTests.System.Windows.Forms.RichTextBoxTest.RichTextBoxPropertyTest
>  > : System.OutOfMemoryException : Not enough memory to complete
>  > operation [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.RichTextBoxTest.RichTextBoxPropertyTest
>  > () [0x00091] in
>  > /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/RichTextBoxTest.cs:41
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>  >
>  > 11) MonoTests.System.Windows.Forms.ToolBarTest.ToolBarPropertyTest :
>  > System.OutOfMemoryException : Not enough memory to complete operation
>  > [GDI+ status: OutOfMemory]
>  >   at System.Drawing.GDIPlus.CheckStatus (Status status) [0x000be] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:222
>  >   at System.Drawing.Image.FromFile (System.String filename, Boolean
>  > useEmbeddedColorManagement) [0x0002f] in
>  > /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:116
>  >   at System.Drawing.Image.FromFile (System.String filename) [0x00000]
>  > in /home/ivanz/src/svn/mcs/class/System.Drawing/System.Drawing/Image.cs:101
>  >   at MonoTests.System.Windows.Forms.ToolBarTest.ToolBarPropertyTest ()
>  > [0x000af] in /home/ivanz/src/svn/mcs/class/Managed.Windows.Forms/Test/System.Windows.Forms/ToolBarTest.cs:49
>  >   at (wrapper managed-to-native)
>  > System.Reflection.MonoMethod:InternalInvoke
>  > (object,object[],System.Exception&)
>  >   at System.Reflection.MonoMethod.Invoke (System.Object obj,
>  > BindingFlags invokeAttr, System.Reflection.Binder binder,
>  > System.Object[] parameters, System.Globalization.CultureInfo culture)
>  > [0x00057] in /home/ivanz/src/svn/mcs/class/corlib/System.Reflection/MonoMethod.cs:157
>
>


More information about the Mono-winforms-list mailing list