04-02-2012 04:25 PM
I have a file that is being automatically created on my C drive. I believe it is being created by windows in response to me real-time host.exe. It creates the file without issue most of the time, but it occasioanlly creates a file that fills up the rest of my hardrive of 260 GB. The file is so big I can't open it to see the error. I posted an example of the file when it creates normally. It mentions a possible path leak, what is the cause of this. I am running Labview 2011 on Windows 7. I am creating several .txt and .xls files in the code, could this be the cause. I have been running version of this code for years, why would it start happening now?
Location of the file:
Contents of the file:
#Date: Tue, Feb 21, 2012 3:12:25 PM
#OSName: Windows 7 Enterprise Service Pack 1
#AppName: HEDWEC Host (Ver 1.22a)
#Version: 11.0 32-bit
#AppModDate: 02/21/2012 22:00 GMT
#LabVIEW Base Address: 0x30000000
Possible path leak, unable to purge elements of base #0
Thanks in advnace,
04-03-2012 03:23 PM
Can you post the sections of code related to creating and writing to the file?
Notepad or Excel can't handle a 260GB file, but you can view sections with LabVIEW with a little work. Use Set File Position to mark where you want to start reading, then Read from Text File with the count terminal wired to get a small section. You can at least see if the data is garbage, a repeated pattern, or something else.
05-22-2012 12:09 PM
Sorry for the delay on my reply, but this problem occurs very infrequently. I have variations of this code running constantly on several different computers and I run into this problem maybe once a month. I have posted a snippet of a file creation part of the code that is common across all of these variations.
I want to make it clear that the file that is filling up my hard drive is not being created by my code directly. It is being created either by a built in labview thing or a windows thing, do you have an idea which? Also, this file is not being created with a slow build up. It is filling up in a very short time period, in a matter of minutes.
05-24-2012 01:44 AM
would you be able to recreate this behavior on a consistent basis? does this giant file appear when you build an installer or does it appear when you install an installer? does it happen when a particular VI is executed? anything else that can help us recreate this issue in a more consistent manner will aid in finding the cause. Thanks!
05-24-2012 01:00 PM
I have been trying to replicate the event on my test bench this week with no success. So far it has occurred only when no one has at the computer and the real time and host proprams have been running for days. I do not know what particular VI is causing the error. The file that is created in the temp folder has the name of the executable. The data file saving snippet that I sent you earlier saves every 10 seconds. I'll let you know if I am able to cause this problem to occurr on my test bench.
05-30-2012 12:13 PM
I was able to get the computer to create the temporary file on my test bench. It had been running in "standby mode" for 3 days with no human interaction. It steadily filled up the computer's hard drive from 12:22am to 8:47am. I was able to open parts of the file with labview as someone suggested earlier. I have attached a file with some snippets of the file. Again, there are no triggers in the code that would have created a file that hadnt been created or written to hundreds of times at this point.
The part that draws my attention is:
Hopefully this enlightens the issue. Are there any clues as to whether it is windows or labview creating this file?
05-31-2012 01:20 PM
It looks like providing that txt file was helpful. It helped me to locate a few other instances where this behavior has been documented. The bug is fixed for LabVIEW 2011 SP1, but the workaround is as follows:
Turn off DWarn logging by adding the following ini key to the LabVIEW log file: "dWarnLogging = FALSE"
In other words, add the line of text "dWarnLogging = FALSE" to the end of the LabVIEW.ini file located at C:\Program Files\National Instruments\LabVIEW 2011.
Hope this helps!
07-06-2012 04:53 PM
I had done the change to the configuration file as you had suggested but I just had 2 more files fill up my hard drive. Both of the computers were running the host .exes that were developed on computers that I had altered the configuration files. Is there a configuration file on the PCs that are running the .exe files with the run time engine?