Why does the Polyspace Report Generator terminate with an error?

14 views (last 30 days)
I am unable to correctly launch Polyspace Report Generator. I gets a pop-up message 'Report generation terminated with error' when I launch the Report Generator to run report in the Viewer (Results Manager) of Polyspace (Reports >Run Report).
Message is something like that:
Template : ...\templates\CodingRules.rpt
Results-dir : C:\...\results
Format : PDF
Output-Name : C:\...\Polyspace-Doc\<name>_CodingRules.pdf
Noview : enabled
Beginning report
Processing MISRA summary
Processing MISRA summary
Processing MISRA warnings
Processing MISRA errors
Processing Configuration
Processing Abbreviations and Acronyms
Converting report
Document conversion failed
{Error using com.icl.saxon.Controller/transform
Java exception occurred:
java.lang.OutOfMemoryError: Java heap space
...
Why is this happening?

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 11 Sep 2018
Edited: MathWorks Support Team on 11 Sep 2018
This may be due to the java memory used to generate the report. It happens mostly with PDF format. It might be helpful to
  • Try to generate report with another format like HTML or Word (it is then possible to save the document in the pdf format)
  • Try to increase the jvm memory available to generate reports:
  1. Close the Polyspace User Interface
  2. Open Java.opts file
Until R2012b
Increase the java memory size by editing ..\Polyspace_Common\ReportGenerator\ReportGenerator\bin\x86-mingw32\java.opts
By default it contains 512 -Xmx512m. Try -Xmx1024m
I would not recommend trying much higher if the machine only has 2 GB of memory installed.
Since R2013a
Increase the java memory size by editing ...\MATLAB\<version>\polyspace\bin\win64\java.opts
The amount of memory to allocate to the Java VM depends on the memory available on the machine where the report is generated.
If the machine has 16Gb of RAM, you can try with 8Gb. In this case the contents of java.opts will be : -Xmx8192m (8192Mb, i.e. 8Gb)
  1. Save and close the java.opts file
  2. Re-open Polyspace UI and try generating again a report.

More Answers (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!