MATLAB Answers


Matlab 2014b crashing suddently when using a specific folder

Asked by Natan
on 22 May 2015
Latest activity Commented on by Dourado
on 29 Jun 2015
I've copied a folder of some code from one computer to another. And when I try to access it I get the following matlab error:
Exception in thread "FileDecorationCache request queue" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at Source)
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.readBytes(
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.readText(
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.readText(
at com.mathworks.mlwidgets.explorer.extensions.matlab.MFileTypeFinder.findMFileType(
at com.mathworks.mlwidgets.explorer.extensions.matlab.MatlabCodeFileInfoProvider$
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$2.get(
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$1$
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$3$
at com.mathworks.util.RequestQueue.execute(
at com.mathworks.util.RequestQueue.access$000(
at com.mathworks.util.RequestQueue$
at Source)
Following that matlab freezes. Why is that happening, what should I do? As long as I dont try to load anything, or even browse in that folder, matlab works fine. I'm using a win 7 - 64 bit machine, Matlab 2014b.


Does this folder have a large number of files in it?
I've had this issue on folders with a lot of files in it. Raise memory heap didn't solve. Do you have any clue of how to solve it?

Sign in to comment.

1 Answer

Answer by Walter Roberson
on 22 May 2015
 Accepted Answer

Go into Preferences to the General section and increase Java Heap Memory there. Then restart MATLAB.

  1 Comment

Sign in to comment.