Welcome to the RAS Solution Forums HEC-RAS Help RAS Mapper: Index was out of range

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15022
    Niels Dedring
    Participant

    Hello everyone,
    I am new to HEC-RAS so I apologize for my lack of knowledge. Overall I want to simulate a glacial lake outburst flood in the Himalayas, but I already struggling at the beginning. After I loaded my DEM (12,5 x 12,5) into RAS Mapper everything seems normal. But after I reopened it the Legend of the Terrain shows some crazy Values and when I try to open its properties the following Error pops up:

    Unhandled exception has occourred in your application. If you click Continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediatley.
    Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index

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

    ************** Exception Text **************
    System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.
    Parameter name: index
    at System.ThrowHelper.ThrowArgumentOutOfRangeException(ExceptionArgument argument, ExceptionResource resource)
    at RasMapperLib.SetSurfaceFill.DGV_Refresh(List1 values, List1 colors)
    at RasMapperLib.SetSurfaceFill.Initializeform(ISurfaceFill sf, Dictionary`2 valueToStrVal)
    at RasMapperLib.LayerProperties.cboStretch_SelectedIndexChanged(Object sender, EventArgs e)
    at System.Windows.Forms.ComboBox.OnSelectedIndexChanged(EventArgs e)
    at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
    at RasMapperLib.LayerProperties..ctor(Layer layer, Form ownerForm)
    at RasMapperLib.InterpolatedLayer.ShowPropertiesWindow(LayerPropertyTab layerTab)
    at RasMapperLib.RASMapper.tvw_DoubleClick(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnDoubleClick(EventArgs e)
    at System.Windows.Forms.TreeView.WndProc(Message& m)
    at RasMapperLib.RASMapper.TreeViewDoubleClick.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.4420.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
    —————————————-
    PipeServer
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/PipeServer.exe
    —————————————-
    System.Core
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    —————————————-
    System
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4360.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    —————————————-
    Utility.Core
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/Utility.Core.DLL
    —————————————-
    RasMapperLib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/RasMapperLib.DLL
    —————————————-
    System.Drawing
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4390.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    —————————————-
    System.Windows.Forms
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4400.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    —————————————-
    Geospatial.GDALAssist
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/Geospatial.GDALAssist.DLL
    —————————————-
    H5Assist
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/H5Assist.DLL
    —————————————-
    System.IO.Compression
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.IO.Compression/v4.0_4.0.0.0__b77a5c561934e089/System.IO.Compression.dll
    —————————————-
    Hec.Dss
    Assembly Version: 1.0.6.0
    Win32 Version: 1.0.6.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/Hec.Dss.DLL
    —————————————-
    System.Xml
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.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.4270.0 built by: NET48REL1LAST_C
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    —————————————-
    Microsoft.VisualBasic
    Assembly Version: 10.0.0.0
    Win32 Version: 14.8.4084.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
    —————————————-
    Geospatial.Core
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/Geospatial.Core.DLL
    —————————————-
    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
    —————————————-
    ParticleTracking
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/ParticleTracking.DLL
    —————————————-
    OxyPlot.WindowsForms
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/OxyPlot.WindowsForms.DLL
    —————————————-
    OxyPlot
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/OxyPlot.DLL
    —————————————-
    System.Runtime
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Runtime.dll
    —————————————-
    TiffAssist
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/TiffAssist.DLL
    —————————————-
    System.Globalization
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Globalization/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Globalization.dll
    —————————————-
    HDF.PInvoke
    Assembly Version: 1.10.6.1
    Win32 Version: 1.10.6.1
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/HDF.PInvoke.DLL
    —————————————-
    System.Numerics
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
    —————————————-
    BitMiracle.LibTiff.NET
    Assembly Version: 2.4.639.0
    Win32 Version: 2.4.639.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/BitMiracle.LibTiff.NET.DLL
    —————————————-
    System.Xml.Linq
    Assembly Version: 4.0.0.0
    Win32 Version: 4.8.4084.0 built by: NET48REL1
    CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml.Linq/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.Linq.dll
    —————————————-
    Geospatial.IO
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/Geospatial.IO.DLL
    —————————————-
    TiffBinaryReader
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/TiffBinaryReader.DLL
    —————————————-
    Geospatial.Rendering
    Assembly Version: 6.0.0.0
    Win32 Version: 6.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/6.1/Geospatial.Rendering.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.
    —————————————————————-
    I hope someone can help me with this Issue.
    Many Thanks in advance,
    Niels

    #15115
    Scott Miller
    Participant

    I would guess you have set up a 2D model with a breach in an embankment. Correct? How well does flow pass from upstream to downstream boundary conditions without the breach? Check elevations of the breach with regard to the terrain. If the breach goes lower than the terrain, the problem may be there.

    #15125
    Niels Dedring
    Participant

    Thanks for your response! I found my mistake and was much simpler… I haven’t changed the regional format of Windows from German to US, so HEC-RAS misinterpreted the , and .

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.