TUFLOW crashing: Difference between revisions

Content deleted Content added
Line 14:
 
=How to keep simulation console window open=
SimulationThe simulation console window can display errors not written into the .tlf file and provideoften moreprovides additional information useful for troubleshooting:
 
* Insert "pause" at the end of the batch file and remove any Start "TUFLOW", -b and/or -t switch. Simple batch file as below should be used if current batch file doesn't keep the console window open even with the suggested changes.
* To ensure the console window remains open, add pause at the end of the batch file and remove any Start "TUFLOW", -b, or -t switches. If the console window still closes, use a simplified batch file like the example below.
**The simulation console window is the one stating with the TUFLOW build, for example "TUFLOW Build: 2020-10-AD-iSP-w64" in the header's top left corner.
 
**The batch file console window stating "C:\WINDOWS\system32\cmd.exe" in the header's top left corner won't provide desired information.
<pre> "C:\TUFLOW\Releases\2020-10-AD\TUFLOW_iSP_w64.exe" "M01_5m_001.tcf"
pause</pre>
 
** The simulation console window is the one statingthat withdisplays the TUFLOW build, for example(e.g. "TUFLOW Build: 2020-10-AD2025.0.3-iSP-w64") in the header's top -left corner of the window header, as shown in the image below.
 
[[File:TUFLOW Simulation Console with Build Info Displayed.png|frameless|600x600px]]
 
** The batch file console window, statingwhich shows "C:\WINDOWS\system32\cmd.exe" in the header's top -left corner, won'tdoes providenot display the desired information.simulation output, as shown in the image below.
 
[[File:Batch File Console Showing CMD Header Only.png|frameless|600x600px]]
* Or, let the console window be written to a text file. This will redirect console output messages as well as the standard error stream to the “dump.txt” file, and it will likely record more error information than the usual .tlf file.
<pre>"C:\TUFLOW\Releases\2020-10-AD\TUFLOW_iSP_w64.exe" "M01_5m_001.tcf" > dump.txt</pre>
<br>
 
=Simulation console window flashes and disappears=
When batch file is double clicked and the simulation DOW window flashes and disappears the problem might be in the filepath of the TUFLOW executable or incorrect syntax.<br>