IntelliJ frozen for two minutes while status bar shows that SonarLint is running

483 views
Skip to first unread message

wirch....@gmail.com

unread,
Dec 23, 2016, 4:26:18 AM12/23/16
to SonarLint
Thread dumps created by IntelliJ: https://drive.google.com/file/d/0B_bqPbLIIvq0OHhGcTgzMzRJQ2s/view?usp=sharing
All threads contain this locked thread:

"AWT-EventQueue-0 2016.3.2#IU-163.10154.17 IDEA, eap:true, os:Windows 10 10.0, java-version:JetBrains s.r.o 1.8.0_112-release-287-b2" prio=0 tid=0x0 nid=0x0 waiting on condition
     java.lang.Thread.State: TIMED_WAITING
 on com.intellij.openapi.application.impl.ReadMostlyRWLock@7ba80641
at sun.misc.Unsafe.park(Native Method)
at java.util.concurrent.locks.LockSupport.parkNanos(LockSupport.java:215)
at com.intellij.openapi.application.impl.ReadMostlyRWLock.writeLock(ReadMostlyRWLock.java:153)
at com.intellij.openapi.application.impl.ApplicationImpl.f(ApplicationImpl.java:1123)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:932)
at org.sonarlint.intellij.util.SonarLintUtils.saveFiles(SonarLintUtils.java:99)
at org.sonarlint.intellij.analysis.SonarLintAnalyzer.lambda$analyzeModule$10(SonarLintAnalyzer.java:96)
at org.sonarlint.intellij.analysis.SonarLintAnalyzer$$Lambda$667/15315370.run(Unknown Source)
at com.intellij.openapi.application.TransactionGuardImpl$6.run(TransactionGuardImpl.java:318)
at com.intellij.openapi.application.impl.LaterInvocator$1.run(LaterInvocator.java:166)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.a(LaterInvocator.java:417)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:401)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
at java.awt.EventQueue.access$500(EventQueue.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:709)
at java.awt.EventQueue$3.run(EventQueue.java:703)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.j(IdeEventQueue.java:843)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:679)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:391)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)



duarte.meneses

unread,
Dec 30, 2016, 11:20:33 AM12/30/16
to SonarLint, wirch....@gmail.com
Hi,

Is this happening all the time? Also, do you know what triggered those analysis? Was it automatically after changes on the editor, pre-commit check, ..?


Thanks.

Eduard Wirch

unread,
Dec 31, 2016, 2:14:19 AM12/31/16
to duarte.meneses, SonarLint
I don't remember any more what triggered the check. The freeze happened only once and is not reproducible. 

wirch....@gmail.com

unread,
Jan 11, 2017, 8:12:20 AM1/11/17
to SonarLint, wirch....@gmail.com
Occured again during  debug session: https://youtrack.jetbrains.com/issue/IDEA-166436
My last action was Debug-Step-Into (CTRL-F7).

duarte.meneses

unread,
Jan 11, 2017, 8:24:34 AM1/11/17
to SonarLint, wirch....@gmail.com
Hi,

I'm not sure that the problem is from SonarLint. I've answered in the thread.
For more details check: https://youtrack.jetbrains.com/issue/IDEA-164497#comment=27-1830695

duarte.meneses

unread,
Jan 11, 2017, 8:36:36 AM1/11/17
to SonarLint, wirch....@gmail.com
Could you please send us the stack trace, so that we can analyze it?

Eduard Wirch

unread,
Jan 11, 2017, 8:37:32 AM1/11/17
to duarte.meneses, SonarLint
I changed the permissions of the attachment in the linked issue. You should be able to see it now.

Eduard Wirch

unread,
Jan 11, 2017, 8:39:03 AM1/11/17
to duarte.meneses, SonarLint
Please post the link here, if you create a new issue with Jetbrains.

duarte.meneses

unread,
Jan 11, 2017, 9:49:59 AM1/11/17
to SonarLint, duarte....@sonarsource.com, wirch....@gmail.com

duarte.meneses

unread,
Jan 12, 2017, 4:58:27 AM1/12/17
to SonarLint, duarte....@sonarsource.com, wirch....@gmail.com
We are also working on our side to stop using write locks in the future to not risk deadlocks: https://jira.sonarsource.com/browse/MMF-683
Reply all
Reply to author
Forward
0 new messages