Error:java.lang.RuntimeException: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException:

我只是一个虾纸丫 提交于 2020-08-01 09:30:27

问题


The problem below occured on my Intellij

Error:Internal error: (com.intellij.util.io.PersistentEnumeratorBase$CorruptedException) PersistentEnumerator storage corrupted C:\Users\Steven\.IntelliJIdea2016.2\system\compile-server\fraudserver_2012620e\out-target\data
com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted C:\Users\Steven\.IntelliJIdea2016.2\system\compile-server\fraudserver_2012620e\out-target\data
    at com.intellij.util.io.PersistentBTreeEnumerator.getNonnegativeValue(PersistentBTreeEnumerator.java:320)
    at com.intellij.util.io.PersistentHashMap$5.onDropFromCache(PersistentHashMap.java:233)
    at com.intellij.util.io.PersistentHashMap$5.onDropFromCache(PersistentHashMap.java:219)
    at com.intellij.util.containers.SLRUMap.clear(SLRUMap.java:153)
    at com.intellij.util.io.PersistentHashMap.doClose(PersistentHashMap.java:650)
    at com.intellij.util.io.PersistentHashMap.close(PersistentHashMap.java:641)
    at org.jetbrains.jps.incremental.storage.AbstractStateStorage.close(AbstractStateStorage.java:60)
    at org.jetbrains.jps.incremental.storage.BuildDataManager.close(BuildDataManager.java:253)
    at org.jetbrains.jps.cmdline.ProjectDescriptor.release(ProjectDescriptor.java:143)
    at org.jetbrains.jps.cmdline.BuildSession.saveData(BuildSession.java:337)
    at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:298)
    at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)
    at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:232)
    at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:44)
    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.lang.IllegalStateException: Index corrupted
    at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.hashIndex(IntToIntBtree.java:1101)
    at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.search(IntToIntBtree.java:400)
    at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.locate(IntToIntBtree.java:987)
    at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.access$000(IntToIntBtree.java:383)
    at com.intellij.util.io.IntToIntBtree.get(IntToIntBtree.java:181)
    at com.intellij.util.io.PersistentBTreeEnumerator.getNonnegativeValue(PersistentBTreeEnumerator.java:312)
    ... 18 more

Thanks a lot in advance.


回答1:


Use File | Invalidate Caches and restart.




回答2:


  1. Close IntelliJ
  2. Wait a bit
  3. Delete C:\Users\USERNAME\.IntelliJIdea2017.2\system directory
  4. Start IntelliJ
  5. Rebuild project.

Source: https://intellij-support.jetbrains.com/hc/en-us/requests/1110610?page=1




回答3:


step 1 :File>Invalidate Caches/Restart

step 2 :Build>Rebuild Project




回答4:


Invalidate cache and rebuild didn't work. Delete C:\Users\USERNAME.IntelliJIdea2017.2\system directory and restart worked.




回答5:


Delete the culprit file, in your case C:\Users\Steven\.IntelliJIdea2016.2\system\compile-server\fraudserver_2012620e\out-target\data , or its parent directory, C:\Users\Steven\.IntelliJIdea2016.2\system\compile-server\fraudserver_2012620e\out-target\ , and all should be good again.

Don't forget to close IJ before deletion.




回答6:


This might be caused by insufficient space. if the above answers don't work, try to clean your storage and then re-follow the above answers.

This has solved the problem for me after several tries of the above.



来源:https://stackoverflow.com/questions/39584672/errorjava-lang-runtimeexception-com-intellij-util-io-persistentenumeratorbase

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!