Intellij 2016 never finishes indexing
As of today, for any IntelliJ project I open, the "Indexing..." progress bar in the status bar gets around 25% done and never completes. The EDT is blocked and the UI is unresponsive. I've waited over 10 minutes and not the UI never wakes up.
One of my CPUs is pegged at 100% usage. These are TypeScript/gulp projects.
I'm not sure if this is a bug; I've recently updated to IntelliJ 2016.2 from 2016.1, I've opened and worked on projects in 2016.2 before (2 days ago, judging from logs). I know nothing has changed as far as the environment, hardware, etc.
The log file <home-dir>/.IntelliJIdea2016.2/system/log/idea.log has the following stack trace in it, but I'm not sure it's related (as there are lines in the log after the stack trace:
2016-07-21 22:27:59,592 [ 18241] INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index IdIndex
java.lang.RuntimeException: java.io.EOFException
at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:449)
at com.intellij.util.indexing.FileBasedIndexImpl.updateSingleIndex(FileBasedIndexImpl.java:1632)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1558)
at com.intellij.openapi.fileTypes.impl.FileTypeManagerImpl.freezeFileTypeTemporarilyIn(FileTypeManagerImpl.java:505)
at com.intellij.util.indexing.FileBasedIndexImpl.a(FileBasedIndexImpl.java:1515)
at com.intellij.util.indexing.FileBasedIndexImpl.indexFileContent(FileBasedIndexImpl.java:1500)
at com.intellij.util.indexing.UnindexedFilesUpdater.a(UnindexedFilesUpdater.java:107)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:219)
at com.intellij.openapi.application.impl.ApplicationImpl.tryRunReadAction(ApplicationImpl.java:1033)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.a(CacheUpdateRunner.java:236)
at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:170)
at com.intellij.openapi.progress.impl.CoreProgressManager.a(CoreProgressManager.java:494)
at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:443)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:155)
at com.intellij.openapi.project.CacheUpdateRunner$MyRunnable.run(CacheUpdateRunner.java:232)
at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:308)
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.readFully(DataInputStream.java:197)
at com.intellij.util.io.PersistentHashMapValueStorage.readBytes(PersistentHashMapValueStorage.java:377)
at com.intellij.util.io.PersistentHashMap.doGet(PersistentHashMap.java:518)
at com.intellij.util.io.PersistentHashMap.get(PersistentHashMap.java:472)
at com.intellij.util.indexing.MapReduceIndex.a(MapReduceIndex.java:612)
at com.intellij.util.indexing.MapReduceIndex.update(MapReduceIndex.java:420)
... 21 more
2016-07-21 22:28:00,393 [ 19042] INFO - il.indexing.FileBasedIndexImpl - scheduleIndexRebuild, reason: checkRebuild
2016-07-21 22:28:21,787 [ 40436] INFO - ols.gulp.GulpTaskListFetchUtil - D:/dev/htmlgames/zelda/zelda-main/gulpfile.js: 14 tasks listed in 24105 ms
There are many, many threadDumps-* files accumulating in .IntelliJIdea2016.2/system/log. It looks like 12 per minute, for as long as I let the UI be frozen. From a cursory look, the thread dump files all appear to have identical content.
Any clues as to where I can look to get IntelliJ happy again?
Please sign in to leave a comment.
Delete plugins and caches folders (https://intellij-support.jetbrains.com/hc/articles/206544519). Reinstall from http://www.jetbrains.com/idea/download/index.html. Also check that you run with the bundled JDK (https://intellij-support.jetbrains.com/hc/articles/206544879) and all the files are local.
In case it doesn't help, please open a ticket with support and attach all the logs and the thread dumps.
Ugh, I did some digging, and it appears to be the idea-markdown plugin:
https://github.com/vsch/idea-multimarkdown/issues/278
I removed the plugin from my users directory (and manually deleted some cache folders for good measure, but not sure if that was necessary or not), and IntelliJ is back up and running. Sorry for the noise.
@Robert: I had the same problem after I installed the CSV plugin and ran yarn install on a project - every time I'd start WebStorm, it would get stuck at updating indices.
After both uninstalling the CSV plugin and deleting the system/caches directory, the problem was solved. Not sure if the CSV plugin was the cause.
Seeing a consistent failure to complete file indexing (beachball-of-death; not responding) when I have the Asciidoc plugin installed.
IntelliJ IDEA 2017.3.3 (Ultimate Edition)
Build #IU-173.4301.25, built on January 16, 2018
Licensed to Stuart Begg
You have a perpetual fallback license for this version
Subscription is active until December 4, 2018
JRE: 1.8.0_152-release-1024-b11 x86_64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Mac OS X 10.13.2
I've removed the plugin and am back up and running.
I removed the plugin by deleting the whole directory:
~/Library/Application\ Support/IntelliJIdea2017.3/
Any ideas?
Cheers, S t u a r t .
Report at https://github.com/asciidoctor/asciidoctor-intellij-plugin/issues with the logs and the thread dumps attached.