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

4 次查看(过去 30 天)
Hello,
I'm having some problems with Java errors that occurred after I tried to export a large table from a GUI to a .txt file, when doing this I've got the bellow error in Matlab:
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Unknown Source)
at java.io.ByteArrayOutputStream.write(Unknown Source)
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.readBytes(FileSystemUtils.java:548)
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.readText(FileSystemUtils.java:522)
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.readText(FileSystemUtils.java:510)
at com.mathworks.mlwidgets.explorer.extensions.matlab.MFileTypeFinder.findMFileType(MFileTypeFinder.java:29)
at com.mathworks.mlwidgets.explorer.extensions.matlab.MFileInfoProvider$1.run(MFileInfoProvider.java:68)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$DeferHandler.run(FileDecorationModel.java:383)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$2.get(FileDecorationModel.java:274)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$1$2.run(FileDecorationModel.java:183)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$DeferHandler.run(FileDecorationModel.java:383)
at com.mathworks.mlwidgets.explorer.model.FileDecorationModel$2.get(FileDecorationModel.java:274)
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.getDecorationSynchronously(FileSystemUtils.java:128)
at com.mathworks.mlwidgets.explorer.util.FileSystemUtils.getDecorationSynchronously(FileSystemUtils.java:101)
at com.mathworks.mlwidgets.explorer.model.table.FileSystemExpansionProvider.getDecoration(FileSystemExpansionProvider.java:126)
at com.mathworks.mlwidgets.explorer.model.table.TypeGroupingMode$1.convert(TypeGroupingMode.java:47)
at com.mathworks.mlwidgets.explorer.model.table.TypeGroupingMode$1.convert(TypeGroupingMode.java:44)
at com.mathworks.widgets.grouptable.GroupingTableUtils.generateDirectGrouping(GroupingTableUtils.java:155)
at com.mathworks.widgets.grouptable.GroupingTableUtils.generateDirectGrouping(GroupingTableUtils.java:130)
at com.mathworks.mlwidgets.explorer.model.table.TypeGroupingMode.getGroups(TypeGroupingMode.java:41)
at com.mathworks.widgets.grouptable.GroupingTableModel.setRootLevelRows(GroupingTableModel.java:484)
at com.mathworks.widgets.grouptable.GroupingTableModel.access$1400(GroupingTableModel.java:27)
at com.mathworks.widgets.grouptable.GroupingTableModel$7.commitRows(GroupingTableModel.java:435)
at com.mathworks.widgets.grouptable.RowListTransactionTarget.finishTransaction(RowListTransactionTarget.java:115)
at com.mathworks.widgets.grouptable.GroupingTableTransaction$1.run(GroupingTableTransaction.java:113)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
My problem is that now any time when I access this path and try to open the folder (containing the gui and all the files that worked perfectly before trying to save the .txt file) I get this error and I'm not able to view the full content of the folder. I can see only some of the files ... I'm having no idea how to solve the problem. I've restarted matlab, cleared the java memory from control panel, increased the matlab java memory, renamed the folder, still nothing works ... and before doing the export to a .txt file everything worked perfect.
Does anyone have a solution for this?

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by