Out of memory error when generating entity report

One of my UI is returning out of memory error when i save it. I think it is triggered from report.
the error report is attached.
out of memory.txt (2.5 KB)

It seems that the error is triggered from Docx4J.toPDF. Is it related to fonts? I am working in MacOS. Thanks for your help to resolve this issue.

Hi,

DOCX4J loads all fonts registered in the operating system. By default Studio sets CATALINA_OPTS=-Xmx512m. Try to increase that value in tomcat/bin/setenv.bat - probably this could help.

Thanks