Skip to content

Instantly share code, notes, and snippets.

@eprst
Created July 13, 2017 22:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eprst/910c1357e9f566272e990e6684b32f60 to your computer and use it in GitHub Desktop.
Save eprst/910c1357e9f566272e990e6684b32f60 to your computer and use it in GitHub Desktop.
Accessing 'Stubs' during processing '111'. Nested different indices processing may cause deadlock
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
at com.intellij.util.indexing.IndexAccessValidator.checkAccessingIndexDuringOtherIndexProcessing(IndexAccessValidator.java:34)
at com.intellij.psi.stubs.StubIndexImpl.doProcessStubs(StubIndexImpl.java:343)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:323)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:312)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:76)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:95)
at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:301)
at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:291)
at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:39)
at ws.epigraph.ideaplugin.schema.index.SchemaIndexUtil.lambda$findSupplementsBySupplemented$2(SchemaIndexUtil.java:222)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile.processAll(AppendableStorageBackedByResizableMappedFile.java:135)
at com.intellij.util.io.PersistentEnumeratorBase.iterateData(PersistentEnumeratorBase.java:456)
at com.intellij.util.io.PersistentHashMap.processKeys(PersistentHashMap.java:456)
at com.intellij.util.indexing.VfsAwareMapIndexStorage.processKeys(VfsAwareMapIndexStorage.java:207)
at com.intellij.util.indexing.MemoryIndexStorage.processKeys(MemoryIndexStorage.java:151)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.processAllKeys(VfsAwareMapReduceIndex.java:157)
at com.intellij.psi.stubs.StubIndexImpl.processAllKeys(StubIndexImpl.java:415)
at com.intellij.psi.stubs.StubIndexImpl.processAllKeys(StubIndexImpl.java:404)
at com.intellij.psi.stubs.AbstractStubIndex.processAllKeys(AbstractStubIndex.java:35)
at ws.epigraph.ideaplugin.schema.index.SchemaIndexUtil.findSupplementsBySupplemented(SchemaIndexUtil.java:221)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.HierarchyCache$SupplementsBySupplementedProvider.compute(HierarchyCache.java:171)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.HierarchyCache$SupplementsBySupplementedProvider.compute(HierarchyCache.java:167)
at com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.java:45)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
at com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.java:35)
at com.intellij.psi.util.CachedValuesManager.getParameterizedCachedValue(CachedValuesManager.java:96)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.HierarchyCache.getSupplementsBySupplemented(HierarchyCache.java:98)
at ws.epigraph.ideaplugin.schema.features.hierarchy.SchemaLineMarkerProvider.collectNavigationMarkers(SchemaLineMarkerProvider.java:60)
at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectNavigationMarkers(RelatedItemLineMarkerProvider.java:49)
at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectSlowLineMarkers(RelatedItemLineMarkerProvider.java:40)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:212)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3(LineMarkersPass.java:119)
at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:96)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:106)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:438)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:431)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:430)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:406)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:142)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:250)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:404)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:165)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
at com.intellij.util.indexing.IndexAccessValidator.checkAccessingIndexDuringOtherIndexProcessing(IndexAccessValidator.java:34)
at com.intellij.psi.stubs.StubIndexImpl.doProcessStubs(StubIndexImpl.java:343)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:323)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:312)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:76)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:95)
at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:301)
at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:291)
at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:39)
at ws.epigraph.ideaplugin.schema.index.SchemaIndexUtil.lambda$findNamespaces$0(SchemaIndexUtil.java:169)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile.processAll(AppendableStorageBackedByResizableMappedFile.java:135)
at com.intellij.util.io.PersistentEnumeratorBase.iterateData(PersistentEnumeratorBase.java:456)
at com.intellij.util.io.PersistentHashMap.processKeys(PersistentHashMap.java:456)
at com.intellij.util.indexing.VfsAwareMapIndexStorage.processKeys(VfsAwareMapIndexStorage.java:207)
at com.intellij.util.indexing.MemoryIndexStorage.processKeys(MemoryIndexStorage.java:151)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.processAllKeys(VfsAwareMapReduceIndex.java:157)
at com.intellij.psi.stubs.StubIndexImpl.processAllKeys(StubIndexImpl.java:415)
at com.intellij.psi.stubs.StubIndexImpl.processAllKeys(StubIndexImpl.java:404)
at com.intellij.psi.stubs.AbstractStubIndex.processAllKeys(AbstractStubIndex.java:35)
at ws.epigraph.ideaplugin.schema.index.SchemaIndexUtil.findNamespaces(SchemaIndexUtil.java:167)
at ws.epigraph.ideaplugin.schema.brains.SchemaQnReferenceResolver.resolveNamespaces(SchemaQnReferenceResolver.java:134)
at ws.epigraph.ideaplugin.schema.brains.SchemaQnReferenceResolver.multiResolve(SchemaQnReferenceResolver.java:119)
at ws.epigraph.ideaplugin.schema.brains.SchemaQnReference.multiResolveImpl(SchemaQnReference.java:103)
at ws.epigraph.ideaplugin.schema.brains.SchemaQnReference.lambda$new$1(SchemaQnReference.java:56)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolve(ResolveCache.java:142)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:166)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:158)
at ws.epigraph.ideaplugin.schema.brains.SchemaQnReference.multiResolve(SchemaQnReference.java:98)
at ws.epigraph.ideaplugin.schema.highlighting.SchemaAnnotator.highlightQn(SchemaAnnotator.java:296)
at ws.epigraph.ideaplugin.schema.highlighting.SchemaAnnotator.access$000(SchemaAnnotator.java:46)
at ws.epigraph.ideaplugin.schema.highlighting.SchemaAnnotator$1.visitQn(SchemaAnnotator.java:223)
at ws.epigraph.schema.parser.psi.impl.SchemaQnImpl.accept(SchemaQnImpl.java:22)
at ws.epigraph.schema.parser.psi.impl.SchemaQnImpl.accept(SchemaQnImpl.java:26)
at ws.epigraph.ideaplugin.schema.highlighting.SchemaAnnotator.annotate(SchemaAnnotator.java:52)
at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.runAnnotators(DefaultHighlightVisitor.java:139)
at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.visit(DefaultHighlightVisitor.java:102)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.runVisitors(GeneralHighlightingPass.java:368)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$collectHighlights$5(GeneralHighlightingPass.java:307)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:327)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.lambda$analyzeByVisitors$6(GeneralHighlightingPass.java:330)
at com.intellij.codeInsight.daemon.impl.DefaultHighlightVisitor.analyze(DefaultHighlightVisitor.java:86)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.analyzeByVisitors(GeneralHighlightingPass.java:330)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectHighlights(GeneralHighlightingPass.java:298)
at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.collectInformationWithProgress(GeneralHighlightingPass.java:238)
at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:83)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:438)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:431)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:430)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:406)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:142)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:250)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:404)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:165)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:132)
at com.intellij.util.indexing.IndexAccessValidator.checkAccessingIndexDuringOtherIndexProcessing(IndexAccessValidator.java:34)
at com.intellij.psi.stubs.StubIndexImpl.doProcessStubs(StubIndexImpl.java:343)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:323)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:312)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:76)
at com.intellij.psi.stubs.StubIndex.process(StubIndex.java:95)
at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:301)
at com.intellij.psi.stubs.StubIndexImpl.get(StubIndexImpl.java:291)
at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:39)
at ws.epigraph.ideaplugin.schema.index.SchemaIndexUtil.lambda$findSupplementsBySource$1(SchemaIndexUtil.java:197)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile.processAll(AppendableStorageBackedByResizableMappedFile.java:135)
at com.intellij.util.io.PersistentEnumeratorBase.iterateData(PersistentEnumeratorBase.java:456)
at com.intellij.util.io.PersistentHashMap.processKeys(PersistentHashMap.java:456)
at com.intellij.util.indexing.VfsAwareMapIndexStorage.processKeys(VfsAwareMapIndexStorage.java:207)
at com.intellij.util.indexing.MemoryIndexStorage.processKeys(MemoryIndexStorage.java:151)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.processAllKeys(VfsAwareMapReduceIndex.java:157)
at com.intellij.psi.stubs.StubIndexImpl.processAllKeys(StubIndexImpl.java:415)
at com.intellij.psi.stubs.StubIndexImpl.processAllKeys(StubIndexImpl.java:404)
at com.intellij.psi.stubs.AbstractStubIndex.processAllKeys(AbstractStubIndex.java:35)
at ws.epigraph.ideaplugin.schema.index.SchemaIndexUtil.findSupplementsBySource(SchemaIndexUtil.java:196)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.SchemaDirectTypeInheritorsSearcher.lambda$execute$3(SchemaDirectTypeInheritorsSearcher.java:84)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:934)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.SchemaDirectTypeInheritorsSearcher.execute(SchemaDirectTypeInheritorsSearcher.java:83)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.SchemaDirectTypeInheritorsSearcher.execute(SchemaDirectTypeInheritorsSearcher.java:43)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:45)
at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:79)
at com.intellij.util.UniqueResultsQuery.process(UniqueResultsQuery.java:66)
at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:56)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.SchemaTypeInheritorsSearcher.processInheritors(SchemaTypeInheritorsSearcher.java:98)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.SchemaTypeInheritorsSearcher.processQuery(SchemaTypeInheritorsSearcher.java:55)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.SchemaTypeInheritorsSearcher.processQuery(SchemaTypeInheritorsSearcher.java:39)
at com.intellij.openapi.application.QueryExecutorBase.execute(QueryExecutorBase.java:87)
at com.intellij.util.ExecutorsQuery.processResults(ExecutorsQuery.java:45)
at com.intellij.util.AbstractQuery.forEach(AbstractQuery.java:79)
at com.intellij.util.UniqueResultsQuery.process(UniqueResultsQuery.java:66)
at com.intellij.util.UniqueResultsQuery.forEach(UniqueResultsQuery.java:56)
at com.intellij.util.UniqueResultsQuery.findAll(UniqueResultsQuery.java:79)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.HierarchyCache$TypeInheritorsProvider.compute(HierarchyCache.java:147)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.HierarchyCache$TypeInheritorsProvider.compute(HierarchyCache.java:143)
at com.intellij.psi.impl.PsiParameterizedCachedValue.doCompute(PsiParameterizedCachedValue.java:45)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
at com.intellij.psi.impl.PsiParameterizedCachedValue.getValue(PsiParameterizedCachedValue.java:35)
at com.intellij.psi.util.CachedValuesManager.getParameterizedCachedValue(CachedValuesManager.java:96)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.HierarchyCache.getTypeInheritors(HierarchyCache.java:86)
at ws.epigraph.ideaplugin.schema.brains.hierarchy.TypeMembers.getOverridingFields(TypeMembers.java:50)
at ws.epigraph.ideaplugin.schema.features.hierarchy.SchemaLineMarkerProvider.collectNavigationMarkers(SchemaLineMarkerProvider.java:112)
at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectNavigationMarkers(RelatedItemLineMarkerProvider.java:49)
at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectSlowLineMarkers(RelatedItemLineMarkerProvider.java:40)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:212)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3(LineMarkersPass.java:119)
at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:96)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:106)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:70)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:438)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:431)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:430)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:406)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:142)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:250)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:404)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:165)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment