06-29-2021 12:01 PM
wiebe@CARYA wrote:
Any .vims?
They are great, but do seem to mess things up.
A decent amount, mostly just array manipulation stuff. My build finished after only 2 attempts this morning resulting in a 100MB EXE. Here was the first error from it. I guess I can make my own thread talking about this, but I don't really have much to go on other than giving a huge project and dependencies to NI. Maybe share a whole VM with them?
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
08-13-2021 01:33 AM - edited 08-13-2021 01:51 AM
Just to add my experience to this topic. Maybe it helps someone:
I had long built time ( ~ 2,5h) for a project with roughly 50 classes.
Then I got a bad built Error (Error 1502) on every built attempt after ~2h in the built process.
Here is what helped to fix the error and reduce built time from 2,5h to 14min:
There where roughly 200 Bad VIs and maybe 100 other Problems.
The most of the Bad VIs where simply VIs that I deleted in the LV Proj. But not on disk.
The other problems (maybe the ones with the bigger impact) where cases, where VIs had 2 instances on disk (maybe just a copy) but just one in the project. That resulted to loading problems.
To resolve all this was not as hard as i thought it would be.
I even wrote a little python Skript to help with easily get the bad VIs from the textfile found with the search engine everywhere:
import re
import subprocess, os, platform
# MassCompile Error Log
f = open(file="MassCompileLog_12.08.2021 12_05.txt")
txtLines = f.readlines()
f.close()
weirdString: str = "�" # for üöä
i = 0
searchQuery = ""
for line in txtLines:
cleanLine = line.replace(weirdString, "*") # replace üöä with wildcard *
if "Bad VI" in cleanLine:
try:
badPath: str = re.findall('Path=".+"', cleanLine)[0]
filepath = badPath.replace("Path=", "") # .replace('"', "")
i += 1
print(i)
print(filepath)
searchQuery += filepath + "|" #add pipe for "OR" in Everything
except:
print("no Path= found in line:" + cleanLine)
print(i)
print("Copy the following paths to Everything Search Engine: _____________________________")
print(searchQuery[:-1]) #copy this to Everything
print("Everything Query END: _____________________________")
Much luck
08-14-2021 03:26 AM
Ouchies. Glad you figured it out, but I guess the real solution is not to do stuff outside of the project. I think we probably all learn this the hard way; I know I did.