Priority
Critical
Type
Bug 
State
Fixed 
Assignee
Alexey Kudravtsev 
Subsystem
Code Analysis. Inspection 
Affected versions
Fixed in
Fixed in build
Next build 
Build
6656
Fixed in build
8152
Severity
0
  • Submitted by   Sascha Weinreuter
    3 years ago (23 Jan 2007 20:42)
  • Updated by   root
    3 weeks ago (17 Jan 2010 19:40)
  • Jira: IDEA-36594
    (history, comments)

IDEA-36594

Deadlock during Analyse -> Inspect Code

See the attached thread-dump. Maybe the Structural-Search inspection doesn't like to be run in the background?

Issue was resolved
Comments (4)
 
History (1)
 
Links
 
Sascha Weinreuter
  Sascha Weinreuter
08 Jun 2007 12:44
(2 years ago)
#permalink
This still (or again?) happens in 7002. Now it even said that it's going to deadlock ;)

[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)
Kieron Wilkinson
  Kieron Wilkinson
01 Nov 2007 14:32
(2 years ago)
#permalink
We are getting continuing issues with this and our inspections. Are you having trouble reproducing this? In case you are, and I am not surprised, since it took me a while to make a crashing combination, I am attaching a sample project which crashes, the log file, and our inspections profile which is causing the crash.

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!
Kieron Wilkinson
  Kieron Wilkinson
01 Nov 2007 14:34
(2 years ago)
#permalink
Project, log and inspections which reproduce this bug, as described in my other comment.
Kieron Wilkinson
  Kieron Wilkinson
15 Nov 2007 14:00
(2 years ago)
#permalink
Okay, we think we now have this nailed!

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.