- attached Card.cls
Webstorm Freezing when adding comments to Class.
I have a Card class that I’m adding comments to the fields using /** */ syntax and it’s causing Webstorm to freeze and the only way for it to work is to kill the process manually.
excerpt from the log:
019-06-17 14:27:17,687 [ 308449] WARN - uilder.AsYouTypeEventProcessor - Failed to find a module for file '/Card.cls'.
2019-06-17 14:27:17,803 [ 308565] WARN - uilder.AsYouTypeEventProcessor - Failed to find a module for file '/Card.cls'.
2019-06-17 14:27:21,947 [ 312709] ERROR - j.psi.stubs.StubTreeLoaderImpl - Outdated stub in index: file:///home/jjulicher/WebstormProjects/Cortex-GitFlow/classes/Card.cls indexed at 1560741753899 with document size 3424, doc=DocumentImpl[file:///home/jjulicher/WebstormProjects/Cortex-GitFlow/classes/Card.cls], docSaved=false, wasIndexedAlready=true, queried at 1560741753899
indexed lengths={chars=3422, bytes=3261}
doc length=3424
file length=3261
cached PSI class com.illuminatedcloud.intellij.filetype.ApexClassFile
PSI length=3424
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)
I’ve attached the full log and class file.
Comments (13)
-
reporter -
reporter When I saw the error in the log I re-index and restarted and it still occurs.
-
reporter - changed title to Webstorm Freezing when adding comments to Class.
-
repo owner Thanks for providing the class that reproduces this for you, Justin. I was able to reproduce this behavior after a few tries. Let me see what's going on and I'll try to get a fix out ASAP.
-
repo owner Okay, I have a prospective fix for this deadlock that will be in the next build (shooting for tomorrow morning).
-
reporter Great thanks @Scott Wells !
-
repo owner - changed status to resolved
I'm hoping that the changes made in 1.8.5.1/2.0.6.5 will resolve this. Please let me know if you see it occur again after updating.
-
reporter Hi @Scott Wells
Unfortunately I got a slightly different error this time:
2019-06-24 11:53:06,265 [6334062] ERROR - aemon.impl.PassExecutorService - WebStorm 2019.1.3 Build #WS-191.7479.14 2019-06-24 11:53:06,272 [6334069] ERROR - aemon.impl.PassExecutorService - JDK: 1.8.0_202-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 2019-06-24 11:53:06,272 [6334069] ERROR - aemon.impl.PassExecutorService - OS: Linux 2019-06-24 11:53:06,272 [6334069] ERROR - aemon.impl.PassExecutorService - Plugin to blame: Illuminated Cloud 2 version: 2.0.6.4 2019-06-24 11:53:06,272 [6334069] ERROR - aemon.impl.PassExecutorService - Element class com.intellij.psi.impl.source.tree.CompositeElement of type FORMAL_PARAMETER (class com.illuminatedcloud.intellij.psi.stub.ApexFormalParameterElementType) com.intellij.psi.PsiInvalidElementAccessException: Element class com.intellij.psi.impl.source.tree.CompositeElement of type FORMAL_PARAMETER (class com.illuminatedcloud.intellij.psi.stub.ApexFormalParameterElementType) 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.extapi.psi.StubBasedPsiElementBase.getProject(StubBasedPsiElementBase.java:291) 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.inspection.ApexIllegalAssignmentInspection$ApexIllegalAssignmentInspectionVisitor.checkInvocationArgument(SourceFile:537) at com.illuminatedcloud.intellij.inspection.ApexIllegalAssignmentInspection$ApexIllegalAssignmentInspectionVisitor.visitElement(SourceFile:215) at com.intellij.psi.impl.PsiElementBase.accept(PsiElementBase.java:274) at com.illuminatedcloud.intellij.psi.impl.ApexArgumentImpl.accept(SourceFile:26) at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:75) at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:63) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:295) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$null$5(LocalInspectionsPass.java:263) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:156) at com.intellij.util.AstLoadingFilter.forceAllowTreeLoading(AstLoadingFilter.java:148) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$null$6(LocalInspectionsPass.java:260) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:127) at com.intellij.util.AstLoadingFilter.disallowTreeLoading(AstLoadingFilter.java:116) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$7(LocalInspectionsPass.java:260) at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:133) at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1161) at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105) 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.concurrency.ApplierCompleter.wrapInReadActionAndIndicator(ApplierCompleter.java:116) at com.intellij.concurrency.ApplierCompleter.lambda$compute$0(ApplierCompleter.java:96) 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.concurrency.ApplierCompleter.compute(ApplierCompleter.java:96) at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731) at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) at java.util.concurrent.ForkJoinPool$WorkQueue.pollAndExecCC(ForkJoinPool.java:1190) at java.util.concurrent.ForkJoinPool.helpComplete(ForkJoinPool.java:1879) at java.util.concurrent.ForkJoinPool.awaitJoin(ForkJoinPool.java:2045) at java.util.concurrent.ForkJoinTask.get(ForkJoinTask.java:1036) at com.intellij.concurrency.JobLauncherImpl.invokeConcurrentlyUnderProgress(JobLauncherImpl.java:71) at com.intellij.concurrency.JobLauncher.invokeConcurrentlyUnderProgress(JobLauncher.java:56) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.visitPriorityElementsAndInit(LocalInspectionsPass.java:266) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.inspect(LocalInspectionsPass.java:198) at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.collectInformationWithProgress(LocalInspectionsPass.java:117) at com.intellij.codeInsight.daemon.impl.ProgressableTextEditorHighlightingPass.doCollectInformation(ProgressableTextEditorHighlightingPass.java:84) 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)
Had to restart again.
-
repo owner Justin, based on that log you're still on 2.0.6.4. Can you update to 2.0.6.5 and rebuild caches and indices, then let me know if the issue occurs again?
-
reporter Ah thanks scott. Thought I had upgraded already mustn't have restarted properly.
-
reporter Hi Scott,
Sorry this time it happened again:
019-06-26 20:50:36,030 [20959561] ERROR - j.psi.stubs.StubTreeLoaderImpl - Outdated stub in index: file:///home/jjulicher/WebstormProjects/Cortex-GitFlow/classes/Card.cls indexed at 1561546203526 with document size 13336, doc=DocumentImpl[file:///home/jjulicher/WebstormProjects/Cortex-GitFlow/classes/Card.cls], docSaved=false, wasIndexedAlready=true, queried at 1561546203526 indexed lengths={chars=13366, bytes=13239} doc length=13336 file length=13239 cached PSI class com.illuminatedcloud.intellij.filetype.ApexClassFile PSI length=13336 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.impl.ApexClassDeclarationMixin.lambda$getBaseClassDeclaration$0(SourceFile:221) 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.ApexClassDeclarationMixin.getBaseClassDeclaration(SourceFile:196) at com.illuminatedcloud.intellij.psi.impl.ApexClassDeclarationMixin.getBaseDeclarations(SourceFile:358) at com.illuminatedcloud.intellij.index.ApexDerivedDeclarationIndex.map(SourceFile:125) 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.ApexDerivedTypeDeclarationIndex.getDerivedDeclarations(SourceFile:42) at com.illuminatedcloud.intellij.psi.impl.ApexTypeDeclarationMixin.getDerivedDeclarations(SourceFile:111) at com.illuminatedcloud.intellij.editor.ApexLineMarkerProvider.collectNavigationMarkers(SourceFile:174) at com.illuminatedcloud.intellij.editor.ApexLineMarkerProvider.collectNavigationMarkers(SourceFile:71) 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) 2019-06-26 20:50:36,030 [20959561] ERROR - j.psi.stubs.StubTreeLoaderImpl - WebStorm 2019.1.3 Build #WS-191.7479.14 2019-06-26 20:50:36,030 [20959561] ERROR - j.psi.stubs.StubTreeLoaderImpl - JDK: 1.8.0_202-release; VM: OpenJDK 64-Bit Server VM; Vendor: JetBrains s.r.o 2019-06-26 20:50:36,030 [20959561] ERROR - j.psi.stubs.StubTreeLoaderImpl - OS: Linux 2019-06-26 20:50:36,031 [20959562] ERROR - j.psi.stubs.StubTreeLoaderImpl - Plugin to blame: Illuminated Cloud 2 version: 2.0.6.5 2019-06-26 20:50:36,031 [20959562] ERROR - j.psi.stubs.StubTreeLoaderImpl - Last Action: EditorDelete
Need any more info?
-
repo owner Justin, is this the same freeze or some other type of error? Is it reproduced in the same manner? Just trying to characterize it so I can try to reproduce it again.
-
reporter Hi Scott,
Sorry I’m unsure - I was editing a file then it froze up - I found this entry in the log file straight away.
My Card class is a whole lot larger now - not sure if that is an issue. This one I haven’t figured out how to reproduce. I’ll update if it happens again.
- Log in to comment
Open in webstorm/intellij
Start adding comments to the Payment fields in Payment, it will freeze after a few attempts.