http://bugzilla.novell.com/show_bug.cgi?id=599462
http://bugzilla.novell.com/show_bug.cgi?id=599462#c0 Summary: System.NotSupportedException from System.Drawing.GDIPlus.CheckStatus (Status status) for #SNMP Agent Classification: Mono Product: Mono: Class Libraries Version: 2.6.x Platform: x86 OS/Version: openSUSE 11.2 Status: NEW Severity: Normal Priority: P5 - None Component: Windows.Forms AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.2 (KHTML, like Gecko) Chrome/5.0.342.9 Safari/533.2 This is a WinForms application that assigns an icon file from resx file to the main form. The exception happens only on Mono/openSUSE, but not on Mono/Windows. Both uses Mono 2.6.3. I have tried to build small samples, and it seems that 1. the icon file itself is fine if I load it directly from .ico file to the form. 2. the resource file is fine, as the icon stored in it can be loaded into a simpler sample project without any problem. As I can only reproduce the exception with this slightly bigger application, it is not easy to identify the root cause. Reproducible: Always Steps to Reproduce: 1. Check out #SNMP Change Set 39550. 2. Use xbuild to compile it on Mono/openSUSE. 3. Launch snmpd.exe from TestAgent/bin/Debug Actual Results: Unhandled Exception: System.NotSupportedException: Either the image format is unknown or you don't have the required libraries to decode this format [GDI+ status: UnknownImageFormat] at System.Drawing.GDIPlus.CheckStatus (Status status) [0x00184] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:240 at System.Drawing.Image.InitFromStream (System.IO.Stream stream) [0x000cf] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Drawing/System.Drawing/Image.cs:303 at System.Drawing.Image.LoadFromStream (System.IO.Stream stream, Boolean keepAlive) [0x00011] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Drawing/System.Drawing/Image.cs:164 at System.Drawing.Icon.GetInternalBitmap () [0x00036] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Drawing/System.Drawing/Icon.cs:559 at System.Drawing.Icon.ToBitmap () [0x0001b] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/System.Drawing/System.Drawing/Icon.cs:581 at (wrapper remoting-invoke-with-check) System.Drawing.Icon:ToBitmap () at System.Windows.Forms.XplatUIX11.SetIcon (System.Windows.Forms.Hwnd hwnd, System.Drawing.Icon icon) [0x00021] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:1201 at System.Windows.Forms.XplatUIX11.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x0000d] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUIX11.cs:5553 at System.Windows.Forms.XplatUI.SetIcon (IntPtr handle, System.Drawing.Icon icon) [0x00000] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/XplatUI.cs:1030 at System.Windows.Forms.Form.CreateHandle () [0x0008a] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2008 at System.Windows.Forms.Control.CreateControl () [0x0004b] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3784 at System.Windows.Forms.Control.SetVisibleCore (Boolean value) [0x00043] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:5072 at System.Windows.Forms.Form.SetVisibleCore (Boolean value) [0x0007b] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Form.cs:2461 at System.Windows.Forms.Control.set_Visible (Boolean value) [0x0000c] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Control.cs:3436 at (wrapper remoting-invoke-with-check) System.Windows.Forms.Control:set_Visible (bool) at System.Windows.Forms.Application.RunLoop (Boolean Modal, System.Windows.Forms.ApplicationContext context) [0x00059] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:864 at System.Windows.Forms.Application.Run (System.Windows.Forms.ApplicationContext context) [0x00014] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:763 at System.Windows.Forms.Application.Run (System.Windows.Forms.Form mainForm) [0x00000] in /usr/src/packages/BUILD/mono-2.6.3/mcs/class/Managed.Windows.Forms/System.Windows.Forms/Application.cs:742 at Lextm.SharpSnmpLib.Agent.Program.Main (System.String[] args) [0x0002f] in /home/rupert/Projects/sharpsnmp/TestAgent/Program.cs:39 The application was terminated by a signal: SIGHUP Expected Results: It should run fine. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
