Skip to content

Out of memory exception on OSATE 2.6.0 (testing) #1997

@smithdtyler

Description

@smithdtyler

When running unit tests, we are getting out of memory exceptions on OSATE testing (2.6.0) but not on OSATE stable (2.5.2).

I have encountered a similar error before (#1726) but was unable to replace it using the minimal example used in that issue.

!ENTRY org.eclipse.core.jobs 4 2 2019-09-20 08:39:14.775
!MESSAGE An internal error occurred during: "Building workspace".
!STACK 0
java.lang.OutOfMemoryError: GC overhead limit exceeded
	at org.eclipse.emf.ecore.util.EContentsEList.newResolvingListIterator(EContentsEList.java:89)
	at org.eclipse.emf.ecore.util.EContentsEList.newListIterator(EContentsEList.java:84)
	at org.eclipse.emf.ecore.util.EContentsEList.newIterator(EContentsEList.java:99)
	at org.eclipse.emf.ecore.util.EContentsEList.iterator(EContentsEList.java:151)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl$2.getChildren(BasicEObjectImpl.java:842)
	at org.eclipse.emf.common.util.AbstractTreeIterator.next(AbstractTreeIterator.java:138)
	at org.eclipse.xtext.EcoreUtil2$1.next(EcoreUtil2.java:249)
	at org.eclipse.xtext.EcoreUtil2$1.next(EcoreUtil2.java:215)
	at org.eclipse.xtext.GrammarUtil.collectAllRules(GrammarUtil.java:406)
	at org.eclipse.xtext.GrammarUtil.allRules(GrammarUtil.java:383)
	at org.eclipse.xtext.GrammarUtil.allTerminalRules(GrammarUtil.java:434)
	at org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.registerEFactoryConverters(AbstractDeclarativeValueConverterService.java:212)
	at org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.internalRegisterForClass(AbstractDeclarativeValueConverterService.java:115)
	at org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.getConverters(AbstractDeclarativeValueConverterService.java:100)
	at org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.getConverter(AbstractDeclarativeValueConverterService.java:88)
	at org.eclipse.xtext.conversion.impl.AbstractDeclarativeValueConverterService.toValue(AbstractDeclarativeValueConverterService.java:79)
	at org.eclipse.xtext.linking.impl.LinkingHelper.getCrossRefNodeAsString(LinkingHelper.java:66)
	at org.osate.xtext.aadl2.properties.linking.PropertiesLinkingService.getCrossRefNodeAsString(PropertiesLinkingService.java:191)
	at org.osate.xtext.aadl2.linking.Aadl2LinkingService.getLinkedObjects(Aadl2LinkingService.java:143)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:265)
	at org.eclipse.xtext.linking.lazy.LazyLinkingResource.getEObject(LazyLinkingResource.java:236)
	at org.eclipse.xtext.resource.persistence.StorageAwareResource.getEObject(StorageAwareResource.java:119)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.getEObject(ResourceSetImpl.java:223)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:209)
	at org.eclipse.emf.ecore.util.EcoreUtil.resolve(EcoreUtil.java:269)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eResolveProxy(BasicEObjectImpl.java:1477)
	at org.osate.aadl2.impl.SubcomponentImpl.getRefinedElement(SubcomponentImpl.java:784)
	at org.osate.aadl2.impl.RefinableElementImpl.setName(RefinableElementImpl.java:189)
	at org.osate.aadl2.impl.SubcomponentImpl.setRefined(SubcomponentImpl.java:471)
	at org.osate.aadl2.impl.SubcomponentImpl.eSet(SubcomponentImpl.java:587)
	at org.osate.aadl2.impl.SystemSubcomponentImpl.eSet(SystemSubcomponentImpl.java:194)
	at org.eclipse.emf.ecore.impl.BasicEObjectImpl.eSet(BasicEObjectImpl.java:1

Environment

  • OSATE Testing 2.6.0
  • Windows 7

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions