Intellij编辑器因堆栈溢出而冻结

时间:2018-10-25 16:33:37

标签: java ubuntu intellij-idea groovy crash

我正在ubuntu上使用Intellij:

IntelliJ IDEA 2018.2.5 (Ultimate Edition)
Build #IU-182.4892.20, built on October 16, 2018
Subscription is active until November 3, 2018
JRE: 1.8.0_152-release-1248-b19 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 4.15.0-38-generic

最近,在启动IntelliJ几秒钟后,我开始遇到以下错误: 编辑器冻结。终止进程并重新开始可以获取有关上一次崩溃的错误消息:

java.lang.StackOverflowError
    at com.intellij.util.CachedValueBase.isDependencyOutOfDate(CachedValueBase.java:138)
    at com.intellij.psi.impl.PsiCachedValue.isDependencyOutOfDate(PsiCachedValue.java:74)
    at com.intellij.util.CachedValueBase.isUpToDate(CachedValueBase.java:128)
    at com.intellij.psi.impl.PsiCachedValue.isUpToDate(PsiCachedValue.java:65)
    at com.intellij.util.CachedValueBase.getUpToDateOrNull(CachedValueBase.java:107)
    at com.intellij.util.CachedValueBase.getValueWithLock(CachedValueBase.java:214)
    at com.intellij.psi.impl.PsiCachedValue.getValueWithLock(PsiCachedValue.java:60)
    at com.intellij.psi.impl.PsiCachedValueImpl.getValue(PsiCachedValueImpl.java:38)
    at com.android.tools.idea.databinding.DataBindingProjectComponent.getDataBindingEnabledFacets(DataBindingProjectComponent.java:96)
    at com.android.tools.idea.databinding.DataBindingProjectComponent.hasAnyDataBindingEnabledFacet(DataBindingProjectComponent.java:92)
    at com.android.tools.idea.databinding.BrClassFinder.isEnabled(BrClassFinder.java:95)
    at com.android.tools.idea.databinding.BrClassFinder.findClass(BrClassFinder.java:54)
    at com.intellij.psi.impl.JavaPsiFacadeImpl.doFindClass(JavaPsiFacadeImpl.java:125)
    at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java:102)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GroovyPsiManager.createTypeByFQClassName(GroovyPsiManager.java:88)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapTypeFromNamedArgs.getAllKeyTypes(GrMapTypeFromNamedArgs.java:119)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:31)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:27)
    at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType.getParameters(GrMapType.java:80)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getCanonicalText(GrLiteralClassType.java:128)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getQualifiedName(TypesUtil.java:838)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBound(TypesUtil.java:474)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBoundNullable(TypesUtil.java:395)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getLeastUpperBound(GrLiteralClassType.java:178)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:37)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:27)
    at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType.getParameters(GrMapType.java:80)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getCanonicalText(GrLiteralClassType.java:128)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getQualifiedName(TypesUtil.java:838)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBound(TypesUtil.java:474)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBoundNullable(TypesUtil.java:395)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getLeastUpperBound(GrLiteralClassType.java:178)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:37)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:27)
    at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)

堆栈跟踪继续,如此重复数百次。有什么线索可以解决这个问题吗?

编辑:根据评论中的建议,我禁用了Android-Plugin。该错误仍然以类似的方式发生。只是前几行发生了变化:

java.lang.StackOverflowError
    at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:936)
    at com.intellij.util.pico.DefaultPicoContainer.getFromCache(DefaultPicoContainer.java:66)
    at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:212)
    at com.intellij.openapi.components.ServiceManager.doGetService(ServiceManager.java:47)
    at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:30)
    at com.intellij.openapi.roots.ProjectFileIndex.getInstance(ProjectFileIndex.java:44)
    at com.intellij.openapi.roots.ProjectFileIndex$SERVICE.getInstance(ProjectFileIndex.java:38)
    at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.getFileIndex(ProjectRootManagerImpl.java:123)
    at com.intellij.psi.impl.search.JavaSourceFilterScope.<init>(JavaSourceFilterScope.java:49)
    at com.intellij.psi.impl.search.JavaSourceFilterScope.<init>(JavaSourceFilterScope.java:38)
    at com.intellij.lang.aspectj.search.AjSourceFilterScope.<init>(AjSourceFilterScope.java:22)
    at com.intellij.lang.aspectj.index.stub.AjShortClassNameIndex.get(AjShortClassNameIndex.java:29)
    at com.intellij.lang.aspectj.search.AjClassFinder.findClass(AjClassFinder.java:23)
    at com.intellij.psi.impl.JavaPsiFacadeImpl.doFindClass(JavaPsiFacadeImpl.java:125)
    at com.intellij.psi.impl.JavaPsiFacadeImpl.findClass(JavaPsiFacadeImpl.java:102)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.resolve(GrLiteralClassType.java:149)
    at com.intellij.psi.PsiPrimitiveType.getUnboxedType(PsiPrimitiveType.java:180)
    at com.intellij.psi.PsiPrimitiveType.getOptionallyUnboxedType(PsiPrimitiveType.java:191)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getNumericLUB(TypesUtil.java:484)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBound(TypesUtil.java:412)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBoundNullable(TypesUtil.java:395)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getLeastUpperBound(GrLiteralClassType.java:178)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:37)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:27)
    at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType.getParameters(GrMapType.java:80)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getCanonicalText(GrLiteralClassType.java:128)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getQualifiedName(TypesUtil.java:838)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBound(TypesUtil.java:474)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBoundNullable(TypesUtil.java:395)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getLeastUpperBound(GrLiteralClassType.java:178)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:37)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:27)
    at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType.getParameters(GrMapType.java:80)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getCanonicalText(GrLiteralClassType.java:128)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getQualifiedName(TypesUtil.java:838)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBound(TypesUtil.java:474)
    at org.jetbrains.plugins.groovy.lang.psi.impl.statements.expressions.TypesUtil.getLeastUpperBoundNullable(TypesUtil.java:395)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrLiteralClassType.getLeastUpperBound(GrLiteralClassType.java:178)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:37)
    at org.jetbrains.plugins.groovy.lang.psi.impl.GrMapType$1.compute(GrMapType.java:27)
    at com.intellij.openapi.util.VolatileNotNullLazyValue.getValue(VolatileNotNullLazyValue.java:34)

1 个答案:

答案 0 :(得分:0)

由于有了IntelliJ支持,此问题已解决。我没有停用,后来又重新激活了Groovy-Plugin。之后问题不再出现。