Welcome to the RAS Solution Forums HEC-RAS Help RAS Mapper Error: The type initializer for ‘HDF.PINvoke.H5F’ threw an exception.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #6934
    Anonymous
    Guest

    I have updated HEC-RAS from 5.0.3 to 5.0.5 on an off-network Windows 10 desktop and I get this error when trying to do anything with hdf files (ras geometry has an hdf component and the terrain also has an hdf component) in RAS Mapper:

    ‘The type initializer for HDF.PInvoke.H5f threw an exception.’

    I haven’t seen this error before and I had no problems working with the project in 5.0.3. I can even open up the geometry through the Geometry editor and I can see my mesh and everything there but when I open up RAS mapper I get the above error.

    At first I thought maybe I was missing some kind of HDF .dll but I have HDF5 installed and HDF viewer installed and I’m able to view the geometry.g01.hdf file in hdf viewer so I don’t think anything is wrong with the files themselves.

    Has anyone had any success solving this problem? I’m pretty stuck here. Thank you.

    #11451
    Anonymous
    Guest

    as running models in Hec Ras 5.0.4, that last month were ok, i had the same error
    does anyone know how to solve that?
    thanks

    #11452
    Anonymous
    Guest

    I am having the same issue this week. I was able to create a terrain using v5.0.3 earlier today, but I cannot import it into v5.0.5, nor can I create a new terrain in v5.0.5. When I try to create a new terrain “proposed.hdf” from a Civil3D geotiff named “PG.tif” in v5.0.5, I keep getting the following error:

    **************************************************************************
    Computation Task | hh:mm:ss
    ———————————————————————————————
    Importing 1 of 1: PG.tif -> proposed.PG.tif
    Step 1 of 4: Translating to GeoTiff with SRS… | 1
    Step 2 of 4: Rounding and Generating Statistics… | 2
    Step 3 of 4: Generating Histogram… | 0
    Step 4 of 4: Adding Overlays… | 2
    PG.tif Import Complete. | 6
    ———————————————————————————————
    Final Processing: proposed.hdf
    Step 1 of 3: Creating proposed.vrt… | 0
    Step 2 of 3: Creating proposed.hdf…
    Error creating Terrain: The type initializer for ‘HDF.PInvoke.H5F’ threw an exception.
    Cleaning up files…
    ***************************************************************************

    Any and all advice is appreciated – thank you!

    #11453
    Anonymous
    Guest

    I tried removing and reinstalling the software, and then it worked properly.

    #11454
    Neeraj Kumar
    Participant

    I got the same error. The error can be resolved by using these steps.

    Some files such as C++ and others may not be working properly.

    Uninstall the software and restart the computer system. Install the software again. it will work.

    #11455
    Neeraj Kumar
    Participant

    I got the same error. The error can be resolved by using these steps.

    Some files such as C++ and others may not be working properly.

    Uninstall the software and restart the computer system. Install the software again. It will work.

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