| Priority |
Critical |
| Type | Bug |
| State | Fixed |
| Assignee | Alexey Kudravtsev |
| Subsystem | Code Analysis. Inspection |
| Affected versions |
No affected versions
|
| Fixed in |
No fix versions
|
| Fixed in build |
Next build |
| Build |
6656
|
| Fixed in build |
8152
|
| Severity |
0
|
IDEA-36594 |
Deadlock during Analyse -> Inspect Code |
|
|
[1522714] ERROR - plication.impl.ApplicationImpl - Calling invokeAndWait from read-action leads to possible deadlock. java.lang.Throwable at com.intellij.openapi.application.impl.ApplicationImpl.invokeAndWait(ApplicationImpl.java:89) at com.intellij.structuralsearch.impl.matcher.compiler.PatternCompiler.compilePattern(PatternCompiler.java:18) at com.intellij.structuralsearch.impl.matcher.MatcherImpl.precompileOptions(MatcherImpl.java:100) at com.intellij.structuralsearch.inspection.highlightTemplate.SSBasedInspection.projectOpened(SSBasedInspection.java:30) at com.intellij.codeInspection.ex.LocalInspectionToolWrapper.projectOpened(LocalInspectionToolWrapper.java:36) at com.intellij.codeInspection.ex.InspectionProfileWrapper.init(InspectionProfileWrapper.java:4) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl$16.run(GlobalInspectionContextImpl.java:0) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:159) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.initializeTools(GlobalInspectionContextImpl.java:122) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.a(GlobalInspectionContextImpl.java:452) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.access$1000(GlobalInspectionContextImpl.java:209) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl$13.run(GlobalInspectionContextImpl.java:0) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:5) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.b(GlobalInspectionContextImpl.java:289) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl.access$400(GlobalInspectionContextImpl.java:195) at com.intellij.codeInspection.ex.GlobalInspectionContextImpl$10.run(GlobalInspectionContextImpl.java:0) at com.intellij.openapi.progress.impl.ProgressManagerImpl$4.run(ProgressManagerImpl.java:0) at com.intellij.openapi.progress.impl.ProgressManagerImpl$5.run(ProgressManagerImpl.java:0) at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:5) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:5) at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:80) at com.intellij.openapi.progress.impl.ProgressManagerImpl$6.run(ProgressManagerImpl.java:6) at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:5) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:4)
I also noticed that it doesn't crash as long as you do not make our inspections the project default, you just run the inspections in the Inspect Code option.
Please tell me if you can reproduce this your end with my files, because if not, I will do more work to make sure you can.
Thanks!
The inspection that is causing this problem is the "Redundant suppression" inspection. If you have that turned on, with some suppressed inspections, AND you have that modified IDE inspection profile set as your default it crashes on Analyse / Inspect Code. If you have the project default set as the default, but choose the modified inspection profile to run under Analyse / Inspect Code, it works fine.