Troubleshooting Guide¶
This guide helps you resolve common issues with FMU Manipulation Toolbox.
Installation Issues¶
❌ Command fmutool not found¶
Symptom:
Cause: Python scripts directory is not in PATH.
Solution:
Windows:
# Find scripts path
python -m site --user-base
# Add %APPDATA%\Python\Python3X\Scripts to your PATH
# Or use directly:
python -m fmu_manipulation_toolbox.fmutool -h
Linux/macOS:
# Add to PATH in ~/.bashrc or ~/.zshrc
export PATH="$HOME/.local/bin:$PATH"
# Reload
source ~/.bashrc
Modification Issues¶
❌ Modifications not applied¶
Symptom: Output FMU is identical to original.
Cause: Missing -output option
Solution:
# ❌ INCORRECT (no save)
fmutool -input module.fmu -remove-toplevel
# ✅ CORRECT
fmutool -input module.fmu -remove-toplevel -output module-modified.fmu
❌ CSV renaming error¶
Symptom:
Solutions:
- Incorrect CSV format
# Generate correct CSV first
fmutool -input module.fmu -dump-csv ports.csv
# Verify format (must contain: name;newName;...)
head ports.csv
- File encoding
CSV must be UTF-8 encoded with semicolon (;) separator
- Missing names in CSV
❌ Name collision after modification¶
Symptom:
Cause: Two different variables have the same new name.
Solution:
Check your renaming CSV:
# ❌ INCORRECT (two variables → same name)
Motor.Temperature;Temperature;0;output;continuous
Controller.Temperature;Temperature;1;output;continuous
# ✅ CORRECT (distinct names)
Motor.Temperature;Motor_Temperature;0;output;continuous
Controller.Temperature;Controller_Temperature;1;output;continuous
GUI Issues¶
❌ GUI won't launch¶
Symptom:
Solution:
❌ FMU Container Builder: wires have no port mappings¶
Symptom: After loading an existing FMU container, clicking on a wire shows empty mapping tables in both tabs.
Cause: The container FMU may have been built with a version that did not store port-level mappings. Or the .fmu file is corrupted.
Solution:
- Select the wire
- Click Link Assistant: it opens on Same name and proposes the links between ports of matching names; click Stage checked links, switch the direction (B → A) to do the same, then Apply (see Link Assistant)
- Manually adjust if needed using the combo-box dropdowns in each tab
❌ FMU Container fails to instantiate: format version of container.txt¶
Symptom: the importer cannot instantiate a container FMU, and its log shows:
Configuration error(...): line #1: container.txt format version 6, this runtime reads version 7: build the container again with the version of FMU Manipulation Toolbox that provides this runtime.
container.txt has no format version header. Cause: the resources/container.txt of the container and its runtime (binaries/) come from different versions of FMU Manipulation Toolbox: the file was edited or copied from another container, or the binaries were replaced.
Solution: build the container again (fmucontainer, the Python API or fmucontainer-gui) with one version of FMU Manipulation Toolbox. To rebuild a container whose description is lost, fmusplit extracts the embedded FMUs and a description file from it.
❌ FMU fails to load: missing DLL dependencies¶
Symptom: a container or a remoted FMU cannot be instantiated, and its log shows DLL ... has missing dependencies. followed by Cannot load ....
Cause: the DLL of the FMU depends on DLLs that are found neither in its directory (binaries/win64 or win32) nor in the system directories or the PATH.
Solution: on Windows, the runtime searches the dependencies of the DLL first in its own directory: add the missing DLLs to the binaries/<platform> directory of the FMU. On Linux and macOS, the dependencies of a shared library are found in its directory only if it is linked with an RPATH set to $ORIGIN (@loader_path on macOS): ask the provider of the FMU for such a build.
❌ FMU Variable Editor: changes are not saved¶
Symptom: After editing variable names or descriptions, saving the FMU does not apply the changes.
Cause: Only modified cells (highlighted in orange) are written to the output FMU. If no cell appears orange, the edit was not registered.
Solution:
- Make sure to press Enter or click another cell after editing to confirm the change.
- Look for the orange highlight on modified cells before saving.
❌ Texts too small, too large or cut off in the GUIs on Windows¶
Symptom: With a display scale of 125 % or 150 % on Windows, the texts of the GUIs do not fit their widgets, or look smaller than in the other applications.
Explanation: From 100 % to 174 %, the GUIs round the scale down to 1: the widgets keep the size they have at 100 %. So that the texts fit them, the fonts get the DPI of a scale of 100 % (96) too: the toolbox sets QT_FONT_DPI=96 while the application starts. From 175 % (200 % for instance), fonts and widgets are scaled alike.
Solution: If QT_FONT_DPI is already set in the environment, the toolbox keeps its value. Remove it to get the default behaviour, or set it to choose the size of the fonts yourself (for instance 120 at 125 %, at the risk of texts cut off in their widgets):
❌ Available GUI commands¶
All GUI tools can be launched independently:
| Command | Description |
|---|---|
fmutoolbox | Launcher with all GUI tools |
fmutool-gui | FMU analysis & modification |
fmueditor | FMU variable editor |
fmucontainer-gui | FMU container builder |
Python API Issues¶
❌ Operations don't modify the FMU¶
Wrong code:
from fmu_manipulation_toolbox.operations import FMU, OperationStripTopLevel
fmu = FMU("module.fmu")
operation = OperationStripTopLevel()
# ❌ Operation not applied!
fmu.repack("output.fmu")
Correct code:
from fmu_manipulation_toolbox.operations import FMU, OperationStripTopLevel
fmu = FMU("module.fmu")
operation = OperationStripTopLevel()
fmu.apply_operation(operation) # ✅ Apply the operation!
fmu.repack("output.fmu")
Need More Help?¶
- Check the complete documentation
- Search GitHub Issues
- Create a new issue with system details and error message
Last updated: April 2026