Difference between revisions of "Tutorial Troubleshooting QGIS"
Line 122: | Line 122: | ||
=Conclusion= | =Conclusion= | ||
− | If the above tips do not assist in fixing the error, | + | If the above tips do not assist in fixing the error, email [mailto:support@tuflow.com support@tuflow.com]. |
<br> | <br> |
Revision as of 09:30, 13 May 2022
Introduction
This troubleshooting page contains common errors and steps to follow when investigating models.
Common Errors
Unsaved Control Files
When changes are made in the control files and the files are not saved, errors occur.
- Check all simulation control files and batch files are saved (). A red icon indicates that there are unsaved changes in the file:
- Use the 'Save All' tool to save all unsaved control files:
Unsaved GIS Layers
When changes are made in GIS layers and the layers are not saved, errors occur.
- Check all GIS input layers are saved. If the 'Save Layer Edits' icon is available (), there are unsaved edits in the layer.
- A pencil icon on the layer () indicates that the layer is still editable and may contain unsaved edits. It is recommended to always turn off editing for all input layers.
TUFLOW Syntax Rules
Control files use a double equal sign (==). When a single equal sign is used, the simulation stops with and error at the end of the .tlf file:
Typos in Control Files
Typos in control files are common, with the majority resulting in a 'does not exist' pop up message:
To fix the reference:
- The file that cannot by found is M02_01.tgc. Go to the folder where the file should be (in this example the TUFLOW\model folder).
- The file referenced should be M02_001.tgc.
- Update the reference in the TCF and confirm the file can now be found by right clicking on the file and selecting open.
Typos in Input Layers
Typos in input layers are common, resulting in a 'does not exist' pop up message:
To fix the reference:
- The layer that cannot by found is 1d_nwk_M03_culverts_001_L.shp. Go to the folder where the file should be (in this example the TUFLOW\model\gis folder).
- The layer has a spelling mistake 'culvrts'.
- In QGIS use the 'Increment Selected Layer' tool to save the file with the correct name.
Note: The tool automatically increments a number if it is at the end of the file name.
Troubleshooting Steps
DOS Window Flashes and Disappears
When a batch file has been clicked and a DOS window flashes up and disappears:
- Check the location of the TUFLOW executable. Right click on the .exe from the batch file and ensure that the executable can be found and open.
- Check the location of the TCF. Right click on the TCF from the batch file and ensure that the file can be found and open.
- If using environment variable 'set exe', confirm there are no spaces surrounding the equals sign (e.g. set exe="..\..\..\..\exe\2020-10-AD\TUFLOW_iSP_w64.exe").
- Check where the model and executable are located. We recommend to not use the C drive or an external hard drive.
- Batch files do not currently support UNC paths. The folder with the executable has to be opened with a mapped drive. Type "net use <drive>: \\server_name\share_name" in the command line to map desired drive.
- Write 'pause' at the end of the script. Re-run the batch file and the DOS window remains, giving some more information. In the below example, the file path to the TUFLOW exe is incorrect:
_ TUFLOW Simulations (*.log)
To confirm the simulation has finished:
- Navigate to the TUFLOW\runs folder and open the _ TUFLOW Simulations.log in a text editor.
- Confirm if the simulation has 'Started' and 'Finished'.
- If there is no log file, see here.
TUFLOW Log File (*.tlf)
Open the TUFLOW log file (*.tlf) and confirm at the bottom of the file, that the model run finished successfully by observing "Simulation FINISHED". If the simulation has not finished:
- Scroll to the bottom of the TLF, work from the bottom up to review any error, check or warning messages. If no error messages appear and the last line shows 'Sending initialisation data to HPC...' see HPC TUFLOW Log File.
- Review the Error number, open the link provided in a web browser and read through the description and suggestions:
- Open the workspace in QGIS from the TUFLOW\runs\log folder.
- Click 'Apply TUFLOW Styling'.
- Zoom in to the location of any error messages, turn on labelling to view the error.
HPC TUFLOW Log File (*hpc.tlf)
If there is no error message in the TLF and the last lines show:
- The model has been set up to run on GPU and there is no GPU available, or
- The GPU needs a driver update, for more information see Update GPU Driver.
Conclusion
If the above tips do not assist in fixing the error, email support@tuflow.com.
Up |
---|
Back to Tutorial Introduction Main Page |