LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Distribution build has just started hanging / freezing in CVI 2015

Hello All,

 

I have been running CVI 2015 for a while (over a year i'd guess). While there is often an error that pops up with reference to XML settings in some NI file, the distrubution would proceed to build and consequently distribute. In retrospect, I should have looked more into that I guess.

 

Yesterday, that is behavior changed. Instead of throwing an error the progress just stops. When you "Abort Build", the button commentary switches to "Close " and "Aborting" appears above the progress bar , but that is it.  "Explore Output Directory" still functions.

 

Eventually I use task manager to shut it down.

 

I have removed CVi 2015 and CVI 2013 and reinstalled CVi 2015 with no luck.

 

I tried making a new  distribution from scratch. No luck.

 

I tried a different proven build and the same thing happens. By now I have convinced myself that the hang happens at the same point in the distribution build. This project is all native CVI code without any external linkages.

 

The point where the hangs occurs is always (somewhat limited testing for 30 tries)

 

"Building template.ini"

 

and that Template.ini (from the distribution builds directory) fails at the same point ( and in mulitple projects) where the last line is

 

"[Parts]"

 

Some representative files (template.ini and screen shot at hang) are attached.

 

Full disclosure: I am on a SSP and couldn't check out the physical media yesterday (download instead) and so I resisted scrubbing all of the NI software for now.

 

Is there any reason to think this might a Microsoft change (msi installer for instance) instead of a CVI setting / corruption?

 

Stumped on the day before vacation... but that always happens right?

 

Thanks in advance for any thoughts.

 

 

Download All
0 Kudos
Message 1 of 9
(4,498 Views)

Hi blakney,

 

Are you able to build any LabWindows/CVI shipping examples, or do you run into the same problem with them? Open up the Example Finder (Help -> Find Examples...), and open a simple example. I would try: Fundamentals -> Graphs and Charts -> graphs.cws. Building an example program this way will remove factors such as external libraries from the equation, and should help us narrow down the source of the problem.

 

Also, have you tried performing a force reinstall of LabWindows/CVI? If your installation of CVI 2015 has any file corruption associated with it, then a force reinstall could resolve this while a regular reinstall will not. I've included a link at the bottom of this post to a KnowledgeBase that walks through the process.

 

Force Reinstall NI Software from the Command Prompt in Windows: http://digital.ni.com/public.nsf/allkb/ADD22E807D5A12AD862579EC00760F79

Tom D.
Staff Software Engineer
NI
0 Kudos
Message 2 of 9
(4,476 Views)

Apologies for the delay. I was out of office Friday,

 

Results for Graph.cws.

 

Build 32 bit debug program - fine.

Build 32 bit release program - fine.

Build 32 bit release distribution (32 bit installer) - fails to progress at template.ini (5 minute wait)

Build 64 bit debug program - fine.

Build 64 bit relase program - fine.

Build 64 bit release distributuion (64 bit installer) fails to progress at template.ini (3 minute wait)

 

I have already removed CVI 2013 and CVI 2015, rebooted, and then reinstalled CVI 2015 (v 15.0.0) via internet download.

 

I will try the Force Reinstall and see if that will helop.

 

After that I have the SSP media now and I will scrub all NI software and reinstall most but start with CVI2015 and verify etc.

 

I now have the

0 Kudos
Message 3 of 9
(4,443 Views)

the SSP distribution in hand.**

 

I tried the reinstall and there is no change.

0 Kudos
Message 4 of 9
(4,435 Views)

I went full monty and scrubbed all NI software, rebooted, deleted the remaining NI folder in Programs directory, reinstalled all of the software, and then ran all of the updates. I am back in business.

 

Interestingly, my xml error still pops up on build. (First seen on graph.cws 32 bit build.)

 

See attached

 

Sorry I was not able to spend more time debugging this for y'all.

0 Kudos
Message 5 of 9
(4,428 Views)

As a solution, reinstalling all software filled the bill.  I guess that some file had become corrupted. I reinstall of CVI did not fix the problem, A reinstall of all NI software, followed by a reboot, and then followed by a reinstall did.

 

0 Kudos
Message 6 of 9
(4,426 Views)

Okay. Now I am really confused. After complete reinstall:

 

It worked for graph.cws.

 

It worked for my custom build #1.

 

It failed on custom build #2. 

 

It is now unable to build any of the distributuion and hangs on template.ini.

 

Graph.cws no longer works.

 

Custom build #1 no longer builds.

 

I assume the custom build #2 modifies some setting that the force quit locks into the new default? The struggle continues.

0 Kudos
Message 7 of 9
(4,409 Views)

Hi blakney,

 

Sorry to hear that you're still running into trouble building your distribution. First, let's see if we can get CVI back into a state where it will build graphs.cws and your custom build #1 reliably. I recommend first performing a repair install, and second performing a force reinstall as I mentioned previously, in the event that the repair install doesn't work.

 

You could potentially be correct about something in custom build #2 somehow affecting CVI's configuration. I'd want to begin ruling out any external libraries or other dependencies as the cause, one at a time. Are there any dependencies in custom build #2 that are not found in custom build #1? Can you add those in one at a time in order to see if one of them triggers the problem?

 

Finally, since you are on SSP, please be aware that you can open up a service request at www.ni.com/support for this issue if you would like an Applications Engineer to work more closely with you on resolving it.

Tom D.
Staff Software Engineer
NI
0 Kudos
Message 8 of 9
(4,389 Views)

I think that I have CVI squared. I have not tried to load the rest of the software yet.

 

The steps performed this time (that I thought I performed last time) were:

 

  1. Uninstall all of National Instruments Software (some errors on uninstall.
  2.  Reboot.
  3. Uninstyall all of Microsoft SDK
  4. Reboot
  5. Remove National Instruments folders i C:\ProgramData, C:\Prgoram Files, and C:\\Program Files (x86).
  6. Reboot
  7. Install the barest version of CVI that I could from the SProng 2016 SSP plus all of Microsoft SDK
  8. Reboot
  9. Update the NI Update Installer when prompted
  10. Reboot
  11. Load all of the NI Update Suggestion for this minimal setup
  12. Reboot

 

After this graph.cws built fine (without any error messages).

Tests the remaining workspaces have all been running perfectly as well.

It might take some time (facility renewal process is beginning) to systematically load and test the rest of the software but I believe that it may be fine from this point forward.

 

Thanks for your help in this,

Greg

0 Kudos
Message 9 of 9
(4,380 Views)