Infinity indexing with error java.nio.BufferOverflowException

Answered

Hello

I have Infinity indexing issue in my InteliJ IDEA 

IntelliJ IDEA 2018.1 (Ultimate Edition)
Build #IU-181.4203.550, built on March 26, 2018
Licensed to XXXXXXXXXX
You have a perpetual fallback license for this version
Subscription is active until March 29, 2019
JRE: 1.8.0_152-release-1136-b20 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Windows 10 10.0

With next error in logs:

Marking corrupted:C:\Users\XXXXXX\.IntelliJIdea2018.1\system\index\sql.routine.index\sql.routine.index.storage
java.nio.BufferOverflowException

 

Next things did not help me:

* Restart PC

* Invalidate cache and Restart idea

* Remove C:\Users\XXXXXX\.IntelliJIdea2018.1\system folder

* Build -> Rebuild Project

* Praying to Jesus

 

Help me please, it's very annoying to working with this issue. Thanks in advance

 

Full logs:

2019-03-29 13:51:58,457 [1646807] INFO - il.indexing.FileBasedIndexImpl - scheduleIndexRebuild, reason: checkRebuild
2019-03-29 13:51:58,511 [1646861] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 34ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-29 13:51:59,700 [1648050] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 1153ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-29 13:51:59,700 [1648050] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 8 files to update
2019-03-29 13:51:59,928 [1648278] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 228ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-29 13:52:08,506 [1656856] INFO - j.util.io.PersistentEnumerator - Marking corrupted:C:\Users\njdub\.IntelliJIdea2018.1\system\index\sql.routine.index\sql.routine.index.storage
java.nio.BufferOverflowException
at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:363)
at com.intellij.util.io.PagedFileStorage.put(PagedFileStorage.java:300)
at com.intellij.util.io.ResizeableMappedFile.put(ResizeableMappedFile.java:251)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile.append(AppendableStorageBackedByResizableMappedFile.java:182)
at com.intellij.util.io.PersistentEnumeratorBase.doWriteData(PersistentEnumeratorBase.java:429)
at com.intellij.util.io.PersistentEnumeratorBase.writeData(PersistentEnumeratorBase.java:413)
at com.intellij.util.io.PersistentBTreeEnumerator.enumerateImpl(PersistentBTreeEnumerator.java:447)
at com.intellij.util.io.PersistentEnumeratorBase.doEnumerate(PersistentEnumeratorBase.java:291)
at com.intellij.util.io.PersistentEnumeratorBase.enumerate(PersistentEnumeratorBase.java:314)
at com.intellij.util.io.PersistentEnumeratorDelegate.enumerate(PersistentEnumeratorDelegate.java:98)
at com.intellij.util.io.PersistentHashMap.enumerate(PersistentHashMap.java:438)
at com.intellij.util.io.PersistentHashMap$5.onDropFromCache(PersistentHashMap.java:267)
at com.intellij.util.io.PersistentHashMap$5.onDropFromCache(PersistentHashMap.java:250)
at com.intellij.util.containers.SLRUMap.clear(SLRUMap.java:154)
at com.intellij.util.io.PersistentHashMap.clearAppenderCaches(PersistentHashMap.java:710)
at com.intellij.util.io.PersistentHashMap.doForce(PersistentHashMap.java:698)
at com.intellij.util.io.PersistentHashMap.force(PersistentHashMap.java:690)
at com.intellij.util.indexing.impl.MapIndexStorage.flush(MapIndexStorage.java:157)
at com.intellij.util.indexing.VfsAwareMapIndexStorage.flush(VfsAwareMapIndexStorage.java:106)
at com.intellij.util.indexing.MemoryIndexStorage.flush(MemoryIndexStorage.java:127)
at com.intellij.util.indexing.impl.MapReduceIndex.doFlush(MapReduceIndex.java:148)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.doFlush(VfsAwareMapReduceIndex.java:192)
at com.intellij.util.indexing.impl.MapReduceIndex.flush(MapReduceIndex.java:127)
at com.intellij.util.indexing.FileBasedIndexImpl.flushAllIndices(FileBasedIndexImpl.java:600)
at com.intellij.util.indexing.FileBasedIndexImpl.access$4600(FileBasedIndexImpl.java:117)
at com.intellij.util.indexing.FileBasedIndexImpl$FileIndexDataInitialization$1.run(FileBasedIndexImpl.java:2443)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:230)
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)
2019-03-29 13:52:08,528 [1656878] INFO - il.indexing.FileBasedIndexImpl - Rebuild requested for index sql.routine.index
com.intellij.util.indexing.StorageException: java.io.IOException: java.nio.BufferOverflowException
at com.intellij.util.indexing.impl.MapReduceIndex.flush(MapReduceIndex.java:135)
at com.intellij.util.indexing.FileBasedIndexImpl.flushAllIndices(FileBasedIndexImpl.java:600)
at com.intellij.util.indexing.FileBasedIndexImpl.access$4600(FileBasedIndexImpl.java:117)
at com.intellij.util.indexing.FileBasedIndexImpl$FileIndexDataInitialization$1.run(FileBasedIndexImpl.java:2443)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at com.intellij.util.concurrency.SchedulingWrapper$MyScheduledFutureTask.run(SchedulingWrapper.java:230)
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.IOException: java.nio.BufferOverflowException
at com.intellij.util.io.PersistentEnumeratorBase.doEnumerate(PersistentEnumeratorBase.java:301)
at com.intellij.util.io.PersistentEnumeratorBase.enumerate(PersistentEnumeratorBase.java:314)
at com.intellij.util.io.PersistentEnumeratorDelegate.enumerate(PersistentEnumeratorDelegate.java:98)
at com.intellij.util.io.PersistentHashMap.enumerate(PersistentHashMap.java:438)
at com.intellij.util.io.PersistentHashMap$5.onDropFromCache(PersistentHashMap.java:267)
at com.intellij.util.io.PersistentHashMap$5.onDropFromCache(PersistentHashMap.java:250)
at com.intellij.util.containers.SLRUMap.clear(SLRUMap.java:154)
at com.intellij.util.io.PersistentHashMap.clearAppenderCaches(PersistentHashMap.java:710)
at com.intellij.util.io.PersistentHashMap.doForce(PersistentHashMap.java:698)
at com.intellij.util.io.PersistentHashMap.force(PersistentHashMap.java:690)
at com.intellij.util.indexing.impl.MapIndexStorage.flush(MapIndexStorage.java:157)
at com.intellij.util.indexing.VfsAwareMapIndexStorage.flush(VfsAwareMapIndexStorage.java:106)
at com.intellij.util.indexing.MemoryIndexStorage.flush(MemoryIndexStorage.java:127)
at com.intellij.util.indexing.impl.MapReduceIndex.doFlush(MapReduceIndex.java:148)
at com.intellij.util.indexing.VfsAwareMapReduceIndex.doFlush(VfsAwareMapReduceIndex.java:192)
at com.intellij.util.indexing.impl.MapReduceIndex.flush(MapReduceIndex.java:127)
... 9 more
Caused by: java.nio.BufferOverflowException
at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:363)
at com.intellij.util.io.PagedFileStorage.put(PagedFileStorage.java:300)
at com.intellij.util.io.ResizeableMappedFile.put(ResizeableMappedFile.java:251)
at com.intellij.util.io.AppendableStorageBackedByResizableMappedFile.append(AppendableStorageBackedByResizableMappedFile.java:182)
at com.intellij.util.io.PersistentEnumeratorBase.doWriteData(PersistentEnumeratorBase.java:429)
at com.intellij.util.io.PersistentEnumeratorBase.writeData(PersistentEnumeratorBase.java:413)
at com.intellij.util.io.PersistentBTreeEnumerator.enumerateImpl(PersistentBTreeEnumerator.java:447)
at com.intellij.util.io.PersistentEnumeratorBase.doEnumerate(PersistentEnumeratorBase.java:291)
... 24 more
2019-03-29 13:52:08,558 [1656908] INFO - il.indexing.FileBasedIndexImpl - scheduleIndexRebuild, reason: checkRebuild
2019-03-29 13:52:08,631 [1656981] INFO - .diagnostic.PerformanceWatcher - Pushing properties took 53ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-29 13:52:09,938 [1658288] INFO - .diagnostic.PerformanceWatcher - Indexable file iteration took 1262ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-29 13:52:09,938 [1658288] INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 8 files to update
2019-03-29 13:52:10,167 [1658517] INFO - .diagnostic.PerformanceWatcher - Unindexed files update took 229ms; general responsiveness: ok; EDT responsiveness: ok
2019-03-29 13:52:18,600 [1666950] INFO - j.util.io.PersistentEnumerator - Marking corrupted:C:\Users\njdub\.IntelliJIdea2018.1\system\index\sql.routine.index\sql.routine.index.storage
java.nio.BufferOverflowException
at java.nio.DirectByteBuffer.put(DirectByteBuffer.java:363)
at com.intellij.util.io.PagedFileStorage.put(PagedFileStorage.java:300)
at com.intellij.util.io.ResizeableMappedFile.put(ResizeableMappedFile.java:251)

 

1
2 comments

Try updating to 2018.3.6 or 2019.1 and see if it helps.

0
Avatar
Permanently deleted user

I've resolved this issue by removing my project folder and cloning it from repository again

0

Please sign in to leave a comment.