LabVIEW Executable Intermittently Crashes in clrjit.dll

Updated Aug 24, 2026

Reported In

Software

  • LabVIEW

Issue Details

I have a 64-bit standalone LabVIEW application that uses NI Vision and a third-party .NET GPU library. The application intermittently crashes during continuous operation on systems using Intel Core i9-14900K processors.
The crash does not occur consistently and may only appear after the application has been running for some time. CPU, RAM, and GPU utilization remain within normal ranges when the issue occurs.
The application runs successfully inside the LabVIEW Development Environment, but the problem only occurs when running the built executable.

Solution

The observed behavior can occur when the Microsoft .NET Framework Common Language Runtime (CLR) encounters an internal assertion failure while performing Just-In-Time (JIT) compilation of loaded .NET assemblies.
Analysis of the executable crash dump identified an assertion failure within clrjit.dll with the following call stack pattern:
 
clrjit!Compiler::fgPerBlockLocalVarLiveness
clrjit!noWayAssertBody
clrjit!fatal
 
Exception Code:
 
02345678
 
To mitigate the issue, perform the following steps:
  1. Upgrade Microsoft .NET Framework to version 4.8 or 4.8.1 on all target systems.
  2. Install all available cumulative Windows updates.
  3. Disable JIT compiler optimizations by configuring the following environment variable:

 

COMPlus_JITMinOpts=1
 
This variable can be configured system-wide or defined within an application launcher script before launching the LabVIEW executable.
  1. Pre-compile .NET assemblies by using the Native Image Generator (ngen.exe) to perform ahead-of-time compilation and reduce dependence on runtime JIT compiler optimization.
Open an elevated Command Prompt and run:
 
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\ngen.exe install "C:\Path\To\YourDotNetLibrary.dll"
 
Verify that all loaded .NET assemblies and native dependencies target 64-bit architectures (x64 or AnyCPU) and are compatible with the LabVIEW executable architecture.
Generate and review crash dump files if the problem persists to confirm whether the failure remains within clrjit.dll or has shifted to another component.