Out of Memory Exception

Aug 25, 2010 at 4:14 AM
Edited Aug 25, 2010 at 5:18 AM

Running an Automate analysis on successive workbooks, but I'm tuning a few parameters manually for each book so it's not a batch process. Merging duplicate edges, all the graph metrics on a directed graph with overall statistics, autofill columns with edge weights, no subgraphs, no clusters/groups, show graph with standard settings, and saving images to file.

I'm running a 2.4GHz Q6600 with 4GB ram on 32-bit Vista Ultimate and Office 2007 with NodeXL v131

24 workbooks in, I get the error message below. No graph file is created, the workbook is still alive. Restarting Excel solves the problem. Network is not particularly large (76 vertices, 117 edges).


Microsoft NodeXL
An unexpected problem occurred.  If it occurs again, please copy the details to the clipboard by typing Ctrl-C, then post the details to http://www.codeplex.com/NodeXL/Thread/List.aspx.


[OutOfMemoryException]: Insufficient memory to continue the execution of the program.

   at System.Windows.Media.Composition.DUCE.Channel.Present()

   at System.Windows.Media.Renderer.Render(IntPtr pRenderTarget, Channel channel, Visual visual, Int32 width, Int32 height, Double dpiX, Double dpiY, Matrix worldTransform, Rect windowClip, Boolean fRenderForBitmapEffect)

   at System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual visual, Matrix worldTransform, Rect windowClip, Boolean fRenderForBitmapEffect)

   at System.Windows.Media.Imaging.BitmapVisualManager.Render(Visual visual)

   at System.Windows.Media.Imaging.RenderTargetBitmap.Render(Visual visual)

   at Microsoft.WpfGraphicsLib.WpfGraphicsUtil.VisualToBitmap(Visual visual, Int32 bitmapWidthPx, Int32 bitmapHeightPx)

   at Microsoft.NodeXL.Visualization.Wpf.NodeXLControl.CopyGraphToBitmap(Int32 bitmapWidthPx, Int32 bitmapHeightPx)

   at Microsoft.NodeXL.ExcelTemplate.TaskAutomator.SaveGraphImageFile(NodeXLControl oNodeXLControl, String sWorkbookFilePath)

   at Microsoft.NodeXL.ExcelTemplate.TaskAutomator.<>c__DisplayClass3.<AutomateThisWorkbook>b__0(Object sender, GraphLaidOutEventArgs e)

   at Microsoft.NodeXL.ExcelTemplate.GraphLaidOutEventHandler.Invoke(Object sender, GraphLaidOutEventArgs e)

   at Microsoft.NodeXL.ExcelTemplate.ThisWorkbook.TaskPane_GraphLaidOut(Object sender, GraphLaidOutEventArgs e)

Sep 9, 2010 at 9:08 PM

[This problem is related to the bug reported in "System.Windows.Media.FontFamily exception" at http://nodexl.codeplex.com/Thread/View.aspx?ThreadId=224736.  -- Tony]