- edited description
IntelliJ often crashes when opening comments
There have been a number of times the IDE crashes and I have to reload IntelliJ when starting to write comments in Apex. I’m not sure if IntelliJ or IC is at fault - although it does say the plugin is to blame.
2019-05-17 12:57:12,080 [1604729] ERROR - on.CompletionProgressIndicator - IntelliJ IDEA 2019.1.2 Build #IU-191.7141.44
2019-05-17 12:57:12,080 [1604729] ERROR - on.CompletionProgressIndicator - JDK: 1.8.0_202-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-05-17 12:57:12,080 [1604729] ERROR - on.CompletionProgressIndicator - OS: Windows 10
2019-05-17 12:57:12,081 [1604730] ERROR - on.CompletionProgressIndicator - Plugin to blame: Illuminated Cloud 2 version: 2.0.6.0
2019-05-17 12:57:12,081 [1604730] ERROR - on.CompletionProgressIndicator - Last Action: EditorBackSpace
2019-05-17 12:57:12,144 [1604793] WARN - impl.ApexClassDeclarationMixin - The class declaration element is invalid. Returning a null base class declaration.
2019-05-17 12:57:12,145 [1604794] ERROR - on.CompletionProgressIndicator - Element class com.intellij.psi.impl.source.tree.CompositeElement of type CLASS_DECLARATION (class com.illuminatedcloud.intellij.psi.stub.ApexClassDeclarationElementType)
com.intellij.psi.PsiInvalidElementAccessException: Element class com.intellij.psi.impl.source.tree.CompositeElement of type CLASS_DECLARATION (class com.illuminatedcloud.intellij.psi.stub.ApexClassDeclarationElementType)
at com.intellij.psi.PsiInvalidElementAccessException.createByNode(PsiInvalidElementAccessException.java:96)
at com.intellij.psi.impl.source.SubstrateRef$2.getContainingFile(SubstrateRef.java:101)
at com.intellij.extapi.psi.StubBasedPsiElementBase.getContainingFile(StubBasedPsiElementBase.java:253)
at com.intellij.psi.impl.ResolveScopeManager.getElementResolveScope(ResolveScopeManager.java:49)
at com.intellij.psi.impl.PsiElementBase.getResolveScope(PsiElementBase.java:184)
at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.getSearchScope(SourceFile:58)
at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.fastFindTypeDeclaration(SourceFile:224)
at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.findTypeDeclaration(SourceFile:102)
at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.findTypeDeclaration(SourceFile:78)
at com.illuminatedcloud.intellij.ApexLanguage.getClassField(SourceFile:498)
at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.getLocalBodyDeclarations(SourceFile:117)
at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin.getLocalBodyDeclarations(SourceFile:486)
at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.getBodyDeclarations(SourceFile:124)
at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.lambda$getAllBodyDeclarations$0(SourceFile:136)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:148)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:72)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129)
at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.getAllBodyDeclarations(SourceFile:130)
at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.collectVisibleDeclarations(SourceFile:271)
at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:168)
at com.illuminatedcloud.intellij.psi.impl.ApexMethodDeclarationMixin.collectVisibleDeclarations(SourceFile:294)
at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:168)
at com.illuminatedcloud.intellij.psi.impl.ApexCodeBlockMixin.collectVisibleDeclarations(SourceFile:206)
at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:168)
at com.illuminatedcloud.intellij.psi.util.VisibleDeclarationCollector.collectVisibleDeclarations(SourceFile:144)
at com.illuminatedcloud.intellij.psi.impl.ApexSimpleRefExpressionMixin.getReferencesNoCache(SourceFile:318)
at com.illuminatedcloud.intellij.psi.util.ApexExpressionUtil.getExpressionTypes(SourceFile:1424)
at com.illuminatedcloud.intellij.psi.util.ApexExpressionUtil.getExpressionType(SourceFile:1453)
at com.illuminatedcloud.intellij.psi.util.ApexParameterizedTypeUtil.getFormalParameterType(SourceFile:250)
at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.lambda$null$1(SourceFile:147)
at com.intellij.openapi.util.text.StringUtil.join(StringUtil.java:1447)
at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.lambda$getParametersPresentableText$2(SourceFile:137)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:148)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:72)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129)
at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.getParametersPresentableText(SourceFile:132)
at com.illuminatedcloud.intellij.psi.reference.ApexDeclarationReference.createLookupElement(SourceFile:215)
at com.illuminatedcloud.intellij.psi.reference.ApexDeclarationReference.createLookupElement(SourceFile:143)
at com.illuminatedcloud.intellij.completion.ApexVariantsCompletionRule.doGetCompletions(SourceFile:291)
at com.illuminatedcloud.intellij.completion.ApexCompletionRule.getCompletions(SourceFile:390)
at com.illuminatedcloud.intellij.completion.ApexCompletionContext.getCompletions(SourceFile:221)
at com.illuminatedcloud.intellij.completion.ApexCompletionProvider.getCompletions(SourceFile:2162)
at com.illuminatedcloud.intellij.completion.ApexCompletionProvider.addCompletions(SourceFile:2128)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:161)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:90)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:149)
at com.intellij.codeInsight.completion.CompletionResultSet.runRemainingContributors(CompletionResultSet.java:142)
at com.intellij.codeInsight.template.impl.LiveTemplateCompletionContributor$1.addCompletions(LiveTemplateCompletionContributor.java:77)
at com.intellij.codeInsight.completion.CompletionProvider.addCompletionVariants(CompletionProvider.java:36)
at com.intellij.codeInsight.completion.CompletionContributor.fillCompletionVariants(CompletionContributor.java:161)
at com.intellij.codeInsight.completion.CompletionService.getVariantsFromContributors(CompletionService.java:90)
at com.intellij.codeInsight.completion.CompletionService.performCompletion(CompletionService.java:120)
at com.intellij.codeInsight.completion.impl.CompletionServiceImpl.performCompletion(CompletionServiceImpl.java:60)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.calculateItems(CompletionProgressIndicator.java:828)
at com.intellij.codeInsight.completion.CompletionProgressIndicator.runContributors(CompletionProgressIndicator.java:813)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$null$2(CodeCompletionHandlerBase.java:280)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166)
at com.intellij.codeInsight.completion.AsyncCompletion.tryReadOrCancel(CompletionThreading.java:170)
at com.intellij.codeInsight.completion.CodeCompletionHandlerBase.lambda$doComplete$3(CodeCompletionHandlerBase.java:277)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$null$0(CompletionThreading.java:95)
at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:164)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:151)
at com.intellij.codeInsight.completion.AsyncCompletion.lambda$startThread$1(CompletionThreading.java:91)
at com.intellij.openapi.application.impl.ApplicationImpl$1.run(ApplicationImpl.java:311)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
2019-05-17 12:57:12,145 [1604794] ERROR - on.CompletionProgressIndicator - IntelliJ IDEA 2019.1.2 Build #IU-191.7141.44
2019-05-17 12:57:12,145 [1604794] ERROR - on.CompletionProgressIndicator - JDK: 1.8.0_202-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o
2019-05-17 12:57:12,145 [1604794] ERROR - on.CompletionProgressIndicator - OS: Windows 10
2019-05-17 12:57:12,146 [1604795] ERROR - on.CompletionProgressIndicator - Plugin to blame: Illuminated Cloud 2 version: 2.0.6.0
2019-05-17 12:57:12,146 [1604795] ERROR - on.CompletionProgressIndicator - Last Action: EditorBackSpace
2019-05-17 12:57:35,286 [1627935] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 105 ms
2019-05-17 12:57:35,462 [1628111] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 89 ms
2019-05-17 12:57:50,301 [1642950] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 121 ms
2019-05-17 12:58:01,491 [1654140] INFO - mponents.impl.stores.StoreUtil - saveProjectsAndApp took 94 ms
2019-05-17 12:58:18,368 [1671017] INFO - agnostic.FrequentEventDetector - Too many events posted, #1. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=LaterInvocator.FlushQueue,notifier=null,catchExceptions=false,when=1558094298368] on sun.awt.windows.WToolkit@1ec79247
2019-05-17 12:58:19,465 [1672114] INFO - agnostic.FrequentEventDetector - Too many events posted, #1. Event: java.awt.event.InvocationEvent[INVOCATION_DEFAULT,runnable=LaterInvocator.FlushQueue,notifier=null,catchExceptions=false,when=1558094299465] on sun.awt.windows.WToolkit@1ec79247
2019-05-17 12:58:55,758 [1708407] ERROR - j.psi.stubs.StubTreeLoaderImpl - Outdated stub in index: file://C:/Users/Luke/sfdx/legacy/engage-v2/force-app/main/default/classes/RequestLogProcessor.cls indexed at 1558094281402 with document size 15297, doc=DocumentImpl[file://C:/Users/Luke/sfdx/legacy/engage-v2/force-app/main/default/classes/RequestLogProcessor.cls], docSaved=false, wasIndexedAlready=true, queried at 1558094281402
indexed lengths={chars=15297, bytes=15883}
doc length=15299
file length=15883
cached PSI class com.illuminatedcloud.intellij.filetype.ApexClassFile
PSI length=15299
projects with file: 1
java.lang.Exception
at com.intellij.psi.stubs.StubTreeLoaderImpl.diagnoseLengthMismatch(StubTreeLoaderImpl.java:180)
at com.intellij.psi.stubs.StubTreeLoaderImpl.checkLengthMatch(StubTreeLoaderImpl.java:150)
at com.intellij.psi.stubs.StubTreeLoaderImpl.readFromVFile(StubTreeLoaderImpl.java:118)
at com.intellij.psi.stubs.StubTreeLoader.stubTreeAndIndexDoNotMatch(StubTreeLoader.java:72)
at com.intellij.psi.stubs.StubProcessingHelperBase.inconsistencyDetected(StubProcessingHelperBase.java:147)
at com.intellij.psi.stubs.StubProcessingHelperBase.checkType(StubProcessingHelperBase.java:89)
at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:68)
at com.intellij.psi.stubs.StubIndexImpl$2.process(StubIndexImpl.java:290)
at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:602)
at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:590)
at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:62)
at com.intellij.psi.stubs.StubIndexImpl.lambda$null$0(StubIndexImpl.java:314)
at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:245)
at com.intellij.psi.stubs.StubIndexImpl.lambda$null$1(StubIndexImpl.java:312)
at com.intellij.util.indexing.FileBasedIndexImpl.disableUpToDateCheckIn(FileBasedIndexImpl.java:671)
at com.intellij.psi.stubs.StubIndexImpl.lambda$doProcessStubs$2(StubIndexImpl.java:311)
at com.intellij.util.indexing.IndexAccessValidator.validate(IndexAccessValidator.java:43)
at com.intellij.psi.stubs.StubIndexImpl.doProcessStubs(StubIndexImpl.java:309)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:281)
at com.intellij.psi.stubs.StubIndex.processElements(StubIndex.java:65)
at com.intellij.psi.stubs.StubIndex.get(StubIndex.java:55)
at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:39)
at com.illuminatedcloud.intellij.index.AbstractApexDeclarationStubIndex.get(SourceFile:30)
at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.fastFindTypeDeclaration(SourceFile:227)
at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.findTypeDeclaration(SourceFile:102)
at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.findTypeDeclaration(SourceFile:78)
at com.illuminatedcloud.intellij.psi.impl.ApexTypeMixin.lambda$getExpressionType$0(SourceFile:125)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:148)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:72)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129)
at com.illuminatedcloud.intellij.psi.impl.ApexTypeMixin.getExpressionType(SourceFile:85)
at com.illuminatedcloud.intellij.psi.impl.ApexFormalParameterMixin.doGetExpressionType(SourceFile:76)
at com.illuminatedcloud.intellij.psi.impl.ApexDeclarationMixin.lambda$getExpressionType$1(SourceFile:135)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:148)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:72)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129)
at com.illuminatedcloud.intellij.psi.impl.ApexDeclarationMixin.getExpressionType(SourceFile:134)
at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.getSignature(SourceFile:58)
at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.lambda$getUniqueFullName$0(SourceFile:84)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:148)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:72)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129)
at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.getUniqueFullName(SourceFile:81)
at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.map(SourceFile:120)
at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.map(SourceFile:41)
at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:264)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.calculateUpdateData(VfsAwareMapReduceIndex.java:83)
at com.intellij.util.indexing.impl.MapReduceIndex.update(MapReduceIndex.java:212)
at com.intellij.util.indexing.FileBasedIndexImpl.lambda$indexUnsavedDocument$21(FileBasedIndexImpl.java:1374)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:522)
at com.intellij.util.indexing.FileBasedIndexImpl.indexUnsavedDocument(FileBasedIndexImpl.java:1347)
at com.intellij.util.indexing.FileBasedIndexImpl.access$3600(FileBasedIndexImpl.java:102)
at com.intellij.util.indexing.FileBasedIndexImpl$DocumentUpdateTask.doProcess(FileBasedIndexImpl.java:2346)
at com.intellij.util.indexing.FileBasedIndexImpl$DocumentUpdateTask.doProcess(FileBasedIndexImpl.java:2337)
at com.intellij.util.indexing.UpdateTask.process(UpdateTask.java:76)
at com.intellij.util.indexing.UpdateTask.processAll(UpdateTask.java:46)
at com.intellij.util.indexing.FileBasedIndexImpl.lambda$indexUnsavedDocuments$20(FileBasedIndexImpl.java:1255)
at com.intellij.util.indexing.FileBasedIndexImpl.runUpdate(FileBasedIndexImpl.java:1423)
at com.intellij.util.indexing.FileBasedIndexImpl.indexUnsavedDocuments(FileBasedIndexImpl.java:1255)
at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:744)
at com.intellij.util.indexing.FileBasedIndexImpl.processExceptions(FileBasedIndexImpl.java:899)
at com.intellij.util.indexing.FileBasedIndexImpl.processValueIterator(FileBasedIndexImpl.java:975)
at com.intellij.util.indexing.FileBasedIndexImpl.processValuesInScope(FileBasedIndexImpl.java:946)
at com.intellij.util.indexing.FileBasedIndexImpl.getValues(FileBasedIndexImpl.java:807)
at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.lambda$getDerivedDeclarations$1(SourceFile:169)
at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116)
at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:71)
at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.getDerivedDeclarations(SourceFile:160)
at com.illuminatedcloud.intellij.index.ApexDerivedInvokableDeclarationIndex.getDerivedDeclarations(SourceFile:42)
at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.getDerivedDeclarations(SourceFile:194)
at com.illuminatedcloud.intellij.editor.ApexLineMarkerProvider.collectNavigationMarkers(SourceFile:225)
at com.illuminatedcloud.intellij.editor.ApexLineMarkerProvider.collectNavigationMarkers(SourceFile:77)
at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectNavigationMarkers(RelatedItemLineMarkerProvider.java:48)
at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectSlowLineMarkers(RelatedItemLineMarkerProvider.java:40)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:194)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3(LineMarkersPass.java:104)
at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:79)
at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:91)
at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:430)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:423)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:422)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:398)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218)
at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:396)
at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:174)
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)
Comments (8)
-
reporter -
repo owner That certainly looks pretty definitively in IC's area of responsibility. At the risk of using the hammer, if you rebuild caches and indices, does that problem go away? A
PsiInvalidElementAccessException
is generally due to a stale cached PSI element, though I don't know if this error is cause or effect. If it continues to happen after rebuilding caches and indices, that would certainly seem to indicate that it's a cause contributor. Please let me know either way. -
reporter Great - I’ll give that a shot and let you know my findings this time next week.
Have been experiencing it every day, but that should be a good timeline to tell.
-
reporter Hi Scott.
Happened again today after rebuilding cache last week (assuming you meant File > Invalidate Caches / Restart).
2019-05-22 11:08:28,085 [7117517] ERROR - j.psi.stubs.StubTreeLoaderImpl - Outdated stub in index: file://C:/Users/Luke/sfdx/legacy/engage-v2/force-app/main/default/classes/RequestLogProcessor.cls indexed at 1558452965587 with document size 14466, doc=DocumentImpl[file://C:/Users/Luke/sfdx/legacy/engage-v2/force-app/main/default/classes/RequestLogProcessor.cls], docSaved=false, wasIndexedAlready=true, queried at 1558452965587 indexed lengths={chars=14466, bytes=14946} doc length=14467 file length=14946 cached PSI class com.illuminatedcloud.intellij.filetype.ApexClassFile PSI length=14467 projects with file: 1 java.lang.Exception at com.intellij.psi.stubs.StubTreeLoaderImpl.diagnoseLengthMismatch(StubTreeLoaderImpl.java:180) at com.intellij.psi.stubs.StubTreeLoaderImpl.checkLengthMatch(StubTreeLoaderImpl.java:150) at com.intellij.psi.stubs.StubTreeLoaderImpl.readFromVFile(StubTreeLoaderImpl.java:118) at com.intellij.psi.stubs.StubTreeLoader.stubTreeAndIndexDoNotMatch(StubTreeLoader.java:72) at com.intellij.psi.stubs.StubProcessingHelperBase.inconsistencyDetected(StubProcessingHelperBase.java:147) at com.intellij.psi.stubs.StubProcessingHelperBase.checkType(StubProcessingHelperBase.java:89) at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:68) at com.intellij.psi.stubs.StubIndexImpl$2.process(StubIndexImpl.java:290) at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:602) at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:590) at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:62) at com.intellij.psi.stubs.StubIndexImpl.lambda$null$0(StubIndexImpl.java:314) at com.intellij.util.ConcurrencyUtil.withLock(ConcurrencyUtil.java:245) at com.intellij.psi.stubs.StubIndexImpl.lambda$null$1(StubIndexImpl.java:312) at com.intellij.util.indexing.FileBasedIndexImpl.disableUpToDateCheckIn(FileBasedIndexImpl.java:671) at com.intellij.psi.stubs.StubIndexImpl.lambda$doProcessStubs$2(StubIndexImpl.java:311) at com.intellij.util.indexing.IndexAccessValidator.validate(IndexAccessValidator.java:43) at com.intellij.psi.stubs.StubIndexImpl.doProcessStubs(StubIndexImpl.java:309) at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:281) at com.intellij.psi.stubs.StubIndex.processElements(StubIndex.java:65) at com.intellij.psi.stubs.StubIndex.get(StubIndex.java:55) at com.intellij.psi.stubs.AbstractStubIndex.get(AbstractStubIndex.java:39) at com.illuminatedcloud.intellij.index.AbstractApexDeclarationStubIndex.get(SourceFile:30) at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.fastFindTypeDeclaration(SourceFile:227) at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.findTypeDeclaration(SourceFile:102) at com.illuminatedcloud.intellij.psi.util.ApexDeclarationUtil.findTypeDeclaration(SourceFile:78) at com.illuminatedcloud.intellij.psi.impl.ApexTypeMixin.lambda$getExpressionType$0(SourceFile:125) at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:148) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236) at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38) at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:72) at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129) at com.illuminatedcloud.intellij.psi.impl.ApexTypeMixin.getExpressionType(SourceFile:85) at com.illuminatedcloud.intellij.psi.impl.ApexMethodDeclarationMixin.doGetExpressionType(SourceFile:78) at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.getSignature(SourceFile:67) at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.lambda$getUniqueFullName$0(SourceFile:84) at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:148) at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49) at com.intellij.util.CachedValueBase.lambda$getValueWithLock$0(CachedValueBase.java:236) at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116) at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:237) at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38) at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:72) at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147) at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129) at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.getUniqueFullName(SourceFile:81) at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.map(SourceFile:120) at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.map(SourceFile:41) at com.intellij.util.indexing.impl.MapReduceIndex.mapInput(MapReduceIndex.java:264) at com.intellij.util.indexing.VfsAwareMapReduceIndex.calculateUpdateData(VfsAwareMapReduceIndex.java:83) at com.intellij.util.indexing.impl.MapReduceIndex.update(MapReduceIndex.java:212) at com.intellij.util.indexing.FileBasedIndexImpl.lambda$indexUnsavedDocument$21(FileBasedIndexImpl.java:1374) at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:522) at com.intellij.util.indexing.FileBasedIndexImpl.indexUnsavedDocument(FileBasedIndexImpl.java:1347) at com.intellij.util.indexing.FileBasedIndexImpl.access$3600(FileBasedIndexImpl.java:102) at com.intellij.util.indexing.FileBasedIndexImpl$DocumentUpdateTask.doProcess(FileBasedIndexImpl.java:2346) at com.intellij.util.indexing.FileBasedIndexImpl$DocumentUpdateTask.doProcess(FileBasedIndexImpl.java:2337) at com.intellij.util.indexing.UpdateTask.process(UpdateTask.java:76) at com.intellij.util.indexing.UpdateTask.processAll(UpdateTask.java:46) at com.intellij.util.indexing.FileBasedIndexImpl.lambda$indexUnsavedDocuments$20(FileBasedIndexImpl.java:1255) at com.intellij.util.indexing.FileBasedIndexImpl.runUpdate(FileBasedIndexImpl.java:1423) at com.intellij.util.indexing.FileBasedIndexImpl.indexUnsavedDocuments(FileBasedIndexImpl.java:1255) at com.intellij.util.indexing.FileBasedIndexImpl.ensureUpToDate(FileBasedIndexImpl.java:744) at com.intellij.util.indexing.FileBasedIndexImpl.processExceptions(FileBasedIndexImpl.java:899) at com.intellij.util.indexing.FileBasedIndexImpl.processValueIterator(FileBasedIndexImpl.java:975) at com.intellij.util.indexing.FileBasedIndexImpl.processValuesInScope(FileBasedIndexImpl.java:946) at com.intellij.util.indexing.FileBasedIndexImpl.getValues(FileBasedIndexImpl.java:807) at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.lambda$getDerivedDeclarations$1(SourceFile:169) at com.intellij.openapi.util.RecursionManager$1.doPreventingRecursion(RecursionManager.java:116) at com.intellij.openapi.util.RecursionManager.doPreventingRecursion(RecursionManager.java:71) at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.getDerivedDeclarations(SourceFile:160) at com.illuminatedcloud.intellij.index.ApexDerivedInvokableDeclarationIndex.getDerivedDeclarations(SourceFile:42) at com.illuminatedcloud.intellij.psi.impl.ApexInvokableDeclarationMixin.getDerivedDeclarations(SourceFile:194) at com.illuminatedcloud.intellij.editor.ApexLineMarkerProvider.collectNavigationMarkers(SourceFile:225) at com.illuminatedcloud.intellij.editor.ApexLineMarkerProvider.collectNavigationMarkers(SourceFile:77) at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectNavigationMarkers(RelatedItemLineMarkerProvider.java:48) at com.intellij.codeInsight.daemon.RelatedItemLineMarkerProvider.collectSlowLineMarkers(RelatedItemLineMarkerProvider.java:40) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.queryProviders(LineMarkersPass.java:194) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.lambda$doCollectInformation$3(LineMarkersPass.java:96) at com.intellij.codeInsight.daemon.impl.Divider.divideInsideAndOutsideInOneRoot(Divider.java:79) at com.intellij.codeInsight.daemon.impl.LineMarkersPass.doCollectInformation(LineMarkersPass.java:91) at com.intellij.codeHighlighting.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:69) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$null$1(PassExecutorService.java:430) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1166) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$doRun$2(PassExecutorService.java:423) at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:586) at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:532) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:86) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.doRun(PassExecutorService.java:422) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.lambda$run$0(PassExecutorService.java:398) at com.intellij.openapi.application.impl.ReadMostlyRWLock.executeByImpatientReader(ReadMostlyRWLock.java:164) at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:218) at com.intellij.codeInsight.daemon.impl.PassExecutorService$ScheduledPass.run(PassExecutorService.java:396) at com.intellij.concurrency.JobLauncherImpl$VoidForkJoinTask$1.exec(JobLauncherImpl.java:174) 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) 2019-05-22 11:08:28,100 [7117532] ERROR - j.psi.stubs.StubTreeLoaderImpl - IntelliJ IDEA 2019.1.2 Build #IU-191.7141.44 2019-05-22 11:08:28,100 [7117532] ERROR - j.psi.stubs.StubTreeLoaderImpl - JDK: 1.8.0_202-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 2019-05-22 11:08:28,100 [7117532] ERROR - j.psi.stubs.StubTreeLoaderImpl - OS: Windows 10 2019-05-22 11:08:28,118 [7117550] ERROR - j.psi.stubs.StubTreeLoaderImpl - Plugin to blame: Illuminated Cloud 2 version: 2.0.6.0 2019-05-22 11:08:28,118 [7117550] ERROR - j.psi.stubs.StubTreeLoaderImpl - Last Action: EditorEnter 2019-05-22 11:08:28,748 [7118180] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/addons_list-3.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/repository2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android/sys-img2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/google_apis_playstore/sys-img2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/extras/intel/addon2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/glass/addon2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/addon2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android-tv/sys-img2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android-wear-cn/sys-img2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android-wear/sys-img2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/google_apis/sys-img2-1.xml 2019-05-22 11:08:28,868 [7118300] INFO - dea.updater.SdkComponentSource - Downloading https://dl.google.com/android/repository/sys-img/android-automotive/sys-img2-1.xml 2019-05-22 11:08:53,768 [7143200] WARN - pl.local.NativeFileWatcherImpl - Watcher terminated with exit code 1 2019-05-22 11:08:53,768 [7143200] INFO - pl.local.NativeFileWatcherImpl - Starting file watcher: C:\Program Files\JetBrains\IntelliJ IDEA 2018.3\bin\fsnotifier64.exe
-
repo owner Luke, can you please update to the latest build and let me know if this is still happening? I implemented a fix for what I believe(/hope) is the same issue recently. If you do still see it, please let me know.
-
reporter Do you know what version you implemented the fix for? I’m currently on 2.0.6.5 (done a check for updates and see nothing at the moment) and I experienced the same thing yesterday although it wasn’t necessarily a comment that caused the crash. It tends to happen at any stage during coding.
-
repo owner Yep, it was 2.0.6.5, so if you're still seeing the issue then the fix I implemented didn't take care of this. Do you mind attaching logs from the newer version of the plugin associated with this issue so I can work off of those just in case line numbers have shifted since the original stack trace?
-
repo owner - changed status to resolved
Issue tracker grooming. If this is still an issue, please feel free to reopen, ideally with a concrete reproduction scenario.
- Log in to comment
There have been a number of times the IDE crashes and I have to reload IntelliJ when starting to write comments in Apex. I’m not sure if IntelliJ or IC is at fault.