Jump to content
Ventilation & Flow Simulation Forums

Saved View > long section crashes app


John Bowling

Recommended Posts

Viewing the long section crashes Ventsim 5.4.4.0. Both pressing F2 while in plan view (to toggle to Section X Axis) and selecting Saved Views > Section X Axis both cause this.

After this error is received, many actions result in errors.

 

Error is: Unhandled exception... Error code included below:

 

See the end of this message for details on invoking 
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.OutOfMemoryException: Array dimensions exceeded supported range.
   at System.Collections.Generic.List`1.set_Capacity(Int32 value)
   at System.Collections.Generic.List`1.EnsureCapacity(Int32 min)
   at System.Collections.Generic.List`1.Add(T item)
   at ChasmGraphics.Grid.CreateGridSection(Single _centerZ, Single _spacing, Vector3 _startPoint, Int32 _direction, Single _modelSizeX, Single _modelSizeY, Single _modelSizeZ, Single _axisX, Single _axisY, Single _axisZ, Int32 _gridColor, Int32 _gridSheetColor, Vector3 _modelCenter, Double _coordCenterZ, Single _spinAngle, Device _device)
   at VentsimUI.Renderer.createGridSectionView(Single centerz, Int32 formnumber)
   at VentsimUI.Renderer.CreateGrid(Single centerz, Int32 formNumber)
   at VentsimUI.Renderer.CreateGrid(Int32 formNumber)
   at VentsimUI.clsManagerFiling.ScreenSet(ScreenSetType screensetType, Int32 viewNo, Int32 formNumber, Boolean screenUpdate)
   at VentsimUI.MainFormController.LoadView(Int32 activeview)
   at Ventsim.frmMainForm.LoadViewClick(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.HandleMouseUp(MouseEventArgs e)
   at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
   at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ToolStrip.WndProc(Message& m)
   at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
----------------------------------------
VVentsim
    Assembly Version: 5.4.4.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4210.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
966fc2da-5a0c-46e8-b00d-07b87f2d6b94
    Assembly Version: 1.0.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
NLog
    Assembly Version: 4.0.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
System.Configuration
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4290.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Data
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4290.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
System.ServiceModel
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.ServiceModel/v4.0_4.0.0.0__b77a5c561934e089/System.ServiceModel.dll
----------------------------------------
System.Runtime.Serialization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4290.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
ChasmCommon
    Assembly Version: 1.2.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
VentsimUI
    Assembly Version: 5.2.3.8
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
VentsimSimulation
    Assembly Version: 1.2.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Microsoft.VisualBasic/v4.0_10.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
VentsimObjects
    Assembly Version: 1.2.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
System.Windows.Forms.DataVisualization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4210.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.DataVisualization/v4.0_4.0.0.0__31bf3856ad364e35/System.Windows.Forms.DataVisualization.dll
----------------------------------------
SharpDX
    Assembly Version: 2.6.3.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
SharpDX.Direct3D9
    Assembly Version: 2.6.3.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
System.Web
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4261.0 built by: NET48REL1LAST_B
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Web/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Web.dll
----------------------------------------
hsenomogram
    Assembly Version: 1.0.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Microsoft.GeneratedCode
    Assembly Version: 1.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Accessibility
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/Accessibility/v4.0_4.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
ChasmLicensing
    Assembly Version: 1.2.1.5
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
WeifenLuo.WinFormsUI.Docking
    Assembly Version: 2.13.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
VentDuct
    Assembly Version: 1.2.1.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
VentsimConnect
    Assembly Version: 1.0.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
ChasmGraphics
    Assembly Version: 1.0.0.22
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
VentsimData
    Assembly Version: 1.2.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
VentsimGraph
    Assembly Version: 1.2.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
SharpDX.DirectSound
    Assembly Version: 2.6.3.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
epanet
    Assembly Version: 1.1.0.8
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
Patch
    Assembly Version: 1.0.0.0
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
System.Management
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Ionic.Zip
    Assembly Version: 1.9.1.8
    Win32 Version: 5.4.4.0
    CodeBase: file:///C:/Program%20Files/Ventsim%20Design%205/VVentsim.exe
----------------------------------------
System.Net.Http
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.3761.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Net.Http/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Net.Http.dll
----------------------------------------
Ventsim_ExternalCommunicationLibrary
    Assembly Version: 6.0.0.373
    Win32 Version: 6.0.0.373
    CodeBase: file:///C:/Program%20Files/VentSim%20Design%205/bin/Ventsim_ExternalCommunicationLibrary.DLL
----------------------------------------
SmartEXEC_SharedSharp
    Assembly Version: 6.0.0.373
    Win32 Version: 6.0.0.373
    CodeBase: file:///C:/Program%20Files/VentSim%20Design%205/bin/SmartEXEC_SharedSharp.DLL
----------------------------------------
VentSim_Language
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files/VentSim%20Design%205/bin/VentSim_Language.DLL
----------------------------------------
SmartEXEC_Constants
    Assembly Version: 6.0.0.373
    Win32 Version: 6.0.0.373
    CodeBase: file:///C:/Program%20Files/VentSim%20Design%205/bin/SmartEXEC_Constants.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:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

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.
 

Link to comment
Share on other sites

Hi John,

In the error message it indicates that the system is running out of memory.

Can you open the task manager with the model open and check how much RAM is in use when you attempt to change the view?  

 Would you be able to send us the file to see if we can recreate it or find out why it is happening with your model? It might be fixed by adjusting the grid size so that it has a smaller amount of grid lines to create:

image.png.2d20e09205c608779f5f888d94d46ca6.png

 

 

 

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.

×
×
  • Create New...