Code Analysis hangs and blocks copy-paste and other actions

I am using Idea 11.1.5 under Windows 7 and Java 1.5.0_15.

Normally my IDEA works fine. Just sometimes I experience the following problem:
The code analysis on a file doesn't finish. The little analysis icon in the top right hand corner
doesn't turn to a color but keeps showing the eye. The popup says "Performing code analysis".

I can still type normally and even save files with ctrl+s. But I cannot copy or paste, or duplicate lines with ctrl+d,
or jump to variable definitions/classes/Spring beans etc with ctrl+click, which is absolutely annoying.

Any hints on what the problem might be and how to fix it? And what causes it to happen only sometimes?
Restarting IDEA helps usually but only for a short time.

Thanks in advance,

Marc

3 comments

Hi Marc,

You can try to build thread dumps when the ide is at that invalid state and provide it us for further analysis.

Also it's worth to check if idea.log (main menu | help | show log) contains any exceptions.

Denis

0

IHi Denis,

thanks for the hints. It happened right now again, and I have these exceptions in the log:

2013-05-13 18:20:47,546 [264866220]  ERROR - .intellij.util.EventDispatcher - IntelliJ IDEA 11.1.5  Build #IU-117.1037
2013-05-13 18:20:47,546 [264866220]  ERROR - .intellij.util.EventDispatcher - JDK: 1.6.0_31
2013-05-13 18:20:47,546 [264866220]  ERROR - .intellij.util.EventDispatcher - VM: Java HotSpot(TM) Client VM
2013-05-13 18:20:47,546 [264866220]  ERROR - .intellij.util.EventDispatcher - Vendor: Sun Microsystems Inc.
2013-05-13 18:20:47,546 [264866220]  ERROR - .intellij.util.EventDispatcher - OS: Windows 7
2013-05-13 18:20:47,546 [264866220]  ERROR - .intellij.util.EventDispatcher - Last Action: CodeCompletion
2013-05-13 18:20:47,561 [264866235]  ERROR - .intellij.util.EventDispatcher - PSI/document inconsistency before reparse: file=Jspx DummyHolder
java.lang.AssertionError: PSI/document inconsistency before reparse: file=Jspx DummyHolder
    at com.intellij.psi.impl.DocumentCommitThread.a(DocumentCommitThread.java:655)
    at com.intellij.psi.impl.DocumentCommitThread.a(DocumentCommitThread.java:580)
    at com.intellij.psi.impl.DocumentCommitThread.access$600(DocumentCommitThread.java:66)
    at com.intellij.psi.impl.DocumentCommitThread$3.run(DocumentCommitThread.java:463)
    at com.intellij.psi.impl.DocumentCommitThread.a(DocumentCommitThread.java:473)
    at com.intellij.psi.impl.DocumentCommitThread.commitSynchronously(DocumentCommitThread.java:423)
    at com.intellij.psi.impl.PsiDocumentManagerImpl$6.run(PsiDocumentManagerImpl.java:415)
    at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:902)
    at com.intellij.psi.impl.PsiDocumentManagerImpl.a(PsiDocumentManagerImpl.java:407)
    at com.intellij.psi.impl.PsiDocumentManagerImpl.commitDocument(PsiDocumentManagerImpl.java:331)
    at com.intellij.psi.impl.PsiDocumentManagerImpl.commitAllDocuments(PsiDocumentManagerImpl.java:242)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$TooltipProvider.execute(CtrlMouseHandler.java:507)
    at com.intellij.codeInsight.navigation.CtrlMouseHandler$5.mouseMoved(CtrlMouseHandler.java:180)
    at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:89)
    at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:34)
    at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:65)
    at $Proxy21.mouseMoved(Unknown Source)
    at com.intellij.openapi.editor.impl.EditorImpl$MyMouseMotionListener.mouseMoved(EditorImpl.java:5512)
    at java.awt.Component.processMouseMotionEvent(Component.java:6335)
    at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3285)
    at java.awt.Component.processEvent(Component.java:6059)
    at java.awt.Container.processEvent(Container.java:2039)
    at java.awt.Component.dispatchEventImpl(Component.java:4653)
    at java.awt.Container.dispatchEventImpl(Container.java:2097)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4575)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4249)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4166)
    at java.awt.Container.dispatchEventImpl(Container.java:2083)
    at java.awt.Window.dispatchEventImpl(Window.java:2482)
    at java.awt.Component.dispatchEvent(Component.java:4481)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:648)
    at java.awt.EventQueue.access$000(EventQueue.java:84)
    at java.awt.EventQueue$1.run(EventQueue.java:607)
    at java.awt.EventQueue$1.run(EventQueue.java:605)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
    at java.awt.EventQueue$2.run(EventQueue.java:621)
    at java.awt.EventQueue$2.run(EventQueue.java:619)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:618)
    at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:699)
    at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:534)
    at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:420)
    at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:378)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


There is also a thread dump attached. Hope this helps in your analysis.

Regards,

Marc



Attachment(s):
threaddump-1368462551105.tdump.zip
0

I also have this problem but for Play Framework 2.x with Scala.

It is really annoying!! Can not set breakpoints among many other things. This renders the IDE totally useless for my project!

And I am a long time IntelliJ user and have been very satisfied up until now.

I have attached the Thread dump for IntelliJ, some logs and an image that shows the "eye".

I will try the IntelliJ 13 EAP to see if the problem still occurs there but I still would like the version 12 to work.

Please respond to this!!!

PS. I have Invalidated the caches several times with no avail. I have even recreated the project several times but that didn't help.



Attachment(s):
IntelliJ_Code_Analysis_Problem.zip
0

Please sign in to leave a comment.