VI Containing a Scan Engine Shared Variable in LabVIEW Class Packaged in Library on Host (My Computer) Causes LabVIEW Crash

Updated Feb 10, 2023

Reported In

Software

  • LabVIEW

Issue Details

A LabVIEW project is crashing under a very specific setup and happens on 2019, 2020, 2021 and 2022.
It has a Library > Class > VI containing an I/O shared variable. Then when you save the project and reopen it, it crashes with an access violation code.

Solution

This is a known issue reported under Bug 185161. There are a couple of workarounds: 
  • Programmatically open the Shared Variable.
  • Open the LabVIEW Library (lvlib) first, then open the LabVIEW Project.
  • Move the LabVIEW Class containing the VI with a Scan Engine Shared Variable outside of the LabVIEW Library.