FhSim  3.1.0
Marine systems simulation
Loading...
Searching...
No Matches
Troubleshooting

Troubleshooting is split across two pages: this page covers build/setup problems and gives a general diagnostic checklist, while the runtime error catalogue — specific error messages and their resolutions — lives in Runtime errors and diagnostics.

Build and setup issues

Conan/CMake configuration fails

  • Verify toolchain prerequisites in Setup developer environment.
  • Re-run profile detection (conan profile detect --force) if compiler config changed.
  • Reinstall dependencies with --build=missing.

Missing package or remote access errors

  • Verify you are using the correct Conan remotes and credentials.
  • Confirm access rights to private package repositories (if applicable).

Runtime issues

Simobject library file not found in one of: ...

Typical causes:

  • LibName in XML does not match available runtime library name.
  • Build type mismatch (Debug/Release) between executable and SimObject library.
  • Visualization mismatch (library built with/without visualization versus executable).

Actions:

  1. Run from the playpen/bin directory: a LibName without a path separator is looked up in the SimObjectLibraries sub-directory of the working directory.
  2. Verify referenced libraries are present and named correctly. The message quotes both paths tried — the plain name and the fhsim_-prefixed fallback.
  3. Rebuild all related components with matching options.
Note
If the file is found but cannot be loaded, the message is instead In FhSimDll: Could not load library "..." from directory "..." (or In FhVisDll: from the visualization loader), which points at a missing runtime dependency rather than a missing file.

Simulation exits before visualization starts

  • Check logoutput.txt (or configured log file).
  • Verify XML syntax and required sections (OBJECTS, INTERCONNECTIONS, INITIALIZATION, SIMULATION).
  • Validate integrator/provider setup against SIMULATION section.

Visualization startup issues

  • Check Ogre.log for renderer/resource errors.
  • Ensure GPU/driver stack is updated.
  • If needed, remove stale ogre.cfg to regenerate renderer settings.

License errors

  • Set SFH_LICENSE_FILE to a valid license file path, or place license.lic in the working directory.
  • Confirm the license matches your product/build entitlement.

Simulation is slow, unstable, or produces NaN/Inf

FhSim has a built-in diagnostics subsystem that reveals why a run misbehaves (collapsing step size, a specific state forcing small steps, a wrong analytical Jacobian, or where a NaN/Inf first appears). Enable it via the <Diagnostics> element and, if useful, view the results in the browser. See the worked recipes in Diagnostics cookbook. For making a correct run faster, see Performance tuning.

Diagnostic checklist

  1. Run <Executable> --help to verify executable availability.
  2. Run with a known-good example input file.
  3. Increase console/file verbosity to capture detailed diagnostics.
  4. Reduce scenario complexity to isolate failing object/connection.