[Mono-bugs] [Bug 510805] New: Unable to load a GIF via System.Drawing.Image.FromFile

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Jun 8 00:42:37 EDT 2009


http://bugzilla.novell.com/show_bug.cgi?id=510805


           Summary: Unable to load a GIF via System.Drawing.Image.FromFile
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.4.x
          Platform: x86-64
        OS/Version: Ubuntu
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Drawing.
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: ben at skullsquad.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: Community User


Created an attachment (id=296666)
 --> (http://bugzilla.novell.com/attachment.cgi?id=296666)
A test project that attempts to load an included test.gif and fails.

Description of Problem:
There are a class of GIFs that we need to load to generate bitmaps.  Many gifs
work correctly, but all from this specific source fail to load.

Steps to reproduce the problem:
1. run the attached test case.

Actual Results:

Stack trace as follows:


Unhandled Exception: System.ArgumentException: A null reference or invalid
value was found [GDI+ status: InvalidParameter]
  at System.Drawing.GDIPlus.CheckStatus (Status status) [0x0009d] in
/home/ben/workspaces/mono-2.4/mono-2.4/mcs/class/System.Drawing/System.Drawing/gdipFunctions.cs:219 
  at System.Drawing.Bitmap..ctor (System.String filename, Boolean useIcm)
[0x00034] in
/home/ben/workspaces/mono-2.4/mono-2.4/mcs/class/System.Drawing/System.Drawing/Bitmap.cs:129 
  at (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor
(string,bool)
  at test.MainClass.Main (System.String[] args) [0x00000] in
/home/ben/Projects/test/test/Main.cs:12 


Expected Results:

to correctly load the gif into an Image object.

How often does this happen? 

every time.


Additional Information:

-- 
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.


More information about the mono-bugs mailing list