CachedValuesManagerImpl seems to make IDE hang in 2019.1.1
Since moving to IJ2019.1 and now in 2019.1.1, we have been experiencing some hangs in the IDE.
The hang seems to be in CachedValuesManagerImpl. Here is the the threaddump from jstack.
Any ideas or existing bug that I should be aware of or can look into.. Any help will be appreciated.
```JobScheduler FJ pool 15/7" #326 daemon prio=4 os_prio=31 cpu=399636.52ms elapsed=404.24s tid=0x00007f938af18800 nid=0x15417 runnable [0x0000700008538000]
java.lang.Thread.State: RUNNABLE
at com.intellij.util.CachedValueBase.isDependencyOutOfDate(CachedValueBase.java:133)
at com.intellij.psi.impl.PsiCachedValue.isDependencyOutOfDate(PsiCachedValue.java:72)
at com.intellij.util.CachedValueBase.isUpToDate(CachedValueBase.java:123)
at com.intellij.psi.impl.PsiCachedValue.isUpToDate(PsiCachedValue.java:63)
at com.intellij.util.CachedValueBase.getUpToDateOrNull(CachedValueBase.java:102)
at com.intellij.util.CachedValueBase.hasUpToDateValue(CachedValueBase.java:94)
at com.intellij.util.CachedValuesManagerImpl.hasOutdatedValue(CachedValuesManagerImpl.java:106)
at com.intellij.util.CachedValuesManagerImpl.isOutdated(CachedValuesManagerImpl.java:102)
at com.intellij.util.CachedValuesManagerImpl.getCachedValueFromExHolder(CachedValuesManagerImpl.java:62)
at com.intellij.util.CachedValuesManagerImpl.getCachedValue(CachedValuesManagerImpl.java:45)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:147)
at com.intellij.psi.util.CachedValuesManager.getCachedValue(CachedValuesManager.java:129)
at com.intellij.compiler.backwardRefs.CompilerReferenceServiceBase.getScopeWithoutCodeReferences(CompilerReferenceServiceBase.java:135)
at com.intellij.compiler.JavaCompilerReferencesCodeUsageScopeOptimizer.getScopeToExclude(JavaCompilerReferencesCodeUsageScopeOptimizer.java:28)
at com.intellij.psi.search.ScopeOptimizer.getRestrictedUseScope(ScopeOptimizer.java:53)
at com.intellij.psi.search.ScopeOptimizer.lambda$calculateOverallRestrictedUseScope$1(ScopeOptimizer.java:63)
at com.intellij.psi.search.ScopeOptimizer$$Lambda$3512/0x0000000801f91040.apply(Unknown Source)
at java.util.stream.ReferencePipeline$3$1.accept(java.base@11.0.2/Unknown Source)
at java.util.stream.ReferencePipeline$11$1.accept(java.base@11.0.2/Unknown Source)
at java.util.Spliterators$ArraySpliterator.forEachRemaining(java.base@11.0.2/Unknown Source)
at java.util.stream.AbstractPipeline.copyInto(java.base@11.0.2/Unknown Source)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(java.base@11.0.2/Unknown Source)
at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(java.base@11.0.2/Unknown Source)
at java.util.stream.AbstractPipeline.evaluate(java.base@11.0.2/Unknown Source)
at java.util.stream.ReferencePipeline.reduce(java.base@11.0.2/Unknown Source)
at com.intellij.psi.search.ScopeOptimizer.calculateOverallRestrictedUseScope(ScopeOptimizer.java:65)
at com.intellij.psi.search.SearchRequestCollector.lambda$searchWord$0(SearchRequestCollector.java:70)
at com.intellij.psi.search.SearchRequestCollector$$Lambda$3516/0x0000000801f93040.compute(Unknown Source)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:970)
at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:57)
at com.intellij.psi.search.SearchRequestCollector.searchWord(SearchRequestCollector.java:70)
at com.intellij.psi.search.SearchRequestCollector.searchWord(SearchRequestCollector.java:53)```
Please sign in to leave a comment.
Attaching more threaddumps
```
```
Please file an issue https://youtrack.jetbrains.com/issues/IDEA and attach all log files and all threadDump directories. Also please report whether hangs disappear/get less frequent when you disable custom plugins in your installation (e.g. Gosu). Thanks!
The developers have not been using bare bone IntelliJ Idea. We start the IDE instance with a couple of plugins installed. The issue has been logged. Thanks
https://youtrack.jetbrains.com/issue/IDEA-212263