IntelliJ 14.0.2 hangs indexing

Hi,

IntelliJ missed me during the vacations and now that I came back it decided to hang while indexing. I'm on OSX 10.9.5 using IntelliJ 14.0.2. I cleaned up caches and index folders and it still keeps hanging. I have to force quit Intellij and when it comes back up it starts to index and when it seems to be done it hangs. Cannot break the loop and I need to work so workarounds or a fix is much appreciated. :)

Attached is the log of IntelliJ. Some relevant parts seem to be:

2015-01-05 17:11:01,541 [  77383]   INFO - j.util.indexing.MapReduceIndex - java.lang.RuntimeException: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted /Users/gato/Library/Caches/IntelliJIdea14/index/filetypes/filetypes_inputs
com.intellij.util.indexing.StorageException: java.lang.RuntimeException: com.intellij.util.io.PersistentEnumeratorBase$CorruptedException: PersistentEnumerator storage corrupted /Users/gato/Library/Caches/IntelliJIdea14/index/filetypes/filetypes_inputs
     at com.intellij.util.indexing.MapReduceIndex.updateWithMap(MapReduceIndex.java:668)
     at com.intellij.util.indexing.MapReduceIndex$7$1.run(MapReduceIndex.java:501)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.a(ProgressManagerImpl.java:281)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:233)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeNonCancelableSection(ProgressManagerImpl.java:147)
     at com.intellij.util.indexing.MapReduceIndex$7.compute(MapReduceIndex.java:497)
     at com.intellij.util.indexing.MapReduceIndex$7.compute(MapReduceIndex.java:493)
...
     ... 56 more
Caused by: java.lang.IllegalStateException: Index corrupted
     at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.hashIndex(IntToIntBtree.java:1100)
     at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.search(IntToIntBtree.java:399)
     at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.locate(IntToIntBtree.java:986)
     at com.intellij.util.io.IntToIntBtree$BtreeIndexNodeView.access$000(IntToIntBtree.java:382)
     at com.intellij.util.io.IntToIntBtree.get(IntToIntBtree.java:180)
     at com.intellij.util.io.PersistentBTreeEnumerator.getNonnegativeValue(PersistentBTreeEnumerator.java:313)


and

2015-01-05 17:13:58,636 [ 254478]   INFO - ellij.vfs.persistent.FSRecords - Contents:81920 of 782563286, reuses:31441 of 182554465 for 7550
2015-01-05 17:13:59,753 [ 255595]   INFO - ework.TestFileStructureManager - JsTestDriver: Creating TestFileStructurePack for 1165abca3dff4d27d50f6885ff88af02.js took 81.17 ms
2015-01-05 17:14:00,594 [ 256436]   INFO - ework.TestFileStructureManager - JsTestDriver: Creating TestFileStructurePack for function_test.js took 51.20 ms
2015-01-05 17:14:45,751 [ 301593]   INFO - ellij.vfs.persistent.FSRecords - Contents:98304 of 925137904, reuses:38620 of 221155993 for 8699
2015-01-05 17:15:23,569 [ 339411]   INFO - ework.TestFileStructureManager - JsTestDriver: Creating TestFileStructurePack for es53-guest-frame.js took 76.72 ms
2015-01-05 17:15:26,484 [ 342326]   INFO - ework.TestFileStructureManager - JsTestDriver: Creating TestFileStructurePack for es53-taming-frame.js took 55.79 ms
2015-01-05 17:15:27,476 [ 343318]   INFO - ellij.vfs.persistent.FSRecords - Contents:114688 of 1061414976, reuses:41444 of 264059132 for 9807
2015-01-05 17:15:56,206 [ 372048]   INFO - ellij.vfs.persistent.FSRecords - Contents:131072 of 1095998700, reuses:42534 of 265854283 for 10064
2015-01-05 17:16:06,824 [ 382666]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 180881 ms
2015-01-05 17:16:07,578 [ 383420]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 294824 ms
2015-01-05 17:16:07,807 [ 383649]   INFO - unicator.p2p.UserMonitorThread - Force finding users
2015-01-05 17:16:08,182 [ 384024]  ERROR - pplication.impl.LaterInvocator - null
java.lang.NullPointerException
     at com.intellij.spring.facet.SpringConfigurationCheckStartupActivity$SpringConfigurationCheckTask.onSuccess(SpringConfigurationCheckStartupActivity.java:216)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$9$2.run(ProgressManagerImpl.java:557)
     at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:318)
     at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
     at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:715)
     at java.awt.EventQueue.access$400(EventQueue.java:82)
     at java.awt.EventQueue$2.run(EventQueue.java:676)
     at java.awt.EventQueue$2.run(EventQueue.java:674)
     at java.security.AccessController.doPrivileged(Native Method)
     at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
     at java.awt.EventQueue.dispatchEvent(EventQueue.java:685)
     at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:748)
     at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:577)
     at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:384)
     at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
     at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
     at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
     at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
2015-01-05 17:16:08,183 [ 384025]  ERROR - pplication.impl.LaterInvocator - IntelliJ IDEA 14.0.2  Build #IU-139.659.2
2015-01-05 17:16:08,183 [ 384025]  ERROR - pplication.impl.LaterInvocator - JDK: 1.6.0_65
2015-01-05 17:16:08,183 [ 384025]  ERROR - pplication.impl.LaterInvocator - VM: Java HotSpot(TM) 64-Bit Server VM
2015-01-05 17:16:08,183 [ 384025]  ERROR - pplication.impl.LaterInvocator - Vendor: Apple Inc.
2015-01-05 17:16:08,183 [ 384025]  ERROR - pplication.impl.LaterInvocator - OS: Mac OS X
2015-01-05 17:16:08,183 [ 384025]  ERROR - pplication.impl.LaterInvocator - Last Action: GotoClass
2015-01-05 17:16:09,062 [ 384904]   INFO - or.jabber.impl.JabberTransport - Jabber connected
2015-01-05 17:16:11,271 [ 387113]   INFO - indexing.UnindexedFilesUpdater - Indexable files iterated in 2805 ms
2015-01-05 17:16:11,271 [ 387113]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update started: 13576 files to update
2015-01-05 17:16:12,645 [ 388487]   INFO - indexing.UnindexedFilesUpdater - Unindexed files update done in 1374 ms
2015-01-05 17:24:15,448 [ 871290]   INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.openapi.wm.impl.status.MemoryUsagePanel$2@1f2a8096; elapsed time was 4290ms



Thanks for your help,
Gaston


Attachment(s):
idea.log.zip
3 comments
Comment actions Permalink

Check you have no IntelliJ Idea running and remove /Users/gato/Library/Caches/IntelliJIdea14 manually

0
Comment actions Permalink

Hi Maxim,

Thanks for replying. That is what I did before posting this thread. I stopped IntelliJ (in fact I had to force quit) and then I manually deleted that folder and also the index folder. IntelliJ kept hanging while indexing. It seems like that NPE might be related to the hang. I tried invalidating caches from inside of IntelliJ and after a few more attempts and hangs I had one successful index so I can now work again. I had to restart and then this happened again and again and then I had one successful index after invalidating caches and more attempts. I have not restarted ever since since I do not want to risk losing more time on this.

Let me know if you need more info to track this one dow.

Thanks,
Gaston

0
Comment actions Permalink

Great you solved the problem.
I have one question though the directory I specified already contain caches / index directories so no other deleted directories should be necessary (so I am not completely sure you used a clean start).

0

Please sign in to leave a comment.