Skip to content

OutOfMemoryError: Java heap space #2764

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
terrylucas opened this issue Apr 26, 2012 · 6 comments
Closed

OutOfMemoryError: Java heap space #2764

terrylucas opened this issue Apr 26, 2012 · 6 comments
Assignees
Labels
Milestone

Comments

@terrylucas
Copy link
Contributor

Dart Editor Linux 64-bit
Version 0.1.0.201204250727, Build 6943
Dart SDK version 6934, Dartium version

!ENTRY org.eclipse.debug.core 4 2 2012-04-26 14:19:29.432
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.debug.core".
!STACK 0
java.lang.NullPointerException
    at com.google.dart.tools.debug.ui.internal.view.DebuggerViewManager.launchRemoved(DebuggerViewManager.java:122)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.run(LaunchManager.java:443)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.notify(LaunchManager.java:428)
    at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:990)
    at org.eclipse.debug.internal.core.LaunchManager.removeLaunch(LaunchManager.java:2200)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.removeTerminatedLaunches(LaunchConfigurationManager.java:328)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.launchAdded(LaunchConfigurationManager.java:314)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.run(LaunchManager.java:440)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.notify(LaunchManager.java:428)
    at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:990)
    at org.eclipse.debug.internal.core.LaunchManager.addLaunch(LaunchManager.java:688)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:843)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY org.eclipse.debug.core 4 120 2012-04-26 14:19:29.433
!MESSAGE An exception occurred during launch change notification.
!STACK 0
java.lang.NullPointerException
    at com.google.dart.tools.debug.ui.internal.view.DebuggerViewManager.launchRemoved(DebuggerViewManager.java:122)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.run(LaunchManager.java:443)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.notify(LaunchManager.java:428)
    at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:990)
    at org.eclipse.debug.internal.core.LaunchManager.removeLaunch(LaunchManager.java:2200)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.removeTerminatedLaunches(LaunchConfigurationManager.java:328)
    at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationManager.launchAdded(LaunchConfigurationManager.java:314)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.run(LaunchManager.java:440)
    at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
    at org.eclipse.debug.internal.core.LaunchManager$LaunchNotifier.notify(LaunchManager.java:428)
    at org.eclipse.debug.internal.core.LaunchManager.fireUpdate(LaunchManager.java:990)
    at org.eclipse.debug.internal.core.LaunchManager.addLaunch(LaunchManager.java:688)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:843)
    at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
    at org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(DebugUIPlugin.java:928)
    at org.eclipse.debug.internal.ui.DebugUIPlugin$8.run(DebugUIPlugin.java:1132)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

!ENTRY com.google.dart.tools.ui 4 10001 2012-04-26 14:42:39.216
!MESSAGE Internal Error
!STACK 0
java.lang.OutOfMemoryError: Java heap space
    at java.util.ArrayList.iterator(ArrayList.java:737)
    at java.util.AbstractCollection.addAll(AbstractCollection.java:320)
    at com.google.dart.compiler.ast.NodeList.addAll(NodeList.java:90)
    at com.google.dart.compiler.ast.DartFunction.<init>(DartFunction.java:19)
    at com.google.dart.compiler.parser.DartParser.parseMethod(DartParser.java:1345)
    at com.google.dart.compiler.parser.DartParser.parseMethodOrAccessor(DartParser.java:1373)
    at com.google.dart.compiler.parser.DartParser.parseFieldOrMethod(DartParser.java:1049)
    at com.google.dart.compiler.parser.DartParser.parseClassOrInterfaceBody(DartParser.java:692)
    at com.google.dart.compiler.parser.DartParser.parseClass(DartParser.java:667)
    at com.google.dart.compiler.parser.DartParser.parseUnit(DartParser.java:286)
    at com.google.dart.compiler.DartCompiler$Compiler.parse(DartCompiler.java:817)
    at com.google.dart.compiler.DartCompiler$SelectiveCompiler.parse(DartCompiler.java:881)
    at com.google.dart.compiler.DartCompiler$Compiler.parseOutOfDateFiles(DartCompiler.java:258)
    at com.google.dart.compiler.DartCompiler$Compiler.updateAndResolve(DartCompiler.java:201)
    at com.google.dart.compiler.DartCompiler$Compiler.access$4(DartCompiler.java:190)
    at com.google.dart.compiler.DartCompiler.analyzeLibraries(DartCompiler.java:1187)
    at com.google.dart.compiler.DartCompiler.analyzeLibrary(DartCompiler.java:1151)
    at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.secureAnalyzeLibrary(DartCompilerUtilities.java:823)
    at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$ResolverRunnable.run(DartCompilerUtilities.java:464)
    at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities$CompilerRunner.runSafe(DartCompilerUtilities.java:107)
    at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:770)
    at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:752)
    at com.google.dart.tools.core.utilities.compiler.DartCompilerUtilities.resolveUnit(DartCompilerUtilities.java:716)
    at com.google.dart.tools.ui.internal.text.editor.DartEditor.getAST(DartEditor.java:2028)
    at com.google.dart.tools.ui.internal.text.editor.DartTextHover.getHoverInfo(DartTextHover.java:98)
    at org.eclipse.jface.text.TextViewerHoverManager$4.run(TextViewerHoverManager.java:168)

@dgrove
Copy link
Contributor

dgrove commented Apr 27, 2012

Added Triaged label.

@clayberg
Copy link

Set owner to @devoncarew.

@clayberg
Copy link

[user feedback]

If you open too many tabs (40+), modify each file, then close all tabs. Dart Editor runs out of memory and freezes.

java.lang.OutOfMemoryError: Java heap space
       at com.google.dart.compiler.parser.DartParser.parseIdentifier(DartParser.java:4161)
       at com.google.dart.compiler.parser.DartParser.parseParameterName(DartParser.java:1749)
       at com.google.dart.compiler.parser.DartParser.parseFormalParameter(DartParser.java:1683)
       at com.google.dart.compiler.parser.DartParser.parseFormalParameterList(DartParser.java:1610)
       at com.google.dart.compiler.parser.DartParser.parseMethod(DartParser.java:1296)
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 7364


Changed the title to: "OutOfMemoryError: Java heap space".

@clayberg
Copy link

[user feedback]

talks up all memory then rebooted the mac.
////////////////////////////////////////////////////////////////////////////////////
Editor Version: 7232

@devoncarew
Copy link
Member

Added this to the M1 milestone.

@devoncarew
Copy link
Member

closing this out as I believe our last round of profiling and bug fixes largely addressed this


Added Fixed label.

@terrylucas terrylucas added this to the M1 milestone Jul 30, 2012
dart-bot pushed a commit that referenced this issue Dec 7, 2020
a7e448b2 pub upgrade --major-versions (#2784)
06bcff09 pub upgrade foo, only unlocks foo from pubspec.lock (#2781)
aa20a4bd Usage exceptions no stacktrace (#2776)
14e12bf6 Clarify error message when spawning a subprocess fails (#2763)
5ef0a0e7 Added a pub upgrade --nullsafety mode (#2741)
9cde2406 Fix pub remove --dry-run (#2774)
7426be94 Remove hack now issue has been fixed (#2773)
90a1f776 Limit retries in test to avoid timeout (#2765)
3aa327c7 Stop depending on .packages (#2764)

Change-Id: Ifd8a8402c4628e7278b6fedfd2ca7902004fa6e8
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175241
Auto-Submit: Jonas Jensen <[email protected]>
Reviewed-by: Sigurd Meldgaard <[email protected]>
Commit-Queue: Sigurd Meldgaard <[email protected]>
dart-bot pushed a commit that referenced this issue Dec 8, 2020
This reverts commit 41381e9.

Reason for revert: pub fails on startup if git is not installed; b/175080640

Original change's description:
> Roll pub
>
> a7e448b2 pub upgrade --major-versions (#2784)
> 06bcff09 pub upgrade foo, only unlocks foo from pubspec.lock (#2781)
> aa20a4bd Usage exceptions no stacktrace (#2776)
> 14e12bf6 Clarify error message when spawning a subprocess fails (#2763)
> 5ef0a0e7 Added a pub upgrade --nullsafety mode (#2741)
> 9cde2406 Fix pub remove --dry-run (#2774)
> 7426be94 Remove hack now issue has been fixed (#2773)
> 90a1f776 Limit retries in test to avoid timeout (#2765)
> 3aa327c7 Stop depending on .packages (#2764)
>
> Change-Id: Ifd8a8402c4628e7278b6fedfd2ca7902004fa6e8
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175241
> Auto-Submit: Jonas Jensen <[email protected]>
> Reviewed-by: Sigurd Meldgaard <[email protected]>
> Commit-Queue: Sigurd Meldgaard <[email protected]>

[email protected],[email protected]

Change-Id: I29b20b4a2dc037146dd27c8fe6e6ecce6833e7b6
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175303
Reviewed-by: David Morgan <[email protected]>
Commit-Queue: David Morgan <[email protected]>
dart-bot pushed a commit that referenced this issue Dec 9, 2020
This is a reland of 41381e9

Contains one more fix:
8ea96121d fix tryGitCommand

Original change's description:
> Roll pub
>
> a7e448b2 pub upgrade --major-versions (#2784)
> 06bcff09 pub upgrade foo, only unlocks foo from pubspec.lock (#2781)
> aa20a4bd Usage exceptions no stacktrace (#2776)
> 14e12bf6 Clarify error message when spawning a subprocess fails (#2763)
> 5ef0a0e7 Added a pub upgrade --nullsafety mode (#2741)
> 9cde2406 Fix pub remove --dry-run (#2774)
> 7426be94 Remove hack now issue has been fixed (#2773)
> 90a1f776 Limit retries in test to avoid timeout (#2765)
> 3aa327c7 Stop depending on .packages (#2764)
>
> Change-Id: Ifd8a8402c4628e7278b6fedfd2ca7902004fa6e8
> Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175241
> Auto-Submit: Jonas Jensen <[email protected]>
> Reviewed-by: Sigurd Meldgaard <[email protected]>
> Commit-Queue: Sigurd Meldgaard <[email protected]>

Change-Id: Id50e6eca0372860f7087882a5c67141def07031c
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/175309
Reviewed-by: Jonas Jensen <[email protected]>
Commit-Queue: Sigurd Meldgaard <[email protected]>
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants