TestStand Crash Log and Dump File

TestStand creates the following files after a TestStand application crash:

  • Dump file in <TestStand_LocalAppData>\NIERDump directory
  • TestStand specific log file in <TestStand_LocalAppData>\CrashLogs directory

You can use the configuration file to specify settings for the dump and TestStand specific log file. The configuration file is an .ini file in the same directory as the TestStand application. The name of the configuration file must be same as the executable name of the TestStand application.

In the configuration file, create a section with the same name as the name of the executable. Use the following tokens and values to specify the options:

Token Name Value Purpose
TSLogType None Do not create TestStand crash log.By default, TestStand crash log is created.
NIER False Do not create NIER crash dump. By default, NIER crash dump is created.
NIERDumpType Full Create full (instead of mini) NIER crash dump.By default, mini dump file is created.
LogVariables True Enable logging of Locals, Parameters, and FileGlobals in the TestStand specific log file.By default, Locals, Parameters, and FileGlobals are not logged in the TestStand log file.
Note Crash log and dump file are not sent to any server.
Note Crash log and dump file are not generated if the application crashes before creating an instance of the TestStand Engine.

The different configuration options combined with the number of different environments supported by TestStand affects how the crash recovery feature operates. Below is a table of different behaviors produced by the crash recovery feature in different scenarios:

Behavior Using TestStand 2017 in LabVIEW ADE Using TestStand 2017 in all other scenarios Using older version of TestStand in LabVIEW ADE Using older version of TestStand in LabVIEW-built executable Using older version of TestStand in all other scenarios
TestStand crash log Created Created Not created Not created Not created
NIER dump Created by TestStand Created by TestStand Created by LabVIEW Created by LabVIEW Not created
Send data to NI server NIER dump is sent to NI server on user consent. No data is sent to NI server. NIER dump is sent to NI server on user consent. No data is sent to NI server. N/A
TSLogType=none in configuration file TestStand log is not created. NIER dump is created. TestStand log is not created. NIER dump is created. N/A N/A N/A
NIER=false in configuration file TestStand log is created. NIER dump is not created. TestStand log is created. NIER dump is not created. NIER dump is not created. NIER dump is not created. N/A

Restrictions of using the feature

  • Code modules should not register to functions like SetUnhandledExceptionFilter, set_invalid_parameter_handler, and set_purecall_handler to handle application crash.
  • Crash due to out of memory is not supported.