Welcome to the RAS Solution Forums HEC-RAS Help Unhandled exception in RAS Mapper, HEC-RAS 4.1.0

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #6036
    Anonymous
    Guest

    Hi

    my RAS Mapper suddenly stopped working. I have allready made succesfully many floodmaps in the same project. When I try to open Mapper it starts to load information but end up to an unhadled exception. Message says: Parameter is not valid. After pressing a continue button it gives a Run-time error ‘-2147024809 (80070057)’: Parameter is not valid. Under you can find some information about error. It happens only with this project.

    Any ideas what to do? I still have couple floodmaps to do.

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

    ************** Exception Text **************
    System.ArgumentException: Parameter is not valid.
    at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
    at System.Drawing.Graphics.DrawLines(Pen pen, Point[] points)
    at RasMapperLib.Polygon.PlotFeaturePenBrush(Plot plot, Pen Pen, Brush brush, Graphics g)
    at RasMapperLib.Polygon.PlotFeature(Plot plot, Layer layer, Graphics g)
    at RasMapperLib.Layer.(Plot , Graphics )
    at RasMapperLib.Layer.PlotFeatures(Plot plot, Graphics g)
    at RasMapperLib.Plot.(Graphics , TreeNodeCollection )
    at RasMapperLib.Plot.(Graphics , TreeNodeCollection )
    at RasMapperLib.Plot.(Graphics , TreeNodeCollection )
    at RasMapperLib.Plot.PlotFeatures()
    at RasMapperLib.RASMapper.LoadRasMapFile()
    at RasMapperLib.RASMapper.(Object , EventArgs )
    at System.Windows.Forms.Form.OnLoad(EventArgs e)
    at System.Windows.Forms.Form.OnCreateControl()
    at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
    at System.Windows.Forms.Control.CreateControl()
    at System.Windows.Forms.Control.WmShowWindow(Message& m)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
    at System.Windows.Forms.ContainerControl.WndProc(Message& m)
    at System.Windows.Forms.Form.WmShowWindow(Message& m)
    at System.Windows.Forms.Form.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.5485 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
    —————————————-
    RasMapperLib
    Assembly Version: 1.0.0.0
    Win32 Version: 1.0.0.0
    CodeBase: file:///C:/Program%20Files%20(x86)/HEC/HEC-RAS/4.1.0/RasMapperLib.DLL
    —————————————-
    System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5485 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
    —————————————-
    System.Core
    Assembly Version: 3.5.0.0
    Win32 Version: 3.5.30729.5420 built by: Win7SP1
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll
    —————————————-
    Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.5483 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
    —————————————-
    System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5491 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    —————————————-
    System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5495 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    —————————————-
    System.Configuration
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    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.5494 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
    —————————————-
    System.Data
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.5483 (Win7SP1GDR.050727-5400)
    CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.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:



    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.

    #9787
    Lonnie A
    Participant

    Here is what I’ve had to do when I’ve had Mapper crashing that you might try.

    If you have a small storage area graphic and you are zoomed out this will cause this sometimes. You need to try and zoom in on the small area then close mapper and reopen.

    Other times I’ve had to delete the mapper files from the project folder and start mapper over again.

    #9788
    Anonymous
    Guest

    Thank you for your answer Lonnie.

    I can’t try your first suggestion, because Mapper crashes before I am able to do anything.

    I have to try your second suggestion. The problem is that I don’t no where to find those Mapper files. I tried to find correct filetypes using earlier post but didn’t find any that could be from Mapper. How can I recognise those files?

    Post I used is: http://hecrasmodel.blogspot.com/2013/04/hec-ras-file-types.html

    #9789
    cameron
    Participant

    *.rasmap is the mapper file.

    #9790
    Lonnie A
    Participant

    Couple things I think you can try to get past mapper crashing as soon as you open it (if the storage area is the issue):

    Try creating another plan with a dummy geometry and have that as the current plan before you try to open Mapper. Once mapper opens you can zoom in on the small storage area graphic and then close mapper. Go back to RAS and set plan to your run of interest and then go back to mapper.
    Or
    If it is a small storage area that is causing the problem you can either drag points to make the storage area graphic larger or delete it. This might get you into mapper without the crash.

    I believe what the problem is with small SA graphics has to do with the display compressing the small polygon into a single point….

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