MATLAB Answers

Exception in thread "AWT-EventQueue-0" java.lang.​OutOfMemor​yError: Java heap space error in matlab?

97 ビュー (過去 30 日間)
Najmeh Eskandari
Najmeh Eskandari 2018 年 11 月 9 日
Answered: Kuifeng Zhao 2018 年 11 月 13 日
hi. when I run my m file and then copy generated function to paste it is a Simulink block there is this error:
at com.mathworks.mwswing.AttributedCharacters.iterator(AttributedCharacters.java:183) at com.mathworks.widgets.text.print.TextPrintContainer.getIterators(TextPrintContainer.java:45) at com.mathworks.widgets.text.PrintableDocument.createPrintIterators(PrintableDocument.java:134) at com.mathworks.widgets.text.MWKit.getTransferable(MWKit.java:629) at com.mathworks.widgets.text.MWKit.setClipboardContents(MWKit.java:531) at com.mathworks.widgets.text.MWKit.access$100(MWKit.java:60) at com.mathworks.widgets.text.MWKit$MWCopyAction.actionPerformed(MWKit.java:524) at org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:259)
I increase Java heap memory to largest value but the error remains.
how can I fix this error?

  0 件のコメント

サインイン to comment.

件の回答 (1)

Kuifeng Zhao
Kuifeng Zhao 2018 年 11 月 13 日
Try this website from Mathworks, it solved my problem of the OutOfMemoryError.
https://www.mathworks.com/matlabcentral/answers/262442-java-heap-space-out-of-memory-problem

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。


Translated by