Error -307682 When Deploying an FMU Model with VeriStand on a Linux RT Target

Updated Aug 1, 2025

Reported In

Software

  • VeriStand

Issue Details

I generated an FMU model with Activate v2022.2 or Simulink for Linux RT. The FMU model deploys successfully on a PXI Linux RT target through FMUChecker. However, when deploying it with the VeriStand 2023 Q4 or newer version, the following error is seen on the monitor of the Linux RT target:

"description":"SO_REUSEPORT unavailable on compiling system"

I also got an error -307682 on the host PC:

NI VeriStand: Could not complete one or more requests because a target is offline.

Solution

This is due to a model initialization crash caused by a segmentation fault arising from stack overflow. You can increase the stack size limit for threads that lvrt sets. For VeriStand 2023 or later version, find the file lvrt.conf under /etc/natinst/share of Linux RT, and add the required key highlighted below:
[LVRT]
thpolicy_tcrit = fifo
thpri_tcrit = 94
thpolicy_vhigh = rr
thpri_vhigh = 6
thpolicy_high = rr
thpri_high = 5
RTCPULoadMonitoringEnabled = True
RTMode = True
appFont = "paratype-pt sans" 12
dialogFont = "paratype-pt sans" 12
systemFont = "paratype-pt sans" 12
PosixThreadStackSizeLimit = 2048
RTTarget.LaunchAppAtBoot = "True"
RTTarget.ApplicationPath = "/c/ni-rt/startup/NI VeriStand.rtexe"
PosixThreadStackSizeLimit = 2048