when i am trying to load the 14000+ Node the go Diagram is crashed. The go Diagram is crashed only on Layout. When i disable the Layout the diagram is not crashed. the exception is System.ArgumentOutOfRangeException: ‘maxValue’ must be greater than zero.
Parameter name: maxValue
It takes too much time for layout and some time it’s crashed. How to make layout fast? with out crashed.
Node:14000+
Could you give some more details about the exception?
A stack trace would be useful. Which layout are you using? What parameters does it have? What kinds of nodes are you using?
Dose the Viewer dependent on size of display area or size of monitor ???
the exception is as below —>
************** Exception Text **************
System.ArgumentOutOfRangeException: ‘maxValue’ must be greater than zero.
Parameter name: maxValue
at System.Random.Next(Int32 maxValue)
at Northwoods.Go.Layout.GoLayoutForceDirected.UpdatePositions()
at Northwoods.Go.Layout.GoLayoutForceDirected.PerformIterations(Int32 num)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.PerformLayout()
at Diagrammer.GUI.Go.GraphViewerBase.DoLayout() in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Diagrammer\GUI\Go\GraphViewerBase.cs:line 192
at Diagrammer.GUI.Commands.LayoutCommand.Execute() in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Diagrammer\GUI\Commands\ZoomInCommand.cs:line 32
at Diagrammer.GUI.GraphViewerToolBar.ExecuteCommand(String Key) in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Diagrammer\GUI\GraphViewerToolBar.cs:line 112
at Appc.Diagram.UCDiagramForEmail.VisualizeGraph() in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Appc\Diagram\UCDiagramForEmail.cs:line 753
at Appc.Diagram.UCDiagramForEmail.DrawGoDiagram(DataTable dt) in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Appc\Diagram\UCDiagramForEmail.cs:line 1313
at Appc.Diagram.UCDiagramForEmail.DisplayAllUser(Boolean isTop, Int32 DrillLevel, Boolean cleantmptable) in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Appc\Diagram\UCDiagramForEmail.cs:line 1223
at Appc.Diagram.UCDiagramForEmail.LoadMsgFilter1Data() in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Appc\Diagram\UCDiagramForEmail.cs:line 490
at Appc.Diagram.UCDiagramForEmail.<.ctor>b__0(Object sender, EventArgs e) in C:\Documents and Settings\suraj\Desktop\Appc1_P2.1\Appc\Diagram\UCDiagramForEmail.cs:line 122
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ToolStripComboBox.HandleSelectedIndexChanged(Object sender, EventArgs e)
at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ComboBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ComboBox.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.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Appc FPR
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/Appc%20FPR.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
DevExpress.Utils.v8.2
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Utils.v8.2/8.2.6.0__9b171c9fd64da1d1/DevExpress.Utils.v8.2.dll
----------------------------------------
CleanContentNET
Assembly Version: 2008.1.4.25806
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/CleanContentNET.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Transactions
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Transactions/2.0.0.0__b77a5c561934e089/System.Transactions.dll
----------------------------------------
System.EnterpriseServices
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.EnterpriseServices/2.0.0.0__b03f5f7f11d50a3a/System.EnterpriseServices.dll
----------------------------------------
Sccda.Net
Assembly Version: 8.3.0.0
Win32 Version: 8.3.0.0
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/Sccda.Net.DLL
----------------------------------------
ProxyLicenseData
Assembly Version: 2.1.0.1
Win32 Version: 2.1.0.1
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/ProxyLicenseData.DLL
----------------------------------------
System.Management
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
DevExpress.Data.v8.2
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Data.v8.2/8.2.6.0__9b171c9fd64da1d1/DevExpress.Data.v8.2.dll
----------------------------------------
DevExpress.XtraEditors.v8.2
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraEditors.v8.2/8.2.6.0__9b171c9fd64da1d1/DevExpress.XtraEditors.v8.2.dll
----------------------------------------
DevExpress.XtraGrid.v8.2
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraGrid.v8.2/8.2.6.0__9b171c9fd64da1d1/DevExpress.XtraGrid.v8.2.dll
----------------------------------------
DevExpress.XtraCharts.v8.2
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraCharts.v8.2/8.2.6.0__9b171c9fd64da1d1/DevExpress.XtraCharts.v8.2.dll
----------------------------------------
DevExpress.Charts.v8.2.Core
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.Charts.v8.2.Core/8.2.6.0__9b171c9fd64da1d1/DevExpress.Charts.v8.2.Core.dll
----------------------------------------
DevExpress.XtraCharts.v8.2.UI
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraCharts.v8.2.UI/8.2.6.0__9b171c9fd64da1d1/DevExpress.XtraCharts.v8.2.UI.dll
----------------------------------------
System.Web
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.3053 (netfxsp.050727-3000)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Web/2.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
DevExpress.XtraBars.v8.2
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraBars.v8.2/8.2.6.0__9b171c9fd64da1d1/DevExpress.XtraBars.v8.2.dll
----------------------------------------
DevExpress.XtraNavBar.v8.2
Assembly Version: 8.2.6.0
Win32 Version: 8.2.6.0
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/DevExpress.XtraNavBar.v8.2/8.2.6.0__9b171c9fd64da1d1/DevExpress.XtraNavBar.v8.2.dll
----------------------------------------
Diagrammer
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/Diagrammer.DLL
----------------------------------------
Northwoods.Go.Layout
Assembly Version: 3.0.3.2
Win32 Version: 3.0.3.2
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/Northwoods.Go.Layout.DLL
----------------------------------------
Northwoods.Go
Assembly Version: 3.0.3.2
Win32 Version: 3.0.3.2
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/Northwoods.Go.DLL
----------------------------------------
AxInterop.OUTSIDEXLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/AxInterop.OUTSIDEXLib.DLL
----------------------------------------
Interop.OUTSIDEXLib
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Documents%20and%20Settings/suraj/Desktop/Appc1_P2.1/Appc/bin/Debug/Interop.OUTSIDEXLib.DLL
----------------------------------------
System.Core
Assembly Version: 3.5.0.0
Win32 Version: 3.5.30729.1 built by: SP
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<system.windows.forms jitDebugging=“true” />
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
We’re unable to reproduce the problem, but we might have a way to avoid the exception.
I have sent you e-mail about this issue.
By the way, is your graph basically tree-structured? If so, and if the nodes are all starting at about the same location, you could try setting GoLayoutForceDirected.MaxIterations to 1. That should greatly speed up the layout.
If your graph really is not-at-all tree-like, or if you are starting with the nodes already spread out, you’ll still need to do a bunch of iterations in order for the nodes to be moved about reasonably. But you could experiment with smaller values of MaxIterations than the default of 100. (Note: the default value was 1000 in versions < 3.0.)
I also had this bug:
System.ArgumentOutOfRangeException: ‘maxValue’ must be greater than zero.
Parameter name: maxValue
at System.Random.Next(Int32 maxValue)
at Northwoods.Go.Layout.GoLayoutForceDirected.UpdatePositions()
at Org.Dna.Aurora.Presentation.Standard.NetworkViews.Go.ConcreteGoNetworkDisplay. .UpdatePositions()
at Northwoods.Go.Layout.GoLayoutForceDirected.PerformIterations(Int32 num)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.LayoutClusters(Int32 level, Int32 maxiter)
at Northwoods.Go.Layout.GoLayoutForceDirected.PerformLayout()
I cannot repo the exception in sample app but I can repo it in my app.
Maybe I can get pdb files so I can give you better stack trace with line numbers?
Is there a workaround this bug?
Thank you,
Ido.
There’s a fix in 4.1 for this. You’ll need to have an active subscription.