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:
- Close the Polyspace User Interface
- 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)
- Save and close the java.opts file
- Re-open Polyspace UI and try generating again a report.
Best Answer