thSoft / elysium

LilyPond IDE for Eclipse
http://elysium.thsoft.hu
14 stars 3 forks source link

Java heap space #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Eclipse frequently but indetermnistically crashes when using the editor with 
the following exception:

java.lang.OutOfMemoryError: Java heap space
at org.antlr.runtime.ANTLRReaderStream.load(ANTLRReaderStream.java:51)
at org.antlr.runtime.ANTLRReaderStream.<init>(ANTLRReaderStream.java:26)
at org.antlr.runtime.ANTLRReaderStream.<init>(ANTLRReaderStream.java:18)
at 
org.eclipse.xtext.parser.antlr.AbstractAntlrParser.doParse(AbstractAntlrParser.j
ava:57)
at org.eclipse.xtext.parser.AbstractParser.parse(AbstractParser.java:46)
at org.eclipse.xtext.resource.XtextResource.doLoad(XtextResource.java:146)
at 
org.eclipse.xtext.linking.lazy.LazyLinkingResource.doLoad(LazyLinkingResource.ja
va:63)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1494)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.load(ResourceImpl.java:1282)
at 
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoad(ResourceSetImpl.j
ava:255)
at 
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.demandLoadHelper(ResourceSet
Impl.java:270)
at 
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getResource(ResourceSetImpl.
java:397)
at org.eclipse.xtext.EcoreUtil2.getResource(EcoreUtil2.java:447)
at 
org.elysium.scoping.LilyPondImportUriGlobalScopeProvider.getAllImportedResources
(LilyPondImportUriGlobalScopeProvider.java:118)
at 
org.elysium.scoping.LilyPondImportUriGlobalScopeProvider.getAllImportedResources
(LilyPondImportUriGlobalScopeProvider.java:121)
at 
org.elysium.scoping.LilyPondImportUriGlobalScopeProvider$1.get(LilyPondImportUri
GlobalScopeProvider.java:95)
at 
org.elysium.scoping.LilyPondImportUriGlobalScopeProvider$1.get(LilyPondImportUri
GlobalScopeProvider.java:1)
at 
org.eclipse.xtext.util.OnChangeEvictingCache.get(OnChangeEvictingCache.java:43)
at 
org.elysium.scoping.LilyPondImportUriGlobalScopeProvider.getImportedUris(LilyPon
dImportUriGlobalScopeProvider.java:84)
at 
org.elysium.scoping.LilyPondImportUriGlobalScopeProvider.getScope(LilyPondImport
UriGlobalScopeProvider.java:72)
at 
org.eclipse.xtext.scoping.impl.AbstractGlobalScopeDelegatingScopeProvider.getGlo
balScope(AbstractGlobalScopeDelegatingScopeProvider.java:32)
at 
org.eclipse.xtext.scoping.impl.SimpleLocalScopeProvider.getScope(SimpleLocalScop
eProvider.java:61)
at 
org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.delegateGetScope
(AbstractDeclarativeScopeProvider.java:72)
at 
org.eclipse.xtext.scoping.impl.AbstractDeclarativeScopeProvider.getScope(Abstrac
tDeclarativeScopeProvider.java:102)
at 
org.eclipse.xtext.linking.impl.DefaultLinkingService.getScope(DefaultLinkingServ
ice.java:49)
at 
org.eclipse.xtext.linking.impl.DefaultLinkingService.getLinkedObjects(DefaultLin
kingService.java:103)
at 
org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResourc
e.java:94)
at 
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.j
ava:219)
at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:202)
at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:262)
at 
org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:
1483)
at org.elysium.lilypond.impl.ReferenceImpl.getAssignment(ReferenceImpl.java:75)

Original issue reported on code.google.com by harmathdenes on 5 Dec 2010 at 10:07

GoogleCodeExporter commented 9 years ago
1 GB heap space seems enough, so as a workaround, you can set -Xmx1024m in 
eclipse.ini.

Original comment by harmathdenes on 26 Dec 2010 at 12:03

GoogleCodeExporter commented 9 years ago

Original comment by harmathdenes on 26 Dec 2010 at 11:27

GoogleCodeExporter commented 9 years ago
We don't really have control over optimizing heap space, and the workaround 
works fine, so closing.

Original comment by harmathdenes on 23 Aug 2012 at 9:37