User Tools

Site Tools




99 Debugging

Misc Tips & Tricks

  • If .exe build breaks (especially on RT)
    • check if any conditional disable structures contain broken code

Crashing LabVIEW

  • Automatic Saving for Recovery
    • In the event of an irregular shutdown or system failure, LabVIEW backs up any modified files open at the time of the shutdown or failure to a temporary location.
    • LabVIEW stores backed up files in the LVAutoSave subdirectory of the default data directory.
  • Rename LabVIEW.ini and see if an errant token is causing the crash
  • Manually delete the compiled object cache files:
    • First: User file at [LabVIEW Data]\VIObjCache\[version]
    • Second: LabVIEW core object cache at [LabVIEW 20xx]\VIObjCache
    • (tip courtesy of Darren N.)
  • Disable/uninstall any VI Packages, plugins, providers, menu tools etc. that might have to do with the crashes
  • If LabVIEW crashes immediately when starting, watch the splash screen to see how far it gets.

MAX Report

Extended Debug Options

INI Keys

To ensure NIER collects the most useful information, you need to set a few INI keys on the process that is executing the LabVIEW code. If the user is using the LabVIEW Development System, these keys should be set in the LabVIEW.ini file located in the LabVIEW directory in Program Files. If the user is using the LabVIEW Run-Time Engine from within the TestStand Sequence Editor or a TestStand user interface, these keys should be set in a [LVRT] section (create it if it does not exist) within the <name of executable>.ini file next to the TestStand executable.

INI keys:


Of these keys, you should always set the NIERDumpType=full key when debugging an issue, because this key will cause a larger crash dump with more debugging information to be created. This is what we colloquially refer to as a “full crash dump”. The other INI keys can be used to gather more information, but they have the caveat that they will slow execution of the code down, which can be a problem for certain types of issues.

It is also important to note that when NIER creates a full crash dump, it should not be submitted to NI through the NIER crash dialog. The NI system is not prepared to handle crash dumps as large as those generated by NIER with the INI key enabled. Instead, the customer should use our FTP site to send us these files. Additionally, the INI key should be disabled once the issue is resolved.

Log Locations


  • Taskmanager „GDI-Objects“
kb/labview/debugging.txt · Last modified: 2020/08/16 17:55 by joerg.hampel