java.nio.Buffer exception

About 25% of the time I start IDEA, I'll see the exception below.  The only way I seem to be able to recover is by shutting down and restarting, which triggers a lengthy re-indexing process.


I'm running Ubuntu 10.10 (but it also happened frequently on 10.04), 64bit.  Please let me know what, if any, other details might be helpful.


~kc


java.lang.IllegalArgumentException
        at java.nio.Buffer.position(Buffer.java:218)
        at com.intellij.util.io.PagedFileStorage.get(PagedFileStorage.java:171)
        at com.intellij.util.io.PagedFileStorage.getInt(PagedFileStorage.java:121)
        at com.intellij.util.io.ResizeableMappedFile.getInt(ResizeableMappedFile.java:141)
        at com.intellij.util.io.PersistentEnumerator.valueOf(PersistentEnumerator.java:458)
        at com.intellij.util.io.StringRef.getString(StringRef.java:48)
        at com.intellij.util.io.StringRef.toString(StringRef.java:92)
        at com.intellij.psi.impl.java.stubs.impl.PsiClassStubImpl.getQualifiedName(PsiClassStubImpl.java:75)
        at com.intellij.psi.impl.source.PsiClassImpl.getQualifiedName(PsiClassImpl.java:205)
        at com.intellij.ide.util.gotoByName.DefaultClassNavigationContributor.getQualifiedName(DefaultClassNavigationContributor.java:52)
        at com.intellij.ide.util.gotoByName.GotoClassModel2.getFullName(GotoClassModel2.java:80)
        at com.intellij.ide.util.gotoByName.ChooseByNameBase.a(ChooseByNameBase.java:1271)
        at com.intellij.ide.util.gotoByName.ChooseByNameBase.access$4000(ChooseByNameBase.java:76)
        at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.a(ChooseByNameBase.java:1234)
        at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.access$3400(ChooseByNameBase.java:1110)
        at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread$1.run(ChooseByNameBase.java:1143)
        at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:716)
        at com.intellij.ide.util.gotoByName.ChooseByNameBase$CalcElementsThread.run(ChooseByNameBase.java:1159)
        at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:345)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
        at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:126)

Please sign in to leave a comment.