Jump to content

Crash with Exceptionally High Res Image


Recommended Posts

This text file was created because Paint.NET crashed.

Please e-mail this file to paint.net@hotmail.com so we can diagnose and fix the problem.

Application version: Paint.NET v2.62 (Final Release build 2.62.2319.37326)

Time of crash: 6/1/2006 9:11:23 AM

Application uptime: 00:01:45.3906250

OS Version: 5.1.2600.65536 Service Pack 1 Workstation x86

.NET Framework version: 2.0.50727.42 x86

Processor: 1x IntelĀ® PentiumĀ® 4 CPU 2.53GHz

Physical memory: 631 MB

Exception details:

System.OutOfMemoryException: CreateDIBSection returned NULL (0)

at PaintDotNet.SystemLayer.Memory.AllocateBitmap(Int32 width, Int32 height, IntPtr& handle)

at PaintDotNet.MemoryBlock.Allocate(Int32 width, Int32 height, IntPtr& handle, Boolean allowRetry)

at PaintDotNet.MemoryBlock.Allocate(Int32 width, Int32 height, IntPtr& handle, Boolean allowRetry)

at PaintDotNet.MemoryBlock..ctor(Int32 width, Int32 height)

at PaintDotNet.Surface..ctor(Int32 width, Int32 height)

at PaintDotNet.Surface..ctor(Size size)

at PaintDotNet.DocumentView.set_Document(Document value)

at PaintDotNet.DocumentWorkspace.SetDocument(Document document)

at PaintDotNet.CanvasSizeAction.PerformAction()

at PaintDotNet.DocumentWorkspace.PerformAction(DocumentAction performMe)

at PaintDotNet.DocumentWorkspace.PerformAction(Type actionType, Object[] parameters)

at PaintDotNet.MainForm.menuImageCanvasSize_Click(Object sender, EventArgs e)

at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)

at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)

at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)

at System.Windows.Forms.ToolStripMenuItem.ProcessCmdKey(Message& m, Keys keyData)

at System.Windows.Forms.ToolStripManager.ProcessShortcut(Message& m, Keys shortcut)

at System.Windows.Forms.ToolStripManager.ProcessCmdKey(Message& m, Keys keyData)

at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.Form.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.ContainerControl.ProcessCmdKey(Message& msg, Keys keyData)

at PaintDotNet.DocumentView.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.Control.ProcessCmdKey(Message& msg, Keys keyData)

at System.Windows.Forms.Control.PreProcessMessage(Message& msg)

at System.Windows.Forms.Control.PreProcessControlMessageInternal(Control target, Message& msg)

at System.Windows.Forms.Application.ThreadContext.PreTranslateMessage(MSG& msg)

------------------------------------------------------------------------------

I am not sure whether it was loading the image (9600x12000@1200dpi, by the way) and crashed due to memory, or because I moved the window, and something happened.

~~

Link to comment
Share on other sites

Looks like it crashed because of Image -> CanvasSize.

9600 * 12000 * 4 * 3 = 1382400000 = ~1.3 GB of required virtual address space, plus you need enough memory to hold the original image in memory as well. You'd need to be in 64-bit mode (CPU and OS) to really work with that image.

The code for Paint.NET v2.6x isn't organized well enough to throw up an "insufficient memory" error instead in all cases.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...