필터 지우기
필터 지우기

Workaround? / Java crashes when a Live Script has too many images to export to HTML

조회 수: 13 (최근 30일)
Brian
Brian 2022년 10월 5일
답변: Smit 2022년 10월 13일
My data analysis produces many images (+50 figures). Most of the time, these can be rendered directly in the Live Script (Live Editor). However, often I want to distribute these to other people in the form of an HTML file.
When exporting the Live Script from the Live Editor to HTML, if there are this many figures, I'll get an error from Java and I'll have to exit Matlab to recover.
I already know how to save figures as files, which is one possible work around...but
  1. Is this a known issue?
  2. How many figures can the Live Editor handle / render in *.mlx files?
  3. How many figures can the Live Editor handle / render when exporting to *.html?
  4. Can this limit be increased by the user in any way? (I have 64 GB of RAM and plenty of SSD space so that's not the problem)
Thanks!
  댓글 수: 1
Stefan Kefer
Stefan Kefer 2022년 10월 8일
I do run into the same problem. It also happens when I want to export the live script into a PDF / DOCX file.

댓글을 달려면 로그인하십시오.

답변 (1개)

Smit
Smit 2022년 10월 13일
Hi
I understand that you are having issues with exporting your Live Script to HTML due to large number of figures present in your script. It is a known issue and memory limitations might be the culprit for the error.
As a possible workaround, you can try to adjust Java Heap size by editing your preferences in MATLAB by following the instructions given here.
If needed, you can also regenerate your MATLAB preferences by following the instructions given here.
Clearing MATLAB workspace variables that are not in use could also help, you can do so by executing the following command
clear var1 var2 …
Or you can clear all workspace variables by executing
clear
Hope this resolves your issue.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

태그

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by