Welcome Guest! You need to login or register to make posts.



Go to last post Go to first unread
#1 Posted : Friday, December 7, 2007 1:43:34 AM(UTC)

Rank: Member

Groups: Member
Joined: 12/6/2007(UTC)
Posts: 7

Hi Everyone,

I've got another thread going with a different error message, but wanted start another thread b/c this is a completely different error. (Code follows stack trace.)

Aurigma.GraphicsMill.CMInappropriateProfileException was unhandled
  Message="The profile doesn't match to color space required."
       at Aurigma.GraphicsMill.Thread.FireStoppedEvent(Object object, ErrorEventArgs args)
       at Aurigma.GraphicsMill.Thread.TimerEventProcessor()
       at Aurigma.GraphicsMill.Thread.ChangeActivityStatus(ActivityStatus status)
       at Aurigma.GraphicsMill.Thread.EntryPoint()
       at Aurigma.GraphicsMill.Thread.Start()
       at Aurigma.GraphicsMill.Codecs.FormatReader._FrameLoadBitmap(Frame frame)
       at Aurigma.GraphicsMill.Codecs.Frame._GetBitmap(Bitmap bitmap)
       at Aurigma.GraphicsMill.Codecs.Frame.GetBitmap(Bitmap bitmap)
       at Aurigma.GraphicsMill.Bitmap.Load(Stream stream)
       at Aurigma.GraphicsMill.Bitmap._Load(Stream stream)
       at Aurigma.GraphicsMill.Bitmap..ctor(Stream stream)
       at ImageLeakTester.Form1.CauseInvalidPixelErrorMessage() in C:\Documents and Settings\jrumerman\My Documents\Visual Studio 2005\Projects\ImageLeakTester\ImageLeakTester\Form1.cs:line 127
       at ImageLeakTester.Form1.button6_Click(Object sender, EventArgs e) in C:\Documents and Settings\jrumerman\My Documents\Visual Studio 2005\Projects\ImageLeakTester\ImageLeakTester\Form1.cs:line 186
       at System.Windows.Forms.Control.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnClick(EventArgs e)
       at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ButtonBase.WndProc(Message& m)
       at System.Windows.Forms.Button.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
       at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
       at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
       at System.Windows.Forms.Application.Run(Form mainForm)
       at ImageLeakTester.Program.Main() in C:\Documents and Settings\jrumerman\My Documents\Visual Studio 2005\Projects\ImageLeakTester\ImageLeakTester\Program.cs:line 17
       at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()

private void CauseInvalidPixelErrorMessage()
  FileStream fs = new FileStream("C:\\BAD06-0000393589-03-05_20060726172405062.JPG", FileMode.Open);
  Byte[] bytes = new Byte[fs.Length];
  fs.Read(bytes, 0, int.Parse(fs.Length.ToString()));
  MemoryStream ms = new MemoryStream(bytes);
  Aurigma.GraphicsMill.Bitmap oImage = new Aurigma.GraphicsMill.Bitmap(ms);

Attached is the image that causes the error message.

Anybody got any idea why this error message occurs?



Edited by user Saturday, December 15, 2007 6:18:16 AM(UTC)  | Reason: Not specified

JRumerman attached the following image(s):
Alex Kon  
#2 Posted : Sunday, December 9, 2007 9:06:27 PM(UTC)
Alex Kon

Rank: Advanced Member

Groups: Member
Joined: 1/31/2005(UTC)
Posts: 458

Was thanked: 5 time(s) in 5 post(s)
Hi Joel,

This exception is caused by the incorrect color profile embedded in the source file. Previous versions of the Graphics Mill for .NET threw CMInappropriateProfileException during image decoding. But we have changed this behaviour in the latest version of the Graphics Mill for .NET. Now this exception is thrown only during color conversion operations.

#3 Posted : Monday, December 10, 2007 1:00:07 AM(UTC)

Rank: Member

Groups: Member
Joined: 12/6/2007(UTC)
Posts: 7

Hi Alex,

Thanks for confirming that this was a known issue and there is a patch available. I will be contacting support for the patch.

R, Joel

P.S. Great job on responding quickly to the forum posts. You guys are giving great support to your clients.

Users browsing this topic
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.