Frequent unrecoverable lock ups during editing/indexing

I'm seeing IDEA 9 beta (90.162) stop responding indefinitely during editing or indexing several times a day.  See bug IDEA-26048.  Three threads in that mess look suspicious:

Thread t@68099: (state = BLOCKED)
- com.intellij.util.concurrency.Semaphore.waitFor(long) @bci=12, line=72 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex$ChangedFilesCollector.forceUpdate(com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=109, line=127 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex.ensureUpToDate(com.intellij.util.indexing.ID, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=81, line=411 (Compiled frame)
- com.intellij.psi.stubs.StubIndexImpl.get(com.intellij.psi.stubs.StubIndexKey, java.lang.Object, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=42, line=53 (Compiled frame)
- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.doFindClassByQName(java.lang.String, com.intellij.lang.javascript.index.JavaScriptIndex, com.intellij.psi.search.GlobalSearchScope) @bci=75, line=1515 (Interpreted frame)

Thread t@70147: (state = BLOCKED)
- com.intellij.util.concurrency.Semaphore.waitFor(long) @bci=12, line=72 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex$ChangedFilesCollector.forceUpdate(com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=109, line=127 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex.ensureUpToDate(com.intellij.util.indexing.ID, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=81, line=411 (Compiled frame)
- com.intellij.psi.stubs.StubIndexImpl.get(com.intellij.psi.stubs.StubIndexKey, java.lang.Object, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=42, line=53 (Compiled frame)
- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.doFindClassByQName(java.lang.String, com.intellij.lang.javascript.index.JavaScriptIndex, com.intellij.psi.search.GlobalSearchScope) @bci=75, line=1515 (Interpreted frame)



Thread t@83715: (state = BLOCKED)
- com.intellij.util.concurrency.DefaultLockAdapter.lock() @bci=4, line=32 (Compiled frame)
- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.processDeclarationsInScope(com.intellij.lang.javascript.psi.JSElement, com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=57, line=1899 (Compiled frame)
- com.intellij.lang.javascript.psi.ecmal4.impl.JSClassImpl.processMembers(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=6, line=131 (Compiled frame)
- com.intellij.lang.javascript.psi.ecmal4.impl.JSClassBase.processDeclarations(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=156, line=294 (Compiled frame)
- com.intellij.lang.javascript.psi.ecmal4.impl.JSClassImpl.processDeclarations(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=49, line=137 (Compiled frame)
- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.treeWalkUp(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=205, line=978 (Compiled frame)

2 comments
Comment actions Permalink

Please, take updated beta build 90.193

Christopher Mason wrote:

I'm seeing IDEA 9 beta (90.162) stop responding indefinitely during editing or indexing several times a day.  See bug IDEA-26048.  Three threads in that mess look suspicious:

Thread t@68099: (state = BLOCKED)
- com.intellij.util.concurrency.Semaphore.waitFor(long) @bci=12, line=72 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex$ChangedFilesCollector.forceUpdate(com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=109, line=127 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex.ensureUpToDate(com.intellij.util.indexing.ID, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=81, line=411 (Compiled frame)
- com.intellij.psi.stubs.StubIndexImpl.get(com.intellij.psi.stubs.StubIndexKey, java.lang.Object, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=42, line=53 (Compiled frame)
- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.doFindClassByQName(java.lang.String, com.intellij.lang.javascript.index.JavaScriptIndex, com.intellij.psi.search.GlobalSearchScope) @bci=75, line=1515 (Interpreted frame)

Thread t@70147: (state = BLOCKED)
- com.intellij.util.concurrency.Semaphore.waitFor(long) @bci=12, line=72 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex$ChangedFilesCollector.forceUpdate(com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=109, line=127 (Compiled frame)
- com.intellij.util.indexing.FileBasedIndex.ensureUpToDate(com.intellij.util.indexing.ID, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=81, line=411 (Compiled frame)
- com.intellij.psi.stubs.StubIndexImpl.get(com.intellij.psi.stubs.StubIndexKey, java.lang.Object, com.intellij.openapi.project.Project, com.intellij.psi.search.GlobalSearchScope) @bci=42, line=53 (Compiled frame)
- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.doFindClassByQName(java.lang.String, com.intellij.lang.javascript.index.JavaScriptIndex, com.intellij.psi.search.GlobalSearchScope) @bci=75, line=1515 (Interpreted frame)



Thread t@83715: (state = BLOCKED)
- com.intellij.util.concurrency.DefaultLockAdapter.lock() @bci=4, line=32 (Compiled frame)
- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.processDeclarationsInScope(com.intellij.lang.javascript.psi.JSElement, com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=57, line=1899 (Compiled frame)
- com.intellij.lang.javascript.psi.ecmal4.impl.JSClassImpl.processMembers(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=6, line=131 (Compiled frame)
- com.intellij.lang.javascript.psi.ecmal4.impl.JSClassBase.processDeclarations(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=156, line=294 (Compiled frame)
- com.intellij.lang.javascript.psi.ecmal4.impl.JSClassImpl.processDeclarations(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.ResolveState, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=49, line=137 (Compiled frame)

- com.intellij.lang.javascript.psi.resolve.JSResolveUtil.treeWalkUp(com.intellij.psi.scope.PsiScopeProcessor, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement, com.intellij.psi.PsiElement) @bci=205, line=978 (Compiled frame)

---
Original message URL: http://www.jetbrains.net/devnet/message/5250286#5250286



--
Best regards,
   Maxim Mossienko
IntelliJ Labs / JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

0
Comment actions Permalink

I upgraded to 90.193 and just saw another hang.  Based on the jstack output, it doesn't seem related and seems less obvious.  I've created IDEA-26057.

Thanks for responding!

-c

0

Please sign in to leave a comment.