Fatal error initializing FileBasedIndex Follow
When I start IDEA 8 or now IDEA 9, I am getting a Fatal Error initializing class com.intellij.util.indexing.FileBasedIndex
The log looks like this
2009-11-12 15:53:25,820 [ 163169] ERROR - plication.impl.ApplicationImpl - InvocationTargetException: java.io.FileNotFoundException C:\Documents and Settings\900714\.IntelliJIdea90\system\index\groovydslfileindex\GroovyDslFileIndex.ver (Access is denied)
(though it's not always the same file that has access denied)
When I look in Process Explorer (a Windows util to indentify file locks), nothing has a lock on the directory.
I was having this problem originally in IDEA 8 so I decided to install IDEA 9. But I'm still seeing the problem there. I cannot start IDEA and even restarting my computer did not fix the problem (this time, usually it does). The error starts happening only sometimes when I have to shutdown IDEA abruptly (because it stops responding).
Any ideas on what's going on and how to fix it?
Attachment(s):
idea.log.zip
Please sign in to leave a comment.
It could be a virus checker or desktop search application that accesses
the .IntelliJIdea90 directory. Do you use anything like that?
Bas
Andy Kriger wrote:
I believe there is some corporate virus software on my machine, but I have searched for file handles using Process Explorer and no process has a lock on anything in the .IntelliJ90 directory.
I removed the entire .IntelliJ90 directory and still ran into the same problem.
After more digging, it looks like turning off Windows Indexing does the trick. There must be a timing issue between IDEA creating the file and Windows Indexing (cisvc.exe) jumping on it. As I said, when I checked the locks, there were none so there must be a transient collision. Suggest the IDEA devs run some tests on a machine that has Windows Indexing turned on to see if they can repro the problem.
Edited to add the solution