We've (at the same time) changed some Inspections rules and upgraded to 4.0.2.
After that Inspections build runner progress up to 71% only and than never stops. I am attaching full build log. That stack trace of active thread:
"JobScheduler pool 1" prio=6 tid=0x33cb1400 nid=0x818 runnable [0x346be000..0x346bfb14] java.lang.Thread.State: RUNNABLE at com.intellij.psi.impl.source.tree.SharedImplUtil.getContainingFile(SharedImplUtil.java:44) at com.intellij.psi.impl.source.tree.CompositePsiElement.getContainingFile(CompositePsiElement.java:71) at com.intellij.psi.util.PsiUtil.isInJspFile(PsiUtil.java:253) at com.intellij.psi.util.PsiUtil.getTopLevelEnclosingCodeBlock(PsiUtil.java:242) at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.processLiteralExpressionInjections(CustomLanguageInjector.java:220) at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.getInjectedLanguage(CustomLanguageInjector.java:109) at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector.access$400(CustomLanguageInjector.java:61) at org.intellij.plugins.intelliLang.inject.CustomLanguageInjector$MyLanguageInjector.getLanguagesToInject(CustomLanguageInjector.java:411) at com.intellij.psi.impl.source.tree.injected.InjectedPsiProvider$MyInjProcessor.process(InjectedPsiProvider.java:4) at com.intellij.psi.impl.source.tree.injected.InjectedLanguageManagerImpl.processInPlaceInjectorsFor(InjectedLanguageManagerImpl.java:93) at com.intellij.psi.impl.source.tree.injected.InjectedPsiProvider.doCompute(InjectedPsiProvider.java:51) at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.a(InjectedLanguageUtil.java:16) at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:46) at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.enumerate(InjectedLanguageUtil.java:66) at com.intellij.psi.impl.source.tree.injected.InjectedLanguageUtil.getInjectedPsiFiles(InjectedLanguageUtil.java:52) at com.intellij.psi.impl.source.tree.java.PsiLiteralExpressionImpl.getInjectedPsi(PsiLiteralExpressionImpl.java:165) at com.intellij.psi.impl.search.LowLevelSearchUtil.a(LowLevelSearchUtil.java:71) at com.intellij.psi.impl.search.LowLevelSearchUtil.a(LowLevelSearchUtil.java:53) at com.intellij.psi.impl.search.LowLevelSearchUtil.processElementsContainingWordInElement(LowLevelSearchUtil.java:72) at com.intellij.psi.impl.search.PsiSearchHelperImpl$4$1$1.run(PsiSearchHelperImpl.java:7) at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:165) at com.intellij.psi.impl.search.PsiSearchHelperImpl$4$1.run(PsiSearchHelperImpl.java:2) at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:13) at com.intellij.psi.impl.search.PsiSearchHelperImpl$4.process(PsiSearchHelperImpl.java:4) at com.intellij.psi.impl.search.PsiSearchHelperImpl$4.process(PsiSearchHelperImpl.java:2) at com.intellij.concurrency.JobUtil$1.run(JobUtil.java:44) 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)
Is there any way to configure Inspector to log its progress with more details to understant root cause of the problem?
Den
Attachment(s):
RMS_Server_Inspections_61.log
Hello Den,
Could you please take a thread dump when it happens?
Thank you
Anna, my original post contains thread dump. Do you see it? Do you need state of other threads?
In att
Attachment(s):
thread-dump.rar
Could you please try to increase Xmx? There is no deadlock so I assume that all the time it spends in GC. Thank you
Still hanging. But with other stack trace (in att)
Attachment(s):
thread-dump.rar
I've disabled all IntelliLang related inspecitons but this didn't help
It looks OK. Could you please leave the build for the whole night and lets see the results tomorrow. Thank you
Sorry, but I am still geting that 71/100/71/100 percents in my build log:
[17:26:13]: Analyzing code ... 100%
[17:26:13]: Analyzing code ... 71%
[17:26:13]: Analyzing code ... 100%
[17:26:13]: Analyzing code ... 71%
[17:26:13]: Analyzing code ... 100%
[17:26:13]: Analyzing code ... 71%
[17:26:15]: Analyzing code ... 100%
[17:26:15]: Analyzing code ... 71%
[17:26:15]: Analyzing code ... 100%
[17:26:15]: Analyzing code ... 71%
[17:26:15]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:16]: Analyzing code ... 50%
[17:26:16]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:16]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:16]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:16]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:16]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:16]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:16]: Analyzing code ... 100%
[17:26:16]: Analyzing code ... 71%
[17:26:17]: Analyzing code ... 100%
[17:26:17]: Analyzing code ... 71%
Please wait for the build to finish. How long do you wait for the build? What is the size of your project? Which Xmx do you use? Message about "100%" is buggy but I do not understand do you have any other problems or not
That's my mem settings config:
-Xmx1g -XX:MaxPermSize=256m
Ok I'll will wait other several hours. Our standart Inspections build run in 1.5-2 hours time frame.
Den
Build still runing (screen and thread dump in att)
Attachment(s):
build-hang.rar
thread-dump.rar
After 20h of work build is still running. Thread dump and buld log are attached.
Attachment(s):
RMS_Server_Inspections_70.rar
thread_dump.rar
Attachment(s):
thread_dump.rar
RMS_Server_Inspections_70.rar
Filed http://www.jetbrains.net/jira/browse/IDEA-22581