[Mono-bugs] [Bug 74929][Nor] New - Error loading/manipulating images with Mono
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Thu, 12 May 2005 23:49:25 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by monobugzilla@yellowguppy.com.
http://bugzilla.ximian.com/show_bug.cgi?id=74929
--- shadow/74929 2005-05-12 23:49:25.000000000 -0400
+++ shadow/74929.tmp.11177 2005-05-12 23:49:25.000000000 -0400
@@ -0,0 +1,82 @@
+Bug#: 74929
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Debian Sarge / Debian Sid
+Status: NEW
+Resolution:
+Severity:
+Priority: Normal
+Component: Sys.Drawing.
+AssignedTo: mono-bugs@ximian.com
+ReportedBy: monobugzilla@yellowguppy.com
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL:
+Cc:
+Summary: Error loading/manipulating images with Mono
+
+I have some code which uses the System.Drawing.Image classes to load image
+files, perform some manipulations, and then output the results to a HTTP
+response stream via an ASPX page.. The code works fine on a windows
+system running the MS.NET runtime. When I run the code on a debian box
+running xsp / mono 1.1, it generates errors.
+
+Steps to reproduce the problem:
+1. Extract the files from the attached zip file into a web accessible
+directory
+2. Request one of the varios test files through xsp.
+3. A image should be returned
+
+Actual Results:
+
+An error similar to this is returned..
+
+System.ArgumentException: Invalid Parameter. A null reference or invalid
+value was found.
+in <0x0006b> System.Drawing.GDIPlus:CheckStatus (Status status)
+in <0x000cd> System.Drawing.Image:InitFromStream (System.IO.Stream stream)
+in (wrapper remoting-invoke-with-check)
+System.Drawing.Image:InitFromStream (System.IO.Stream)
+in <0x00019> System.Drawing.Bitmap:.ctor (System.IO.Stream stream, Boolean
+useIcm)
+in <0x0000f> System.Drawing.Bitmap:.ctor (System.IO.Stream stream)
+in (wrapper remoting-invoke-with-check) System.Drawing.Bitmap:.ctor
+(System.IO.Stream)
+in <0x0001d> System.Drawing.Image:FromStream (System.IO.Stream stream)
+in <0x0023f> ASP.test1_gif_aspx:OnLoad (System.EventArgs args)
+in <0x00026> System.Web.UI.Control:LoadRecursive ()
+in <0x00149> System.Web.UI.Page:InternalProcessRequest ()
+in <0x000a9> System.Web.UI.Page:ProcessRequest (System.Web.HttpContext
+context)
+in <0x00233> System.Web.HttpApplication+ExecuteHandlerState:Execute ()
+in <0x0007c> System.Web.HttpApplication+StateMachine:ExecuteState
+(IStateHandler state, System.Boolean readysync)
+
+Expected Results:
+
+A manipulate image should be returned.
+
+How often does this happen?
+
+Consistently, I have 4 individual test files which all work on the ms
+runtime but fail using mono / xsp.
+
+Additional Information:
+
+Linux 2.4.27-2-386
+Debian Sid / Testing
+
+The following are the debs installed on the system.. These packages are
+from the unstable / Sid distributions.. They are a little mixed because
+debian doesn't have a "stable" release of mono yet. I don't know if this
+contributes to the issue?
+
+ii libapache2-mod 1.0.5-0pre1 Run ASP.NET Pages on UNIX with Apache 2
+ii mono 1.1.6-0pre5 Mono CLI (.NET) runtime
+ii mono-apache-se 1.0.5-0pre2 backend for mod_mono Apache module
+ii mono-assemblie 1.1.6-0pre5 Mono class library
+ii mono-common 1.1.6-0pre5 common files for Mono
+ii mono-jit 1.1.6-0pre5 fast CLI (.NET) JIT compiler for Mono
+ii mono-mcs 1.1.6-0pre5 Mono C# compiler
+ii mono-xsp 1.0.5-0pre2 simple web server to run ASP.NET