Tutorial Troubleshooting QGIS: Difference between revisions

Content deleted Content added
Line 72:
 
=Troubleshooting Steps=
=== Simulation DOS Window Flashes and Disappears ===
When a batch file hasis beendouble clicked and athe DOSsimulation DOW window flashes up and disappears the problem might be in the filepath of the TUFLOW executable or incorrect syntax:
<ol>
<li>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.
<li>Double click the executable, this performs a licence check and DOS window appears. If it doesn't, move the executable to a location where it is permitted to run. Some locations on C drive might be restricted for some users preventing to execute the simulation.
<li>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.
<li>BatchTUFLOW filesdoesn't dorun notfrom currentlya batch file if the filepaths are specified supportas UNC paths. The folder with both, the executable hasand tothe model, must be opened with a mapped drive. Type "net use <drive>: \\server_name\share_name" in the command line to map desiredthe drivedrives.
<li>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").
<li>Check where the model and executable are located. We recommend to '''not''' use the C drive or an external hard drive.
<li>Write 'pause' at the end of the script., Re-runrerun the batch file and the DOS window remains,should givingremain someopen giving more information. In the below example, the file path to the TUFLOW exe is incorrect:<br>
<li>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.
<li>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:<br>
<br>
[[File:Animation Troubleshooting CommonErrors 05a.gif]]<br>