viatra / EMF-IncQuery

This repository is only kept for historic reasons. All development happens on eclipse.org
http://eclipse.org/viatra
13 stars 4 forks source link

Swallowed Guava exception while trying to launch Eclipse with .eiq open #209

Closed bergmanngabor closed 12 years ago

bergmanngabor commented 12 years ago

Seems Genmodel-related. Comes up several times. Not sure if we should worry about it, since it is completely swallowed.

Note: no .eiqgen in project.

Thread [main] (Suspended (exception java.util.NoSuchElementException))  
    owns: org.eclipse.xtext.xbase.resource.XbaseResource  (id=426)  
    owns: org.eclipse.swt.widgets.RunnableLock  (id=427)    
    owns: org.eclipse.swt.widgets.RunnableLock  (id=428)    
    com.google.common.collect.Iterators$7(com.google.common.collect.AbstractIterator<T>).next() line: 152   
    com.google.common.collect.Iterators.find(java.util.Iterator<T>, com.google.common.base.Predicate<? super T>) line: 715  
    com.google.common.collect.Iterables.find(java.lang.Iterable<T>, com.google.common.base.Predicate<? super T>) line: 638  
    org.eclipse.viatra2.emf.incquery.tooling.generator.genmodel.GenModelMetamodelProviderService.findGenPackage(org.eclipse.viatra2.emf.incquery.tooling.generator.generatorModel.IncQueryGeneratorModel, java.lang.String) line: 181   
    org.eclipse.viatra2.emf.incquery.tooling.generator.genmodel.GenModelMetamodelProviderService.findGenPackage(org.eclipse.emf.ecore.resource.ResourceSet, java.lang.String) line: 171 
    org.eclipse.viatra2.emf.incquery.tooling.generator.genmodel.GenModelMetamodelProviderService.loadEPackage(java.lang.String, org.eclipse.emf.ecore.resource.ResourceSet) line: 85    
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageLinkingService.getPackage(org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.PackageImport, org.eclipse.xtext.nodemodel.ILeafNode) line: 102  
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageLinkingService.getLinkedObjects(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode) line: 50  
    org.eclipse.xtext.xbase.resource.XbaseResource(org.eclipse.xtext.linking.lazy.LazyLinkingResource).getEObject(java.lang.String) line: 179   
    org.eclipse.xtext.xbase.resource.XbaseResource.access$0(org.eclipse.xtext.xbase.resource.XbaseResource, java.lang.String) line: 1   
    org.eclipse.xtext.xbase.resource.XbaseResource$2.exec(org.eclipse.xtext.xbase.resource.XbaseResource) line: 239 
    org.eclipse.xtext.xbase.resource.XbaseResource$2.exec(java.lang.Object) line: 1 
    org.eclipse.xtext.util.OnChangeEvictingCache.execWithoutCacheClear(Param, org.eclipse.xtext.util.concurrent.IUnitOfWork<Result,Param>) line: 124    
    org.eclipse.xtext.xbase.resource.XbaseResource.getEObject(java.lang.String) line: 237   
    org.eclipse.xtext.resource.SynchronizedXtextResourceSet(org.eclipse.emf.ecore.resource.impl.ResourceSetImpl).getEObject(org.eclipse.emf.common.util.URI, boolean) line: 219 
    org.eclipse.emf.ecore.util.EcoreUtil.resolve(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.resource.ResourceSet) line: 203   
    org.eclipse.emf.ecore.util.EcoreUtil.resolve(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject) line: 263    
    org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.impl.PackageImportImpl(org.eclipse.emf.ecore.impl.BasicEObjectImpl).eResolveProxy(org.eclipse.emf.ecore.InternalEObject) line: 1483  
    org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.impl.PackageImportImpl.getEPackage() line: 74    
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageDeclarativeScopeProvider.createReferencedPackagesScope(org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.PatternModel) line: 129 
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageDeclarativeScopeProvider.scope_EClassifier(org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.ClassType, org.eclipse.emf.ecore.EReference) line: 107  
    sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) line: not available [native method]    
    sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 39  
    sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 25  
    java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object...) line: 597    
    org.eclipse.viatra2.patternlanguage.core.scoping.MyAbstractDeclarativeScopeProvider$1(org.eclipse.xtext.util.PolymorphicDispatcher<RT>).invoke(java.lang.Object...) line: 291   
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageDeclarativeScopeProvider(org.eclipse.viatra2.patternlanguage.core.scoping.MyAbstractDeclarativeScopeProvider).polymorphicFindScopeForClassName(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference) line: 104 
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageDeclarativeScopeProvider(org.eclipse.viatra2.patternlanguage.core.scoping.MyAbstractDeclarativeScopeProvider).getScope(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference) line: 79  
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageScopeProvider(org.eclipse.xtext.xbase.scoping.XtypeScopeProvider).getScope(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference) line: 33  
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageScopeProvider(org.eclipse.xtext.xbase.scoping.XbaseScopeProvider).getScope(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference) line: 187 
    org.eclipse.xtext.xbase.linking.XbaseLinkingScopeProvider.getScope(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference) line: 42    
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageLinkingService(org.eclipse.xtext.linking.impl.DefaultLinkingService).getScope(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference) line: 59   
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageLinkingService(org.eclipse.xtext.linking.impl.DefaultLinkingService).getLinkedObjects(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode) line: 119   
    org.eclipse.viatra2.patternlanguage.scoping.EMFPatternLanguageLinkingService.getLinkedObjects(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EReference, org.eclipse.xtext.nodemodel.INode) line: 57  
    org.eclipse.xtext.xbase.resource.XbaseResource(org.eclipse.xtext.linking.lazy.LazyLinkingResource).getEObject(java.lang.String) line: 179   
    org.eclipse.xtext.xbase.resource.XbaseResource.access$0(org.eclipse.xtext.xbase.resource.XbaseResource, java.lang.String) line: 1   
    org.eclipse.xtext.xbase.resource.XbaseResource$2.exec(org.eclipse.xtext.xbase.resource.XbaseResource) line: 239 
    org.eclipse.xtext.xbase.resource.XbaseResource$2.exec(java.lang.Object) line: 1 
    org.eclipse.xtext.util.OnChangeEvictingCache.execWithoutCacheClear(Param, org.eclipse.xtext.util.concurrent.IUnitOfWork<Result,Param>) line: 124    
    org.eclipse.xtext.xbase.resource.XbaseResource.getEObject(java.lang.String) line: 237   
    org.eclipse.xtext.resource.SynchronizedXtextResourceSet(org.eclipse.emf.ecore.resource.impl.ResourceSetImpl).getEObject(org.eclipse.emf.common.util.URI, boolean) line: 219 
    org.eclipse.emf.ecore.util.EcoreUtil.resolve(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.resource.ResourceSet) line: 203   
    org.eclipse.emf.ecore.util.EcoreUtil.resolve(org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.EObject) line: 263    
    org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.impl.ClassTypeImpl(org.eclipse.emf.ecore.impl.BasicEObjectImpl).eResolveProxy(org.eclipse.emf.ecore.InternalEObject) line: 1483  
    org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.impl.ClassTypeImpl.getClassname() line: 74   
    org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.impl.ClassTypeImpl.eGet(int, boolean, boolean) line: 118 
    org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.impl.ClassTypeImpl(org.eclipse.emf.ecore.impl.BasicEObjectImpl).eGet(org.eclipse.emf.ecore.EStructuralFeature, boolean, boolean) line: 1021  
    org.eclipse.viatra2.patternlanguage.eMFPatternLanguage.impl.ClassTypeImpl(org.eclipse.emf.ecore.impl.BasicEObjectImpl).eGet(org.eclipse.emf.ecore.EStructuralFeature, boolean) line: 1013   
    org.eclipse.emf.ecore.util.ECrossReferenceEList$ResolvingFeatureIteratorImpl<E>(org.eclipse.emf.ecore.util.EContentsEList$FeatureIteratorImpl<E>).hasNext() line: 409   
    org.eclipse.emf.ecore.util.EcoreUtil.resolveCrossReferences(org.eclipse.emf.ecore.EObject) line: 308    
    org.eclipse.emf.ecore.util.EcoreUtil.resolveAll(org.eclipse.emf.ecore.EObject) line: 302    
    org.eclipse.viatra2.patternlanguage.types.EMFPatternTypeProvider._typeForIdentifiable(org.eclipse.viatra2.patternlanguage.core.patternLanguage.Variable, boolean) line: 72  
    org.eclipse.viatra2.patternlanguage.types.EMFPatternTypeProvider.typeForIdentifiable(org.eclipse.xtext.common.types.JvmIdentifiableElement, boolean) line: 62   
    org.eclipse.xtext.xbase.typing.AbstractTypeProvider$4.doComputation(org.eclipse.xtext.common.types.JvmIdentifiableElement, boolean) line: 454   
    org.eclipse.xtext.xbase.typing.AbstractTypeProvider$4.doComputation(java.lang.Object, boolean) line: 1  
    org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get() line: 658 
    org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport$3.get() line: 1   
    org.eclipse.xtext.xbase.typing.AbstractTypeProvider$1.get(java.lang.Object, org.eclipse.emf.ecore.resource.Resource, com.google.inject.Provider<T>) line: 159   
    org.eclipse.xtext.xbase.typing.AbstractTypeProvider$4(org.eclipse.xtext.xbase.typing.AbstractTypeProvider$CyclicHandlingSupport<T>).getType(T, boolean) line: 655   
    org.eclipse.viatra2.patternlanguage.types.EMFPatternTypeProvider(org.eclipse.xtext.xbase.typing.AbstractTypeProvider).doGetType(java.lang.String, T, boolean, org.eclipse.xtext.xbase.typing.AbstractTypeProvider.CyclicHandlingSupport<T>) line: 348   
    org.eclipse.viatra2.patternlanguage.types.EMFPatternTypeProvider(org.eclipse.xtext.xbase.typing.AbstractTypeProvider).getTypeForIdentifiable(org.eclipse.xtext.common.types.JvmIdentifiableElement, boolean) line: 477  
    org.eclipse.viatra2.patternlanguage.types.EMFPatternTypeProvider(org.eclipse.xtext.xbase.typing.AbstractTypeProvider).getTypeForIdentifiable(org.eclipse.xtext.common.types.JvmIdentifiableElement) line: 473   
    org.eclipse.viatra2.emf.incquery.tooling.generator.util.EMFPatternLanguageJvmModelInferrerUtil.calculateType(org.eclipse.viatra2.patternlanguage.core.patternLanguage.Variable) line: 228   
    src/org/eclipse/viatra2/emf/incquery/tooling/generator/jvmmodel/PatternMatchClassInferrer.xtend line: 64    
    src/org/eclipse/viatra2/emf/incquery/tooling/generator/jvmmodel/PatternMatchClassInferrer.xtend line: 50    
    src/org/eclipse/viatra2/emf/incquery/tooling/generator/jvmmodel/EMFPatternLanguageJvmModelInferrer.xtend line: 68   
    src/org/eclipse/viatra2/emf/incquery/tooling/generator/jvmmodel/EMFPatternLanguageJvmModelInferrer.xtend line: 59   
    org.eclipse.viatra2.emf.incquery.tooling.generator.jvmmodel.EMFPatternLanguageJvmModelInferrer(org.eclipse.xtext.xbase.jvmmodel.AbstractModelInferrer)._infer(org.eclipse.emf.ecore.EObject, org.eclipse.xtext.xbase.jvmmodel.IJvmDeclaredTypeAcceptor, boolean) line: 69   
    src/org/eclipse/viatra2/emf/incquery/tooling/generator/jvmmodel/EMFPatternLanguageJvmModelInferrer.xtend line: not available    
    org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator.installDerivedState(org.eclipse.xtext.resource.DerivedStateAwareResource, boolean) line: 231    
    org.eclipse.xtext.xbase.resource.XbaseResource(org.eclipse.xtext.resource.DerivedStateAwareResource).installDerivedState(boolean) line: 125 
    org.eclipse.xtext.xbase.resource.XbaseResource(org.eclipse.xtext.resource.DerivedStateAwareResource).getContents() line: 48 
    org.eclipse.emf.ecore.resource.impl.ResourceImpl$4.getChildren(java.lang.Object) line: 525  
    org.eclipse.emf.ecore.resource.impl.ResourceImpl$4(org.eclipse.emf.common.util.AbstractTreeIterator<E>).hasAnyChildren() line: 103  
    org.eclipse.emf.ecore.resource.impl.ResourceImpl$4(org.eclipse.emf.common.util.AbstractTreeIterator<E>).hasNext() line: 91  
    org.eclipse.viatra2.patternlanguage.ui.highlight.EMFPatternLanguageHighlightingCalculator.searchAndHighlightElements(org.eclipse.xtext.resource.XtextResource, org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor) line: 23    
    org.eclipse.viatra2.patternlanguage.ui.highlight.EMFPatternLanguageHighlightingCalculator(org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator).doProvideHighlightingFor(org.eclipse.xtext.resource.XtextResource, org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor) line: 115    
    org.eclipse.viatra2.patternlanguage.ui.highlight.EMFPatternLanguageHighlightingCalculator(org.eclipse.xtext.xbase.ui.highlighting.XbaseHighlightingCalculator).provideHighlightingFor(org.eclipse.xtext.resource.XtextResource, org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor) line: 92   
    org.eclipse.xtext.ui.editor.syntaxcoloring.MergingHighlightedPositionAcceptor.provideHighlightingFor(org.eclipse.xtext.resource.XtextResource, org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor) line: 51    
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.reconcilePositions(org.eclipse.xtext.resource.XtextResource) line: 88 
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.modelChanged(org.eclipse.xtext.resource.XtextResource) line: 281  
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1.process(org.eclipse.xtext.resource.XtextResource) line: 252 
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1.process(java.lang.Object) line: 1   
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler$1(org.eclipse.xtext.util.concurrent.IUnitOfWork$Void<T>).exec(T) line: 36 
    org.eclipse.xtext.ui.editor.model.XtextDocument$XtextDocumentLocker(org.eclipse.xtext.util.concurrent.AbstractReadWriteAcces<P>).readOnly(org.eclipse.xtext.util.concurrent.IUnitOfWork<T,P>) line: 32  
    org.eclipse.xtext.ui.editor.model.XtextDocument.readOnly(org.eclipse.xtext.util.concurrent.IUnitOfWork<T,org.eclipse.xtext.resource.XtextResource>) line: 78    
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.refresh() line: 249   
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingReconciler.install(org.eclipse.xtext.ui.editor.XtextEditor, org.eclipse.xtext.ui.editor.XtextSourceViewer, org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingPresenter) line: 204   
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingHelper.enable() line: 91 
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingHelper.install(org.eclipse.xtext.ui.editor.XtextSourceViewerConfiguration, org.eclipse.xtext.ui.editor.XtextSourceViewer) line: 79   
    org.eclipse.xtext.ui.editor.syntaxcoloring.HighlightingHelper.install(org.eclipse.xtext.ui.editor.XtextEditor, org.eclipse.xtext.ui.editor.XtextSourceViewer) line: 61  
    org.eclipse.xtext.xbase.ui.editor.XbaseEditor(org.eclipse.xtext.ui.editor.XtextEditor).installHighlightingHelper() line: 496    
    org.eclipse.xtext.xbase.ui.editor.XbaseEditor(org.eclipse.xtext.ui.editor.XtextEditor).createPartControl(org.eclipse.swt.widgets.Composite) line: 458   
    org.eclipse.ui.internal.EditorReference.createPartHelper() line: 670    
    org.eclipse.ui.internal.EditorReference.createPart() line: 465  
    org.eclipse.ui.internal.EditorReference(org.eclipse.ui.internal.WorkbenchPartReference).getPart(boolean) line: 595  
    org.eclipse.ui.internal.EditorAreaHelper.setVisibleEditor(org.eclipse.ui.IEditorReference, boolean) line: 271   
    org.eclipse.ui.internal.EditorManager.setVisibleEditor(org.eclipse.ui.IEditorReference, boolean) line: 1459 
    org.eclipse.ui.internal.EditorManager$5.runWithException() line: 972    
    org.eclipse.ui.internal.EditorManager$5(org.eclipse.ui.internal.StartupThreading$StartupRunnable).run() line: 31    
    org.eclipse.swt.widgets.RunnableLock.run() line: 35 
    org.eclipse.ui.internal.UISynchronizer(org.eclipse.swt.widgets.Synchronizer).runAsyncMessages(boolean) line: 135    
    org.eclipse.swt.widgets.Display.runAsyncMessages(boolean) line: 4140    
    org.eclipse.swt.widgets.Display.readAndDispatch() line: 3757    
    org.eclipse.ui.internal.ide.application.IDEWorkbenchAdvisor(org.eclipse.ui.application.WorkbenchAdvisor).openWindows() line: 803    
    org.eclipse.ui.internal.Workbench$33.runWithException() line: 1600  
    org.eclipse.ui.internal.Workbench$33(org.eclipse.ui.internal.StartupThreading$StartupRunnable).run() line: 31   
    org.eclipse.swt.widgets.RunnableLock.run() line: 35 
    org.eclipse.ui.internal.UISynchronizer(org.eclipse.swt.widgets.Synchronizer).runAsyncMessages(boolean) line: 135    
    org.eclipse.swt.widgets.Display.runAsyncMessages(boolean) line: 4140    
    org.eclipse.swt.widgets.Display.readAndDispatch() line: 3757    
    org.eclipse.ui.internal.Workbench.runUI() line: 2609    
    org.eclipse.ui.internal.Workbench.access$4(org.eclipse.ui.internal.Workbench) line: 2499    
    org.eclipse.ui.internal.Workbench$7.run() line: 679 
    org.eclipse.core.databinding.observable.Realm.runWithDefault(org.eclipse.core.databinding.observable.Realm, java.lang.Runnable) line: 332   
    org.eclipse.ui.internal.Workbench.createAndRunWorkbench(org.eclipse.swt.widgets.Display, org.eclipse.ui.application.WorkbenchAdvisor) line: 668 
    org.eclipse.ui.PlatformUI.createAndRunWorkbench(org.eclipse.swt.widgets.Display, org.eclipse.ui.application.WorkbenchAdvisor) line: 149 
    org.eclipse.ui.internal.ide.application.IDEApplication.start(org.eclipse.equinox.app.IApplicationContext) line: 123 
    org.eclipse.equinox.internal.app.EclipseAppHandle.run(java.lang.Object) line: 196   
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(java.lang.Object) line: 110 
    org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(java.lang.Object) line: 79   
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.Object) line: 344 
    org.eclipse.core.runtime.adaptor.EclipseStarter.run(java.lang.String[], java.lang.Runnable) line: 179   
    sun.reflect.NativeMethodAccessorImpl.invoke0(java.lang.reflect.Method, java.lang.Object, java.lang.Object[]) line: not available [native method]    
    sun.reflect.NativeMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 39  
    sun.reflect.DelegatingMethodAccessorImpl.invoke(java.lang.Object, java.lang.Object[]) line: 25  
    java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object...) line: 597    
    org.eclipse.equinox.launcher.Main.invokeFramework(java.lang.String[], java.net.URL[]) line: 622 
    org.eclipse.equinox.launcher.Main.basicRun(java.lang.String[]) line: 577    
    org.eclipse.equinox.launcher.Main.run(java.lang.String[]) line: 1410    
    org.eclipse.equinox.launcher.Main.main(java.lang.String[]) line: 1386   
ujhelyiz commented 12 years ago

This issue is genmodel-related. There are two specific reading into the issue:

The main error in the design is that it throws this exception quite often what can become a performance hit. As some changes are still required in the API because of other tickets, I will look onto simple solutions that also fix this one, so I moved the issue in Milestone 0.6.0 Optional.

bergmanngabor commented 12 years ago

"The main error in the design is that it throws this exception quite often what can become a performance hit."

I only observed a handful of them, hardly a serious performance choke point. Then again, perhaps there may be conditions under which this exception is thrown a lot more frequently.

ujhelyiz commented 12 years ago

Fixed in master.