View previous topic :: View next topic |
Author |
Message |
kihjin
Joined: 28 Dec 2006 Posts: 18
|
Posted: Sat Sep 22, 2007 7:40 pm Post subject: Java OutOfMemory |
|
|
Code: | Exception in thread "descent.internal.ui.text.JavaReconciler" java.lang.OutOfMemoryError: Java heap space |
This has happened to me more than five times today. It causes Eclipse to freeze up, resulting in me losing any unsave changes I might've made. Fortunately I'm of the breed who saves after every change, so there has been little lost thus far. Even so, this error has proven to be annoying. |
|
Back to top |
|
|
kihjin
Joined: 28 Dec 2006 Posts: 18
|
Posted: Sat Sep 22, 2007 7:47 pm Post subject: |
|
|
This seems to be what is causing the problem:
Code: |
if (!c.args[i].optional) {
switch(c.args[i]) {
case cmd.arg.Type.Decimal:
if (!isNumeric(value[j])) {
writefln("", c.name, j);
}
break;
case cmd.arg.Type.Character:
break;
|
The line containing writefln("", c.name, j);
I started up Eclipse, and proceeded to add , j (as you see above). The instant I typed this in, Eclipse froze up. |
|
Back to top |
|
|
kihjin
Joined: 28 Dec 2006 Posts: 18
|
Posted: Sat Sep 22, 2007 10:37 pm Post subject: |
|
|
descent.internal.formatter.AbortFormatting: unexpected token type, expecting:), actual:null
at descent.internal.formatter.Scribe.printNextToken(Scribe.java:1099)
at descent.internal.formatter.CodeFormatterVisitor.visit(CodeFormatterVisitor.java:994)
at descent.core.dom.ForeachStatement.accept0(ForeachStatement.java:199)
at descent.core.dom.ASTNode.accept(ASTNode.java:2887)
at descent.internal.formatter.CodeFormatterVisitor.formatStatements(CodeFormatterVisitor.java:2917)
at descent.internal.formatter.CodeFormatterVisitor.formatSubStatement(CodeFormatterVisitor.java:2963)
at descent.internal.formatter.CodeFormatterVisitor.formatCaseOrDefaultStatementBody(CodeFormatterVisitor.java:2453)
at descent.internal.formatter.CodeFormatterVisitor.visit(CodeFormatterVisitor.java:1967)
at descent.core.dom.SwitchCase.accept0(SwitchCase.java:138)
at descent.core.dom.ASTNode.accept(ASTNode.java:2887)
at descent.internal.formatter.CodeFormatterVisitor.formatStatements(CodeFormatterVisitor.java:2939)
at descent.internal.formatter.CodeFormatterVisitor.formatSubStatement(CodeFormatterVisitor.java:2963)
at descent.internal.formatter.CodeFormatterVisitor.visit(CodeFormatterVisitor.java:1980)
at descent.core.dom.SwitchStatement.accept0(SwitchStatement.java:144)
at descent.core.dom.ASTNode.accept(ASTNode.java:2887)
at descent.internal.formatter.CodeFormatterVisitor.formatStatements(CodeFormatterVisitor.java:2928)
at descent.internal.formatter.CodeFormatterVisitor.formatSubStatement(CodeFormatterVisitor.java:2963)
at descent.internal.formatter.CodeFormatterVisitor.formatFunction(CodeFormatterVisitor.java:2837)
at descent.internal.formatter.CodeFormatterVisitor.visit(CodeFormatterVisitor.java:1070)
at descent.core.dom.FunctionDeclaration.accept0(FunctionDeclaration.java:356)
at descent.core.dom.ASTNode.accept(ASTNode.java:2887)
at descent.internal.formatter.CodeFormatterVisitor.visit(CodeFormatterVisitor.java:701)
at descent.core.dom.DeclarationStatement.accept0(DeclarationStatement.java:123)
at descent.core.dom.ASTNode.accept(ASTNode.java:2887)
at descent.internal.formatter.CodeFormatterVisitor.formatStatements(CodeFormatterVisitor.java:2928)
at descent.internal.formatter.CodeFormatterVisitor.formatSubStatement(CodeFormatterVisitor.java:2963)
at descent.internal.formatter.CodeFormatterVisitor.formatFunction(CodeFormatterVisitor.java:2837)
at descent.internal.formatter.CodeFormatterVisitor.visit(CodeFormatterVisitor.java:1070)
at descent.core.dom.FunctionDeclaration.accept0(FunctionDeclaration.java:356)
at descent.core.dom.ASTNode.accept(ASTNode.java:2887)
at descent.internal.formatter.CodeFormatterVisitor.formatDeclarations(CodeFormatterVisitor.java:2681)
at descent.internal.formatter.CodeFormatterVisitor.visit(CodeFormatterVisitor.java:583)
at descent.core.dom.CompilationUnit.accept0(CompilationUnit.java:719)
at descent.core.dom.ASTNode.accept(ASTNode.java:2887)
at descent.internal.formatter.CodeFormatterVisitor.format(CodeFormatterVisitor.java:77)
at descent.internal.formatter.DefaultCodeFormatter.formatCompilationUnit(DefaultCodeFormatter.java:225)
at descent.internal.formatter.DefaultCodeFormatter.format(DefaultCodeFormatter.java:168)
at descent.internal.corext.util.CodeFormatterUtil.format2(CodeFormatterUtil.java:221)
at descent.internal.ui.text.java.JavaFormattingStrategy.format(JavaFormattingStrategy.java:64)
at org.eclipse.jface.text.formatter.MultiPassContentFormatter.formatMaster(MultiPassContentFormatter.java:192)
at org.eclipse.jface.text.formatter.MultiPassContentFormatter.format(MultiPassContentFormatter.java:141)
at org.eclipse.jface.text.source.SourceViewer.doOperation(SourceViewer.java:822)
at org.eclipse.jface.text.source.projection.ProjectionViewer.doOperation(ProjectionViewer.java:1519)
at descent.internal.ui.javaeditor.JavaSourceViewer.doOperation(JavaSourceViewer.java:173)
at descent.internal.ui.javaeditor.CompilationUnitEditor$AdaptedSourceViewer.doOperation(CompilationUnitEditor.java:187)
at org.eclipse.ui.texteditor.TextOperationAction$1.run(TextOperationAction.java:131)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.ui.texteditor.TextOperationAction.run(TextOperationAction.java:129)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:499)
at org.eclipse.ui.commands.ActionHandler.execute(ActionHandler.java:185)
at org.eclipse.ui.internal.handlers.LegacyHandlerWrapper.execute(LegacyHandlerWrapper.java:109)
at org.eclipse.core.commands.Command.executeWithChecks(Command.java:461)
at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:424)
at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:160)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:466)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:799)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:846)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:564)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:506)
at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:122)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1357)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1084)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1109)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1094)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1121)
at org.eclipse.swt.widgets.Widget.gtk_key_press_event(Widget.java:655)
at org.eclipse.swt.widgets.Control.gtk_key_press_event(Control.java:2090)
at org.eclipse.swt.widgets.Composite.gtk_key_press_event(Composite.java:637)
at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1434)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:3812)
at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)
at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:5291)
at org.eclipse.swt.widgets.Display.eventProc(Display.java:1149)
at org.eclipse.swt.internal.gtk.OS._g_main_context_iteration(Native Method)
at org.eclipse.swt.internal.gtk.OS.g_main_context_iteration(OS.java:1437)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2854)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1930)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1894)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:422)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:95)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Exception in thread "descent.internal.ui.text.JavaReconciler" java.lang.OutOfMemoryError: Java heap space |
|
Back to top |
|
|
Amnesiasoft
Joined: 10 Dec 2007 Posts: 1
|
Posted: Mon Dec 10, 2007 11:36 am Post subject: |
|
|
kihjin wrote: | The line containing writefln("", c.name, j);
I started up Eclipse, and proceeded to add , j (as you see above). The instant I typed this in, Eclipse froze up. |
Yup, I was working on a document earlier, anytime I started adding things with variable arguments, it seems, would cause leaking of memory (and threads it would seem). My memory quickly jumps to about 300MB usage and continues, but I usually kill it in the task manager first. It also jumped from 25, to 50, to 75 CPU usage in this time (so it's devouring my processor cores as well). |
|
Back to top |
|
|
fraserofthenight
Joined: 08 Apr 2007 Posts: 33 Location: Seattle, WA
|
Posted: Wed Dec 12, 2007 6:24 am Post subject: |
|
|
Is this on trunk or the release version?
This seems pretty serious, I'll check it out when I get back (i.e. early 2008 :-( ) |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|