NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

Out of Memory XML Report Problem

Hi:
I'm using XML Report option with the expand.xsl StyleSheet in my Testand 3.5.
Sometimes I got the Run Time Error : 'Out Of Memory' ( Attached jpeg which shoes the error).
Can somebody tell me what can cause the error? Now I have 1Giga Ram in my PC.
Thanks,
Ofer
Download All
0 Kudos
Message 1 of 9
(5,256 Views)
Hi Ofer,

Are you using "On-The-Fly Reporting," or "Append if File Already Exists" in the Report Options?  This may be a source of the error that your are seeing.

NickB
0 Kudos
Message 2 of 9
(5,220 Views)

The answer is No for both questiions. Again: the problem does not occur every time. I also think that it occurs only if report file is very large.

Ofer

0 Kudos
Message 3 of 9
(5,213 Views)
This appears to be a problem appears to be a limitation when passing a very large string to COM.  The size of your RAM will not affect this, as we can only get a contiguous block of memory so large when calling the COM object creating the report.  The XML report by its nature is extremely large.  If you do not need the data in an XML format, one option is to switch to the HTML report.  The size of the report will be considerably smaller.  If you prefer an XML format, you may want to switch to using the ATML format (if you are using TestStand 3.5 or higher).  This format will be smaller but still provide an XML format to read.  If neither of these options are acceptable, let me know so we can try to figure out an alternative solution for you.

Allen P.
NI
0 Kudos
Message 4 of 9
(5,196 Views)
Hi Allen:
Indeed, My xml reports are very large. It can reach to 80Mb. The reason I'm using xml is because of its expandable feature.
The stylesheet I'm using is: expand.xsl.
Does ATML format has this feature?
Ofer
0 Kudos
Message 5 of 9
(5,158 Views)
Unfortunately there is no expand style sheet for the ATML report.  Since the XML report is too large, you will have to give up the expand style sheet and choose one of the alternative report formats.

Allen P.
NI
0 Kudos
Message 6 of 9
(5,149 Views)

Ok,

I'il choose the HTML format.

thanks,

ofer

0 Kudos
Message 7 of 9
(5,133 Views)

I wonder if there is a way to programmatically change the format based on the sequence we run?  One sequence we run generates lots of results, runs > 24hrs, while another is much shorter.  I'd prefer the xml format in the latter. 

 

Thanks

David J.

0 Kudos
Message 8 of 9
(4,241 Views)

You can override the ReportOptions model callback in your sequence file and change Parameters.ReportOptions.Format to xml.

 

-Doug

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