Intellij 2017.1.3 Updating indices goes / loops on forever

Answered

Hi there,

My first post here in the hope to find someone who can at least point me into the right direction. Hopefully this is not a why haven't you read the manual post, cause I've been searching for a while now.

I've been using Intellij community edition for about a half a year on Mac OX Sierra and Debian Linux version 8.7

On my personal Macbook, Intellij runs just nicely and I almost never encounter problems. Based on my great experince I decided it was time to switch from Netbeans to Intellij on my work as well.  This is where the trouble starts. In previous releases of Intellij 2016.2, 2016.3 and till 2017.1.2 I had problems with the updating indices, it often worked and completed on my Debian machine but sometimes it just appread to crash. It's not hanging, it just keeps on performing the same loop over and over again. Because it runs forever, I can't or at least I don't know how to send an error dump from Intellij when it appears to take to long. I believe this process should not take more then an hour, right?

With the new release 2017.1.3 it has become a nightmare. The process runs forever, it appears to loop and loop and loop... Well you get the picture. The Intellij log file is stacked with end of file exceptions and the process never finishes, even if it runs for more then an hour on a solid state disk.

I think there must be some kind of mismatch between my Debian setup and Intellij but I can't find the problem, so I turn to you for aid. Let me provide you with some information about my system.

I'm running Intellij version:

IntelliJ IDEA 2017.1.3
Build #IC-171.4424.56, built on May 12, 2017
JRE: 1.8.0_112-release-736-b21 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 3.16.0-4-amd64

On:

Intel I7 system with 16Gb RAM. The system and Intellij are both installed on a Samsung SSD 850. I have a secondary HDD:  TOSHIBA DT01ACA100, MS2OA750, max UDMA/133 of 1Tb.

Debian version and Linux kernel version:

Linux NWS26 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1+deb8u2 (2017-03-07) x86_64 GNU/Linux

Distributor ID: Debian
Description:    Debian GNU/Linux 8.7 (jessie)
Release:        8.7
Codename:       jessie

Disk partitioning:
EXT4 partitions on top of the logical volumes.

Stack trace from the Intellij logfile:

2017-05-19 09:30:20,274 [1912296]   INFO - il.indexing.FileBasedIndexImpl - scheduleIndexRebuild, reason: checkRebuild
2017-05-19 09:30:20,998 [1913020]   INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 967ms; general responsiveness: ok; EDT responsiveness: ok
2017-05-19 09:30:21,004 [1913026]   INFO - .diagnostic.PerformanceWatcher - Pushing properties took 6ms; general responsiveness: ok; EDT responsiveness: ok
2017-05-19 09:30:21,193 [1913215]   INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index FilenameIndex
java.lang.RuntimeException: java.io.EOFException
        at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection.handleError(FSRecords.java:535)
        at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection.access$000(FSRecords.java:162)
        at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.readAttributeWithLock(FSRecords.java:1390)
        at com.intellij.util.indexing.IndexingStamp.createOrGetTimeStamp(IndexingStamp.java:330)
        at com.intellij.util.indexing.IndexingStamp.update(IndexingStamp.java:347)
        at com.intellij.util.indexing.IndexingStamp.setFileIndexedStateCurrent(IndexingStamp.java:170)
        at com.intellij.util.indexing.VfsAwareMapReduceIndex.setIndexedStateForFile(VfsAwareMapReduceIndex.java:136)
        at com.intellij.util.indexing.FileBasedIndexImpl.indexedStampUpdate(FileBasedIndexImpl.java:1646)
        at com.intellij.util.indexing.FileBasedIndexImpl.scheduleUpdate(FileBasedIndexImpl.java:1635)
        at com.intellij.util.indexing.FileBasedIndexImpl.updateSingleIndex(FileBasedIndexImpl.java:1585)
        at com.intellij.util.indexing.FileBasedIndexImpl.access$3100(FileBasedIndexImpl.java:111)
        at com.intellij.util.indexing.FileBasedIndexImpl$UnindexedFilesFinder.lambda$processFile$0(FileBasedIndexImpl.java:2067)
        at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:516)
        at com.intellij.util.indexing.FileBasedIndexImpl$UnindexedFilesFinder.processFile(FileBasedIndexImpl.java:2031)
        at com.intellij.util.indexing.FileBasedIndex$1.visitFile(FileBasedIndex.java:172)
        at com.intellij.openapi.vfs.VirtualFileVisitor.visitFileEx(VirtualFileVisitor.java:132)
        at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:272)
        at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
        at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
        at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
        at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
        at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
        at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
        at com.intellij.util.indexing.FileBasedIndex.iterateRecursively(FileBasedIndex.java:161)
        at com.intellij.util.indexing.FileBasedIndexScanRunnableCollectorImpl.lambda$collectScanRootRunnables$2(FileBasedIndexScanRunnableCollectorImpl.java:115)
        at com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl.lambda$null$5(PushedFilePropertiesUpdaterImpl.java:315)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:176)
        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:556)
        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:501)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:66)
        at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:163)
        at com.intellij.openapi.roots.impl.PushedFilePropertiesUpdaterImpl.lambda$invokeConcurrentlyIfPossible$6(PushedFilePropertiesUpdaterImpl.java:313)
        at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:334)
        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:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.EOFException
        at java.io.DataInputStream.readUnsignedByte(DataInputStream.java:290)
        at com.intellij.openapi.util.io.DataInputOutputUtilRt.readINT(DataInputOutputUtilRt.java:31)
        at com.intellij.util.io.DataInputOutputUtil.readINT(DataInputOutputUtil.java:38)
        at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.readAttribute(FSRecords.java:1413)
        at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.readAttributeWithLock(FSRecords.java:1369)
        ... 35 more

This is a repeating process.

What I've done to try and solve this issue:
1. Disable / remove all plugins (I've done this on previous versions of Intellij). Didn't solve the issue, but it appeared rarely so I could deal with it.
2. Move the Intellij's config and system files from the SSD to the HDD in version 2017.1.3. Didn't solve the issue
3. Run Linux equivalent of checkdisk on both SSD and HDD. Found no errors.
4. Tried other non default Java versions: Oracle's java 8.102 and OpenJdk 8, Latest version. Didn't fix the issue.
5. Increased Intellij's available memory from 1024Mb to 4096Mb. Didn't help either
6. Invalidate cache and restart. Well more then I can remember with no result.

I sincerely hope someone can point me into the right direction because I would hate to switch back to Netbeans. If you have any questions please do ask and I shall try to provide you with any information I can deliver.

2
11 comments

Please file a report at https://youtrack.jetbrains.com/issues/IDEA and attach all the logs (zip the entire logs directory): https://intellij-support.jetbrains.com/hc/articles/206544519.

For the fragment above the problem is not clear.

0
Avatar
Permanently deleted user

Thank you for the response. I'll file a report.

0

I'm seeing this, too, after cloning then opening https://github.com/SciSpike/artillery-core.  Might be a good reproducible test.

Looping starts after opening any .js file in the lib directory.

0
Avatar
Permanently deleted user

I am seeing the same issue.

0

It may be not the same, please report with the logs at https://youtrack.jetbrains.com/issues/IDEA.

0

Same issue, no need to log again.

0

No log an no bug report submitted at https://youtrack.jetbrains.com/issues/IDEA means no fix.

0
Avatar
Permanently deleted user

Have been experiencing this issue with IntelliJ Ultimate 2017.3 on MacOS. Clearing the cache as described here: https://www.jetbrains.com/help/idea/2016.2/cleaning-system-cache.html resolved my issue.

4
Avatar
Permanently deleted user

I had the same on .vue files only it seems.

 The solution presented above fixed it for me , clear caching. 

 

1
Avatar
Permanently deleted user

Happened to me too. Clearing the caches eliminated the issue. For me it happened as soon as a certain line of Java code was present in a .java file.
Commenting that line out stopped the loop too.

For what it's worth, that was the log output that I got over and over in this case:

2018-02-23 08:25:45,325 [3207186] ERROR - stubs.StubProcessingHelperBase - IntelliJ IDEA 2017.3.4 Build #IC-173.4548.28
2018-02-23 08:25:45,326 [3207187] ERROR - stubs.StubProcessingHelperBase - JDK: 1.8.0_152-release
2018-02-23 08:25:45,326 [3207187] ERROR - stubs.StubProcessingHelperBase - VM: OpenJDK 64-Bit Server VM
2018-02-23 08:25:45,326 [3207187] ERROR - stubs.StubProcessingHelperBase - Vendor: JetBrains s.r.o
2018-02-23 08:25:45,326 [3207187] ERROR - stubs.StubProcessingHelperBase - OS: Linux
2018-02-23 08:25:45,326 [3207187] ERROR - stubs.StubProcessingHelperBase - Last Action: SaveAll
2018-02-23 08:25:45,330 [3207191] INFO - g.FileBasedIndexProjectHandler - Reindexing refreshed files: 43 to update, calculated in 0ms
2018-02-23 08:25:45,390 [3207251] INFO - .diagnostic.PerformanceWatcher - Reindexing refreshed files took 60ms; general responsiveness: ok; EDT responsiveness: ok
2018-02-23 08:25:45,719 [3207580] ERROR - stubs.StubProcessingHelperBase - Stub index points to a file without PSI: com.intellij.openapi.fileTypes.UnknownFileType@7a9ea421
java.lang.Throwable: Stub index points to a file without PSI: com.intellij.openapi.fileTypes.UnknownFileType@7a9ea421
at com.intellij.openapi.diagnostic.Logger.error(Logger.java:136)
at com.intellij.psi.stubs.StubProcessingHelperBase.processStubsInFile(StubProcessingHelperBase.java:47)
at com.intellij.psi.stubs.StubIndexImpl$2.process(StubIndexImpl.java:327)
at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:618)
at com.intellij.psi.stubs.StubIndexImpl$StubIdListContainerAction.perform(StubIndexImpl.java:606)
at com.intellij.util.indexing.ValueContainer.forEach(ValueContainer.java:62)
at com.intellij.psi.stubs.StubIndexImpl.doProcessStubs(StubIndexImpl.java:356)
at com.intellij.psi.stubs.StubIndexImpl.processElements(StubIndexImpl.java:319)
at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:145)
at com.intellij.psi.stubs.StubIndex.getElements(StubIndex.java:134)
at com.intellij.psi.impl.java.stubs.index.JavaFullClassNameIndex.get(JavaFullClassNameIndex.java:47)
at com.intellij.psi.impl.file.impl.JavaFileManagerImpl.doFindClasses(JavaFileManagerImpl.java:96)
at com.intellij.psi.impl.file.impl.JavaFileManagerImpl.findClasses(JavaFileManagerImpl.java:83)
at com.intellij.psi.impl.PsiElementFinderImpl.findClasses(PsiElementFinderImpl.java:60)
at com.intellij.psi.impl.JavaPsiFacadeImpl.findClassesWithoutJvmFacade(JavaPsiFacadeImpl.java:209)
at com.intellij.psi.impl.JavaPsiFacadeImpl.findClassesWithJvmFacade(JavaPsiFacadeImpl.java:180)
at com.intellij.psi.impl.JavaPsiFacadeImpl.findClasses(JavaPsiFacadeImpl.java:172)
at com.intellij.psi.impl.file.PsiPackageImpl.getCachedClassesByName(PsiPackageImpl.java:213)
at com.intellij.psi.impl.file.PsiPackageImpl.findClassByShortName(PsiPackageImpl.java:275)
at com.intellij.psi.impl.file.PsiPackageImpl.processDeclarations(PsiPackageImpl.java:309)
at com.intellij.psi.scope.util.PsiScopesUtil.resolveAndWalk(PsiScopesUtil.java:213)
at com.intellij.psi.scope.util.PsiScopesUtil.resolveAndWalk(PsiScopesUtil.java:149)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.resolve(PsiJavaCodeReferenceElementImpl.java:496)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.access$100(PsiJavaCodeReferenceElementImpl.java:61)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:387)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl$OurGenericsResolver.resolve(PsiJavaCodeReferenceElementImpl.java:379)
at com.intellij.psi.impl.source.resolve.ResolveCache.lambda$resolveWithCaching$1(ResolveCache.java:197)
at com.intellij.openapi.util.RecursionManager$2.doPreventingRecursion(RecursionManager.java:112)
at com.intellij.psi.impl.source.resolve.ResolveCache.resolveWithCaching(ResolveCache.java:196)
at com.intellij.psi.impl.PsiImplUtil.multiResolveImpl(PsiImplUtil.java:724)
at com.intellij.psi.impl.PsiImplUtil.multiResolveImpl(PsiImplUtil.java:715)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.multiResolve(PsiJavaCodeReferenceElementImpl.java:424)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.advancedResolve(PsiJavaCodeReferenceElementImpl.java:417)
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.resolve(PsiJavaCodeReferenceElementImpl.java:363)
at com.intellij.psi.impl.source.PsiClassReferenceType.rawType(PsiClassReferenceType.java:199)
at com.intellij.codeInspection.dataFlow.value.DfaValueFactory.createTypeValue(DfaValueFactory.java:83)
at com.intellij.codeInspection.dataFlow.value.DfaVariableValue.<init>(DfaVariableValue.java:91)
at com.intellij.codeInspection.dataFlow.value.DfaVariableValue.<init>(DfaVariableValue.java:33)
at com.intellij.codeInspection.dataFlow.value.DfaVariableValue$Factory.createVariableValue(DfaVariableValue.java:61)
at com.intellij.codeInspection.dataFlow.value.DfaVariableValue$Factory.createVariableValue(DfaVariableValue.java:49)
at com.intellij.codeInspection.dataFlow.DfaPsiUtil$1$1.acceptInstruction(DfaPsiUtil.java:364)
at com.intellij.codeInspection.dataFlow.DataFlowRunner.analyzeMethod(DataFlowRunner.java:185)
at com.intellij.codeInspection.dataFlow.DataFlowRunner.analyzeMethod(DataFlowRunner.java:95)
at com.intellij.codeInspection.dataFlow.DfaPsiUtil$1.compute(DfaPsiUtil.java:375)
at com.intellij.psi.util.CachedValuesManager.lambda$getCachedValue$0(CachedValuesManager.java:140)
at com.intellij.psi.impl.PsiCachedValueImpl.doCompute(PsiCachedValueImpl.java:49)
at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:222)
at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:87)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:139)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:126)
at com.intellij.codeInspection.dataFlow.DfaPsiUtil.getNotNullInitializedFields(DfaPsiUtil.java:312)
at com.intellij.codeInspection.dataFlow.DfaPsiUtil.isInitializedNotNull(DfaPsiUtil.java:299)
at com.intellij.codeInspection.dataFlow.NullnessUtil.getNullabilityFromFieldInitializers(NullnessUtil.java:83)
at com.intellij.codeInspection.dataFlow.NullnessUtil.calcCanBeNull(NullnessUtil.java:59)
at com.intellij.codeInspection.dataFlow.DfaFactType$1.calcFromVariable(DfaFactType.java:65)
at com.intellij.codeInspection.dataFlow.DfaFactType$1.calcFromVariable(DfaFactType.java:41)
at com.intellij.codeInspection.dataFlow.DfaFactMap.updateMap(DfaFactMap.java:169)
at com.intellij.codeInspection.dataFlow.DfaFactMap.lambda$calcFromVariable$2(DfaFactMap.java:165)
at one.util.streamex.AbstractStreamEx.lambda$foldLeft$136(AbstractStreamEx.java:1271)
at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1376)
at one.util.streamex.AbstractStreamEx.forEachOrdered(AbstractStreamEx.java:294)
at one.util.streamex.AbstractStreamEx.foldLeft(AbstractStreamEx.java:1271)
at com.intellij.codeInspection.dataFlow.DfaFactMap.calcFromVariable(DfaFactMap.java:165)
at com.intellij.codeInspection.dataFlow.value.DfaVariableValue.getInherentFacts(DfaVariableValue.java:149)
at com.intellij.codeInspection.dataFlow.DfaVariableState.<init>(DfaVariableState.java:34)
at com.intellij.codeInspection.dataFlow.DfaMemoryStateImpl.createVariableState(DfaMemoryStateImpl.java:1200)
at com.intellij.codeInspection.dataFlow.DfaMemoryStateImpl.getVariableState(DfaMemoryStateImpl.java:1176)
at com.intellij.codeInspection.dataFlow.DfaMemoryStateImpl.isNotNull(DfaMemoryStateImpl.java:656)
at com.intellij.codeInspection.dataFlow.DfaMemoryStateImpl.checkNotNullable(DfaMemoryStateImpl.java:1084)
at com.intellij.codeInspection.dataFlow.StandardInstructionVisitor.checkNotNullable(StandardInstructionVisitor.java:584)
at com.intellij.codeInspection.dataFlow.DataFlowInspectionBase$DataFlowInstructionVisitor.checkNotNullable(DataFlowInspectionBase.java:1075)
at com.intellij.codeInspection.dataFlow.StandardInstructionVisitor.visitFieldReference(StandardInstructionVisitor.java:147)
at com.intellij.codeInspection.dataFlow.instructions.FieldReferenceInstruction.accept(FieldReferenceInstruction.java:43)
at com.intellij.codeInspection.dataFlow.DataFlowRunner.acceptInstruction(DataFlowRunner.java:299)
at com.intellij.codeInspection.dataFlow.DataFlowRunner.analyzeMethod(DataFlowRunner.java:185)
at com.intellij.codeInspection.dataFlow.DataFlowInspectionBase.analyzeDfaWithNestedClosures(DataFlowInspectionBase.java:187)
at com.intellij.codeInspection.dataFlow.DataFlowInspectionBase.analyzeCodeBlock(DataFlowInspectionBase.java:179)
at com.intellij.codeInspection.dataFlow.DataFlowInspectionBase.access$000(DataFlowInspectionBase.java:50)
at com.intellij.codeInspection.dataFlow.DataFlowInspectionBase$1.visitMethod(DataFlowInspectionBase.java:103)
at com.intellij.psi.impl.source.PsiMethodImpl.accept(PsiMethodImpl.java:290)
at com.intellij.codeInspection.InspectionEngine.acceptElements(InspectionEngine.java:82)
at com.intellij.codeInspection.InspectionEngine.createVisitorAndAcceptElements(InspectionEngine.java:70)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.runToolOnElements(LocalInspectionsPass.java:286)
at com.intellij.codeInsight.daemon.impl.LocalInspectionsPass.lambda$visitPriorityElementsAndInit$3(LocalInspectionsPass.java:254)
at com.intellij.concurrency.ApplierCompleter.execAndForkSubTasks(ApplierCompleter.java:133)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1127)
at com.intellij.concurrency.ApplierCompleter.lambda$wrapInReadActionAndIndicator$1(ApplierCompleter.java:105)
at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:543)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:488)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
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:143)
at com.intellij.openapi.application.impl.ApplicationImpl.executeByImpatientReader(ApplicationImpl.java:229)
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.runTask(ForkJoinPool.java:1056)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157)

0

Please follow the related issue on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-181227

0

Please sign in to leave a comment.