org.eclipse.xtext.parser.ParseException: java.lang.OutOfMemoryError: Java heap space at org.example.mydsl.parser.antlr.MyDslParser.parse(MyDslParser .java:35) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.parse(Abs tractAntlrParser.java:70) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(A bstractAntlrParser.java:53) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(A bstractAntlrParser.java:1) at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser .java:27) at org.eclipse.xtext.parser.SwitchingParser.parse(SwitchingPars er.java:49) at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:109) at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(La zyLinkingResource.java:55) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282) at org.eclipse.xtext.ui.editor.model.XtextDocument.setInput(Xte xtDocument.java:61) at org.eclipse.xtext.ui.editor.model.XtextDocument.setInput(Xte xtDocument.java:55) at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setu pDocument(XtextDocumentProvider.java:73) at org.eclipse.ui.editors.text.StorageDocumentProvider.createDo cument(StorageDocumentProvider.java:230) at org.eclipse.ui.editors.text.FileDocumentProvider.createEleme ntInfo(FileDocumentProvider.java:735) at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.crea teElementInfo(XtextDocumentProvider.java:78) at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(A bstractDocumentProvider.java:398) at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(Abst ractTextEditor.java:4135) at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(Status TextEditor.java:203) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetI nput(AbstractDecoratedTextEditor.java:1413) at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor .java:166) at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEdit or.java:148) at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:3116) at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372) at org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:759) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:756) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2579) at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:3134) at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:3161) at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.jav a:168) at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798) at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644) at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:286) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2857) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2762) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2754) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2705) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2701) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2685) at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu. java:344) at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMe nu.java:192) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)

eclipse.org | 6 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Eclipse Community Forums: TMF (Xtext) ยป java.lang.OutOfMemoryError

    eclipse.org | 6 months ago
    org.eclipse.xtext.parser.ParseException: java.lang.OutOfMemoryError: Java heap space at org.example.mydsl.parser.antlr.MyDslParser.parse(MyDslParser .java:35) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.parse(Abs tractAntlrParser.java:70) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(A bstractAntlrParser.java:53) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(A bstractAntlrParser.java:1) at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser .java:27) at org.eclipse.xtext.parser.SwitchingParser.parse(SwitchingPars er.java:49) at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:109) at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(La zyLinkingResource.java:55) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282) at org.eclipse.xtext.ui.editor.model.XtextDocument.setInput(Xte xtDocument.java:61) at org.eclipse.xtext.ui.editor.model.XtextDocument.setInput(Xte xtDocument.java:55) at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setu pDocument(XtextDocumentProvider.java:73) at org.eclipse.ui.editors.text.StorageDocumentProvider.createDo cument(StorageDocumentProvider.java:230) at org.eclipse.ui.editors.text.FileDocumentProvider.createEleme ntInfo(FileDocumentProvider.java:735) at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.crea teElementInfo(XtextDocumentProvider.java:78) at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(A bstractDocumentProvider.java:398) at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(Abst ractTextEditor.java:4135) at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(Status TextEditor.java:203) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetI nput(AbstractDecoratedTextEditor.java:1413) at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor .java:166) at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEdit or.java:148) at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:3116) at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372) at org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:759) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:756) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2579) at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:3134) at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:3161) at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.jav a:168) at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798) at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644) at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:286) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2857) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2762) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2754) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2705) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2701) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2685) at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu. java:344) at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMe nu.java:192) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)

    Root Cause Analysis

    1. org.eclipse.xtext.parser.ParseException

      java.lang.OutOfMemoryError: Java heap space at org.example.mydsl.parser.antlr.MyDslParser.parse(MyDslParser .java:35) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.parse(Abs tractAntlrParser.java:70) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(A bstractAntlrParser.java:53) at org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(A bstractAntlrParser.java:1) at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser .java:27) at org.eclipse.xtext.parser.SwitchingParser.parse(SwitchingPars er.java:49) at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResourc e.java:109) at org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(La zyLinkingResource.java:55) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1494) at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(Resour ceImpl.java:1282) at org.eclipse.xtext.ui.editor.model.XtextDocument.setInput(Xte xtDocument.java:61) at org.eclipse.xtext.ui.editor.model.XtextDocument.setInput(Xte xtDocument.java:55) at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.setu pDocument(XtextDocumentProvider.java:73) at org.eclipse.ui.editors.text.StorageDocumentProvider.createDo cument(StorageDocumentProvider.java:230) at org.eclipse.ui.editors.text.FileDocumentProvider.createEleme ntInfo(FileDocumentProvider.java:735) at org.eclipse.xtext.ui.editor.model.XtextDocumentProvider.crea teElementInfo(XtextDocumentProvider.java:78) at org.eclipse.ui.texteditor.AbstractDocumentProvider.connect(A bstractDocumentProvider.java:398) at org.eclipse.ui.texteditor.AbstractTextEditor.doSetInput(Abst ractTextEditor.java:4135) at org.eclipse.ui.texteditor.StatusTextEditor.doSetInput(Status TextEditor.java:203) at org.eclipse.ui.texteditor.AbstractDecoratedTextEditor.doSetI nput(AbstractDecoratedTextEditor.java:1413) at org.eclipse.ui.editors.text.TextEditor.doSetInput(TextEditor .java:166) at org.eclipse.xtext.ui.editor.XtextEditor.doSetInput(XtextEdit or.java:148) at org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:3116) at org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:464) at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:372) at org.eclipse.jface.window.ApplicationWindow$1.run(Application Window.java:759) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70) at org.eclipse.jface.window.ApplicationWindow.run(ApplicationWi ndow.java:756) at org.eclipse.ui.internal.WorkbenchWindow.run(WorkbenchWindow. java:2579) at org.eclipse.ui.texteditor.AbstractTextEditor.internalInit(Ab stractTextEditor.java:3134) at org.eclipse.ui.texteditor.AbstractTextEditor.init(AbstractTe xtEditor.java:3161) at org.eclipse.xtext.ui.editor.XtextEditor.init(XtextEditor.jav a:168) at org.eclipse.ui.internal.EditorManager.createSite(EditorManag er.java:798) at org.eclipse.ui.internal.EditorReference.createPartHelper(Edi torReference.java:644) at org.eclipse.ui.internal.EditorReference.createPart(EditorRef erence.java:462) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(Workb enchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorRefe rence.java:286) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched( WorkbenchPage.java:2857) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(Workben chPage.java:2762) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPag e.java:2754) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.j ava:2705) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator .java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2701) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPa ge.java:2685) at org.eclipse.ui.actions.OpenWithMenu.openEditor(OpenWithMenu. java:344) at org.eclipse.ui.actions.OpenWithMenu$2.handleEvent(OpenWithMe nu.java:192) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java :84)

      at org.eclipse.swt.widgets.Widget.sendEvent()
    2. RWT
      Widget.sendEvent
      1. org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
      1 frame