Jump to content

"OutOfMemoryException - CreateDIBSection returned NULL"


Recommended Posts

I have no idea if this is a bug or a limitation of Paint.NET.

However, in this case the program crashed so I lost any changes I made (I could not save them due to the nature of the bug).

I reported before that PDN saves large files improperly in PNG/BMP 8bit Mode, but you could save them in 24 bit. This time saving was entirely impossible (I tested it), so I decided to report this - at least as a warning.

I took the same image and tried it with other programmes and had no issues. I have to stress I have 3 GB of RAM but I'm aware Vista takes a big part and my Graphics Device may also take something. Regardless, I was able to create the file with Inkscape and work with it in GIMP.

The crash log (I shorted the effects list, it's not important for this topic I would say, especially cause I did not use any effect):

Application version: Paint.NET v3.36 (Final Release Build 3.36.3158.38068)
Time of crash: 04.01.2009 22:30:11
Application uptime: 00:01:48.4044000
OS Version: 6.0.6001.65536 Service Pack 1 Workstation x86
.NET version: CLR 2.0.50727.3074 x86, FX 2.0 2.0SP1 2.0SP2 3.0 3.0SP1 3.0SP2 3.5 3.5SP1 3.5SP1_Client 
Processor: 2x "Intel(R) Core(TM)2 Duo CPU     T5550  @ 1.83GHz" @ ~1828MHz (DEP, SSE, SSE2, SSE3)
Physical memory: 3069 MB
UI DPI: 96,00 dpi (1,00x scale)
Tablet PC: no
Updates: false, err
Locale: pdnr.c: de, hklm: de, hkcu: DE, cc: de-DE, cuic: de
Features log: UpdatesState(StartupState), UpdatesState(ReadyToCheckState), PopulateFonts(), ShowDialog(PaintDotNet.SplashForm), ShowDialog(PaintDotNet.ToolsForm), ShowDialog(PaintDotNet.ColorsForm), ShowDialog(PaintDotNet.HistoryForm), ShowDialog(PaintDotNet.LayerForm), ShowDialog(PaintDotNet.MainForm), Load(PaintDotNet.PngFileType), SetTool(PaintDotNet.Tools.PanTool), HM(NullHistoryMemento), ViewConfigStrip(ZoomIn), SetTool(PaintDotNet.Tools.PaintBrushTool), HM(BitmapHistoryMemento), CommonActionsStrip(Undo), DWAction(HistoryUndoAction), SetTool(PaintDotNet.Tools.LineTool), HM(CompoundHistoryMemento), ToolConfigStrip(penEndCapSplitButton), ToolConfigStrip(penStartCapSplitButton), SetTool(PaintDotNet.Tools.EraserTool), Menu.File, Save, ShowDialog(PaintDotNet.SaveConfigDialog), Save(PaintDotNet.PngFileType)
Loaded assemblies: 
   mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
   PaintDotNet, Version=3.36.3158.38068, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.exe
   System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\assembly\GAC_MSIL\System.Windows.Forms\2.0.0.0__b77a5c561934e089\System.Windows.Forms.dll
   System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\assembly\GAC_MSIL\System\2.0.0.0__b77a5c561934e089\System.dll
   System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @ C:\Windows\assembly\GAC_MSIL\System.Drawing\2.0.0.0__b03f5f7f11d50a3a\System.Drawing.dll
   PaintDotNet.Core, Version=3.36.3158.38063, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Core.dll
   PaintDotNet.Base, Version=3.36.3158.38062, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Base.dll
   PaintDotNet.SystemLayer, Version=3.36.3158.38062, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.SystemLayer.dll
   PaintDotNet.Resources, Version=3.36.3158.38063, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Resources.dll
   PaintDotNet.Data, Version=3.36.3158.38064, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Data.dll
   System.Windows.Forms.resources, Version=2.0.0.0, Culture=de, PublicKeyToken=b77a5c561934e089 @ C:\Windows\assembly\GAC_MSIL\System.Windows.Forms.resources\2.0.0.0_de_b77a5c561934e089\System.Windows.Forms.resources.dll
   PaintDotNet.Effects, Version=3.36.3158.38065, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\PaintDotNet.Effects.dll
   Alias, Version=2.0.3167.14578, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\Effects\Alias.dll
   AlignPlugin, Version=1.5.1.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\Effects\AlignPlugin.dll

(...)

  Files\Paint.NET\Effects\ZoomBlurDeluxe.dll
   System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @ C:\Windows\assembly\GAC_MSIL\System.Design\2.0.0.0__b03f5f7f11d50a3a\System.Design.dll
   Microsoft.VisualBasic, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @ C:\Windows\assembly\GAC_MSIL\Microsoft.VisualBasic\8.0.0.0__b03f5f7f11d50a3a\Microsoft.VisualBasic.dll
   mscorlib.resources, Version=2.0.0.0, Culture=de, PublicKeyToken=b77a5c561934e089 @ C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll
   System.Xml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 @ C:\Windows\assembly\GAC_MSIL\System.Xml\2.0.0.0__b77a5c561934e089\System.Xml.dll
   AsciiArtFileType, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\AsciiArtFileType.dll
   AviFile, Version=1.0.2920.35272, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\AviFile.dll
   AVIImport, Version=4.0.0.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\AVIImport.dll
   BMP32 Paint.NET FileType, Version=2.4.0.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\BMP32.dll
   DdsFileType, Version=1.11.3158.38065, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\DdsFileType.dll
   HDPhoto, Version=0.4.2904.33958, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\HDPhoto.dll
   IcoCur, Version=3.5.0.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\IcoCur.dll
   JPEG 2000, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\JPEG 2000 x86.dll
   OptiPngFileType, Version=8.11.30.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\OptiPngFileType.dll
   PcxFileType, Version=0.9.2.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\PcxFileType.dll
   PhotoShop, Version=1.0.1.14046, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\PhotoShop.dll
   RawReader, Version=0.9.0.0, Culture=neutral, PublicKeyToken=null @ C:\Program Files\Paint.NET\FileTypes\RawReader.dll
   msvcm80, Version=8.0.50727.3053, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @ C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.3053_none_d08d7bba442a9b36\msvcm80.dll
   Accessibility, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a @ C:\Windows\assembly\GAC_MSIL\Accessibility\2.0.0.0__b03f5f7f11d50a3a\Accessibility.dll

Exception details:
System.OutOfMemoryException: CreateDIBSection returned NULL (8) while attempting to allocate 10000x7208 bitmap
  bei PaintDotNet.SystemLayer.Memory.AllocateBitmap(Int32 width, Int32 height, IntPtr& handle)
  bei PaintDotNet.MemoryBlock.Allocate(Int32 width, Int32 height, IntPtr& handle, Boolean allowRetry)
  bei PaintDotNet.MemoryBlock.Allocate(Int32 width, Int32 height, IntPtr& handle, Boolean allowRetry)
  bei PaintDotNet.MemoryBlock..ctor(Int32 width, Int32 height)
  bei PaintDotNet.Surface..ctor(Int32 width, Int32 height)
  bei PaintDotNet.Surface..ctor(Size size)
  bei PaintDotNet.DocumentView.DocumentSetImpl(Document value)
  bei PaintDotNet.DocumentView.set_Document(Document value)
  bei PaintDotNet.SaveConfigDialog.UpdateFileSizeAndPreview(String tempFileName)
------------------------------------------------------------------------------

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