IDEA 5181 sometimes hanging while editing java files

Three times in the past couple days IDEA has locked up on me while editing java files.
When I hit CTRL+BREAK, it says there is one deadlock. See below.
Also attached is the full stacktrace.
Should I file a Jira request?

-Alex


Found one Java-level deadlock:
=============================
"Daemon code analyzer":
waiting to lock monitor 0x00e04e1c (object 0x167d6e18, a com.intellij.psi.SingleRootFileViewProvider),
which is held by "AWT-EventQueue-1"
"AWT-EventQueue-1":
waiting to lock monitor 0x00e04dfc (object 0x14945e58, a java.lang.Object),
which is held by "Daemon code analyzer"

Java stack information for the threads listed above:
===================================================
"Daemon code analyzer":
at com.intellij.psi.SingleRootFileViewProvider.getPsi(SingleRootFileViewProvider.java)
- waiting to lock (a com.intellij.psi.SingleRootFileViewProvider) at com.intellij.psi.impl.file.impl.FileManagerImpl.findFile(FileManagerImpl.java:229) at com.intellij.psi.impl.PsiManagerImpl.findFile(PsiManagerImpl.java:299) at com.intellij.psi.impl.cache.impl.RepositoryManagerImpl.a(RepositoryManagerImpl.java:80) - locked <0x14945e58> (a java.lang.Object) at com.intellij.psi.impl.cache.impl.RepositoryManagerImpl.updateAll(RepositoryManagerImpl.java:114) at com.intellij.psi.impl.cache.impl.RepositoryIndexImpl.getClassesByQualifiedName(RepositoryIndexImpl.java:71) at com.intellij.psi.impl.file.impl.FileManagerImpl.a(FileManagerImpl.java:252) at com.intellij.psi.impl.file.impl.FileManagerImpl.findClass(FileManagerImpl.java:47) at com.intellij.psi.impl.PsiManagerImpl$PsiElementFinderImpl.findClass(PsiManagerImpl.java:11) at com.intellij.psi.impl.PsiManagerImpl.findClass(PsiManagerImpl.java:282) at com.intellij.psi.impl.light.LightClassReference.resolve(LightClassReference.java:32) at com.intellij.psi.impl.light.LightClassReference.advancedResolve(LightClassReference.java:0) at com.intellij.psi.impl.source.PsiClassReferenceType.resolveGenerics(PsiClassReferenceType.java:11) at com.intellij.psi.util.PsiUtil.resolveGenericsClassInType(PsiUtil.java:732) at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:623) at com.intellij.psi.util.TypeConversionUtil.isAssignable(TypeConversionUtil.java:531) at com.intellij.psi.util.PsiUtil.isApplicable(PsiUtil.java:782) at com.intellij.psi.infos.MethodCandidateInfo.isApplicable(MethodCandidateInfo.java:51) at com.intellij.psi.scope.conflictResolvers.JavaMethodsConflictResolver.b(JavaMethodsConflictResolver.java:132) at com.intellij.psi.scope.conflictResolvers.JavaMethodsConflictResolver.resolveConflict(JavaMethodsConflictResolver.java:171) at com.intellij.psi.scope.processor.ConflictFilterProcessor.getResult(ConflictFilterProcessor.java:12) at com.intellij.psi.impl.source.resolve.PsiResolveHelperImpl.multiResolveConstructor(PsiResolveHelperImpl.java:150) at com.intellij.psi.impl.source.resolve.PsiResolveHelperImpl.resolveConstructor(PsiResolveHelperImpl.java:77) at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl.resolveMethodGenerics(PsiNewExpressionImpl.java:46) at com.intellij.codeInsight.ExceptionUtil.getUnhandledExceptions(ExceptionUtil.java:166) at com.intellij.codeInsight.ExceptionUtil.a(ExceptionUtil.java:271) at com.intellij.codeInsight.ExceptionUtil.collectUnhandledExceptions(ExceptionUtil.java:178) at com.intellij.psi.controlFlow.ControlFlowAnalyzer.d(ControlFlowAnalyzer.java:713) at com.intellij.psi.controlFlow.ControlFlowAnalyzer.visitNewExpression(ControlFlowAnalyzer.java:19) at com.intellij.psi.impl.source.tree.java.PsiNewExpressionImpl.accept(PsiNewExpressionImpl.java:27) at com.intellij.psi.controlFlow.ControlFlowAnalyzer.visitAssignmentExpression(ControlFlowAnalyzer.java:249) at com.intellij.psi.impl.source.tree.java.PsiAssignmentExpressionImpl.accept(PsiAssignmentExpressionImpl.java:19) at com.intellij.psi.controlFlow.ControlFlowAnalyzer.visitExpressionStatement(ControlFlowAnalyzer.java:511) at com.intellij.psi.impl.source.tree.java.PsiExpressionStatementImpl.accept(PsiExpressionStatementImpl.java:14) at com.intellij.psi.controlFlow.ControlFlowAnalyzer.visitCodeBlock(ControlFlowAnalyzer.java:66) at com.intellij.psi.impl.source.tree.java.PsiCodeBlockImpl.accept(PsiCodeBlockImpl.java:51) at com.intellij.psi.controlFlow.ControlFlowAnalyzer.buildControlFlow(ControlFlowAnalyzer.java:747) at com.intellij.psi.controlFlow.ControlFlowFactory.getControlFlow(ControlFlowFactory.java:16) at com.intellij.psi.controlFlow.ControlFlowFactory.getControlFlow(ControlFlowFactory.java:27) at com.intellij.codeInsight.daemon.impl.analysis.HighlightControlFlowUtil.a(HighlightControlFlowUtil.java:0) at com.intellij.codeInsight.daemon.impl.analysis.HighlightControlFlowUtil.isReassigned(HighlightControlFlowUtil.java:243) at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitVariable(HighlightVisitorImpl.java:54) at com.intellij.psi.JavaElementVisitor.visitLocalVariable(JavaElementVisitor.java:196) at com.intellij.psi.impl.source.tree.java.PsiLocalVariableImpl.accept(PsiLocalVariableImpl.java:4) at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visit(HighlightVisitorImpl.java:174) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$1.run(GeneralHighlightingPass.java:22) at com.intellij.psi.impl.PsiManagerImpl.performActionWithFormatterDisabled(PsiManagerImpl.java:316) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:23) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:63) at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:1) at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:3) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:263) at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:5) at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:14) at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:10) at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:38) "AWT-EventQueue-1": at com.intellij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:130) - waiting to lock <0x14945e58> (a java.lang.Object) at com.intellij.psi.SingleRootFileViewProvider$PsiFileContent.getText(SingleRootFileViewProvider.java:11) at com.intellij.psi.SingleRootFileViewProvider.getContents(SingleRootFileViewProvider.java:80) - locked <0x167d6e18>]]> (a com.intellij.psi.SingleRootFileViewProvider)
at com.intellij.psi.impl.source.PsiFileImpl.textToCharArray(PsiFileImpl.java:70)
at com.intellij.codeInsight.hint.api.impls.MethodParameterInfoHandler.findArgumentList(MethodParameterInfoHandler.java:96)
at com.intellij.codeInsight.hint.ParameterInfoController.findArgumentList(ParameterInfoController.java:107)
at com.intellij.codeInsight.hint.PrevNextParameterHandler.a(PrevNextParameterHandler.java:11)
at com.intellij.codeInsight.hint.PrevNextParameterHandler.isEnabled(PrevNextParameterHandler.java:20)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:61)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:71)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:134)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:28)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:104)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:88)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:167)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

Found 1 deadlock.



Attachment(s):
5181_hang_stacktrace.txt
2 comments

It just happened again after restarting IDEA.
I might have to use my Text Editor to edit this java file.

Attached is the stacktrace from this hang. Looks similar
to the other one.



Attachment(s):
5181_hang_stacktrace2.txt
0

I had IDEA hang twice on me today with build 5201. I was editing some java code, and then it just hangs. I was editing different set of files from the ones I was editing when it hung before.


Java stack information for the threads listed above:
===================================================
"Daemon code analyzer":
at com.intellij.psi.SingleRootFileViewProvider.getPsi(SingleRootFileViewProvider.java)
- waiting to lock (a com.intellij.psi.SingleRootFileViewProvider) at com.intellij.psi.impl.file.impl.FileManagerImpl.findFile(FileManagerImpl.java:22) at com.intellij.psi.impl.PsiManagerImpl.findFile(PsiManagerImpl.java:248) at com.intellij.psi.impl.cache.impl.RepositoryManagerImpl.a(RepositoryManagerImpl.java:17) - locked <0x1506a3b0> (a java.lang.Object) at com.intellij.psi.impl.cache.impl.RepositoryManagerImpl.updateAll(RepositoryManagerImpl.java:200) at com.intellij.psi.impl.cache.impl.RepositoryIndexImpl.getClassesByQualifiedName(RepositoryIndexImpl.java:31) at com.intellij.psi.impl.file.impl.FileManagerImpl.a(FileManagerImpl.java:246) at com.intellij.psi.impl.file.impl.FileManagerImpl.findClass(FileManagerImpl.java:266) - locked <0x1506a3b0> (a java.lang.Object) at com.intellij.psi.impl.PsiManagerImpl$PsiElementFinderImpl.findClass(PsiManagerImpl.java:38) at com.intellij.psi.impl.PsiManagerImpl.findClass(PsiManagerImpl.java:229) at com.intellij.psi.impl.InheritanceImplUtil.a(InheritanceImplUtil.java:34) at com.intellij.psi.impl.InheritanceImplUtil.c(InheritanceImplUtil.java:9) at com.intellij.psi.impl.InheritanceImplUtil.a(InheritanceImplUtil.java:44) at com.intellij.psi.impl.InheritanceImplUtil.b(InheritanceImplUtil.java:10) at com.intellij.psi.impl.InheritanceImplUtil.a(InheritanceImplUtil.java:41) at com.intellij.psi.impl.InheritanceImplUtil.isInheritor(InheritanceImplUtil.java:40) at com.intellij.psi.impl.source.PsiClassImpl.isInheritor(PsiClassImpl.java:94) at com.intellij.psi.util.InheritanceUtil.isInheritorOrSelf(InheritanceUtil.java:35) at com.intellij.psi.impl.source.resolve.ResolveUtil.isAccessible(ResolveUtil.java:69) at com.intellij.psi.impl.source.resolve.PsiResolveHelperImpl.isAccessible(PsiResolveHelperImpl.java:16) at com.intellij.psi.impl.source.resolve.PsiResolveHelperImpl.isAccessible(PsiResolveHelperImpl.java:118) at com.intellij.codeInsight.daemon.impl.analysis.HighlightMethodUtil.checkOverrideEquivalentInheritedMethods(HighlightMethodUtil.java:340) at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visitModifierList(HighlightVisitorImpl.java:246) at com.intellij.psi.impl.source.PsiModifierListImpl.accept(PsiModifierListImpl.java:163) at com.intellij.codeInsight.daemon.impl.analysis.HighlightVisitorImpl.visit(HighlightVisitorImpl.java:227) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass$1.run(GeneralHighlightingPass.java:19) at com.intellij.psi.impl.PsiManagerImpl.performActionWithFormatterDisabled(PsiManagerImpl.java:491) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.a(GeneralHighlightingPass.java:60) at com.intellij.codeInsight.daemon.impl.GeneralHighlightingPass.doCollectInformation(GeneralHighlightingPass.java:94) at com.intellij.codeInsight.daemon.impl.TextEditorHighlightingPass.collectInformation(TextEditorHighlightingPass.java:7) at com.intellij.codeInsight.daemon.impl.UpdateThread$2.run(UpdateThread.java:6) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:69) at com.intellij.codeInsight.daemon.impl.UpdateThread.a(UpdateThread.java:32) at com.intellij.codeInsight.daemon.impl.UpdateThread.access$100(UpdateThread.java:38) at com.intellij.codeInsight.daemon.impl.UpdateThread$1.run(UpdateThread.java:3) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:72) at com.intellij.codeInsight.daemon.impl.UpdateThread.run(UpdateThread.java:10) "AWT-EventQueue-1": at com.intellij.psi.impl.source.tree.CompositeElement.getText(CompositeElement.java:142) - waiting to lock <0x1506a3b0> (a java.lang.Object) at com.intellij.psi.SingleRootFileViewProvider$PsiFileContent.getText(SingleRootFileViewProvider.java:9) at com.intellij.psi.SingleRootFileViewProvider.getContents(SingleRootFileViewProvider.java:125) - locked <0x172c2560>]]> (a com.intellij.psi.SingleRootFileViewProvider)
at com.intellij.psi.impl.source.PsiFileImpl.textToCharArray(PsiFileImpl.java:8)
at com.intellij.codeInsight.hint.api.impls.MethodParameterInfoHandler.findArgumentList(MethodParameterInfoHandler.java:183)
at com.intellij.codeInsight.hint.ParameterInfoController.findArgumentList(ParameterInfoController.java:52)
at com.intellij.codeInsight.hint.PrevNextParameterHandler.a(PrevNextParameterHandler.java:18)
at com.intellij.codeInsight.hint.PrevNextParameterHandler.isEnabled(PrevNextParameterHandler.java:15)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:61)
at com.intellij.openapi.editor.actionSystem.EditorAction.update(EditorAction.java:71)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.a(IdeKeyEventDispatcher.java:152)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.b(IdeKeyEventDispatcher.java:154)
at com.intellij.openapi.keymap.impl.IdeKeyEventDispatcher.dispatchKeyEvent(IdeKeyEventDispatcher.java:191)
at com.intellij.ide.IdeEventQueue.a(IdeEventQueue.java:181)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:132)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)



Attachment(s):
5201_hang_stacktrace.txt
0

Please sign in to leave a comment.