Ctrl+F12 in JS files - StackOverflowError in all Diana builds

I get StackOverflowError when hit Ctrl+F12 in a JS file, including the last 8471 build (report all of them):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No message
java.lang.StackOverflowError
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:42)
at com.intellij.extapi.psi.ASTDelegatePsiElement.getFirstChild(ASTDelegatePsiElement.java:35)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:68)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSReferenceExpression(JSElementVisitor.java:85)
at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.accept(JSReferenceExpressionImpl.java:265)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSReferenceExpression(JSElementVisitor.java:85)
at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.accept(JSReferenceExpressionImpl.java:265)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSCallExpression(JSElementVisitor.java:29)
at com.intellij.lang.javascript.psi.impl.JSCallExpressionImpl.accept(JSCallExpressionImpl.java:47)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSSourceElement(JSElementVisitor.java:197)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSStatement(JSElementVisitor.java:205)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSReturnStatement(JSElementVisitor.java:137)
at com.intellij.lang.javascript.psi.impl.JSReturnStatementImpl.accept(JSReturnStatementImpl.java:45)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSSourceElement(JSElementVisitor.java:197)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSStatement(JSElementVisitor.java:205)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSBlock(JSElementVisitor.java:173)
at com.intellij.lang.javascript.psi.impl.JSBlockStatementImpl.accept(JSBlockStatementImpl.java:54)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:346)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSFunctionExpression(JSElementVisitor.java:41)
at com.intellij.lang.javascript.psi.impl.JSFunctionExpressionImpl.accept(JSFunctionExpressionImpl.java:53)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement.collectChildrenFromElement(JSStructureViewElement.java:335)
at com.intellij.lang.javascript.structureView.JSStructureViewElement.getChildren(JSStructureViewElement.java:176)
at com.intellij.lang.javascript.structureView.JSStructureViewElement.getChildren(JSStructureViewElement.java:50)
at com.intellij.ide.util.treeView.smartTree.TreeElementWrapper.initChildren(TreeElementWrapper.java:16)
at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.b(CachingChildrenTreeNode.java:7)
at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.a(CachingChildrenTreeNode.java:49)
at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.getChildren(CachingChildrenTreeNode.java:72)
at com.intellij.ide.util.treeView.smartTree.SmartTreeStructure.getChildElements(SmartTreeStructure.java:8)
at com.intellij.ide.util.FileStructureDialog$MyStructureTreeStructure.getChildElements(FileStructureDialog.java:12)
at com.intellij.ide.commander.AbstractListBuilder.b(AbstractListBuilder.java:84)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
...

1 comment
Comment actions Permalink

Any slight chance to have js file for reproduction?

Evgeny Goldin wrote:

I get StackOverflowError when hit Ctrl+F12 in a JS file, including the last 8471 build (report all of them):
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
No message
java.lang.StackOverflowError
at com.intellij.psi.impl.source.tree.SharedImplUtil.getFirstChild(SharedImplUtil.java:42)
at com.intellij.extapi.psi.ASTDelegatePsiElement.getFirstChild(ASTDelegatePsiElement.java:35)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:68)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSReferenceExpression(JSElementVisitor.java:85)
at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.accept(JSReferenceExpressionImpl.java:265)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSReferenceExpression(JSElementVisitor.java:85)
at com.intellij.lang.javascript.psi.impl.JSReferenceExpressionImpl.accept(JSReferenceExpressionImpl.java:265)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSCallExpression(JSElementVisitor.java:29)
at com.intellij.lang.javascript.psi.impl.JSCallExpressionImpl.accept(JSCallExpressionImpl.java:47)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSSourceElement(JSElementVisitor.java:197)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSStatement(JSElementVisitor.java:205)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSReturnStatement(JSElementVisitor.java:137)
at com.intellij.lang.javascript.psi.impl.JSReturnStatementImpl.accept(JSReturnStatementImpl.java:45)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:350)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSSourceElement(JSElementVisitor.java:197)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSStatement(JSElementVisitor.java:205)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSBlock(JSElementVisitor.java:173)
at com.intellij.lang.javascript.psi.impl.JSBlockStatementImpl.accept(JSBlockStatementImpl.java:54)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement$4.visitElement(JSStructureViewElement.java:346)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSElement(JSElementVisitor.java:193)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSExpression(JSElementVisitor.java:209)
at com.intellij.lang.javascript.psi.JSElementVisitor.visitJSFunctionExpression(JSElementVisitor.java:41)
at com.intellij.lang.javascript.psi.impl.JSFunctionExpressionImpl.accept(JSFunctionExpressionImpl.java:53)
at com.intellij.extapi.psi.PsiElementBase.acceptChildren(PsiElementBase.java:41)
at com.intellij.lang.javascript.structureView.JSStructureViewElement.collectChildrenFromElement(JSStructureViewElement.java:335)
at com.intellij.lang.javascript.structureView.JSStructureViewElement.getChildren(JSStructureViewElement.java:176)
at com.intellij.lang.javascript.structureView.JSStructureViewElement.getChildren(JSStructureViewElement.java:50)
at com.intellij.ide.util.treeView.smartTree.TreeElementWrapper.initChildren(TreeElementWrapper.java:16)
at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.b(CachingChildrenTreeNode.java:7)
at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.a(CachingChildrenTreeNode.java:49)
at com.intellij.ide.util.treeView.smartTree.CachingChildrenTreeNode.getChildren(CachingChildrenTreeNode.java:72)
at com.intellij.ide.util.treeView.smartTree.SmartTreeStructure.getChildElements(SmartTreeStructure.java:8)
at com.intellij.ide.util.FileStructureDialog$MyStructureTreeStructure.getChildElements(FileStructureDialog.java:12)
at com.intellij.ide.commander.AbstractListBuilder.b(AbstractListBuilder.java:84)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
at com.intellij.ide.commander.AbstractListBuilder.a(AbstractListBuilder.java:50)
...



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

0

Please sign in to leave a comment.