Error in SonarLint for IntelliJ in PopOS

Environment:

  • Java version=11.0.10
  • Java vendor=JetBrains s.r.o.
  • OS name=Linux
  • OS architecture=amd64
  • IDE=WebStorm 2021.1 EAP
  • SonarLint version=4.14.1.27745

Freeze for 182 seconds
IDE KILLED! Sampled time: 167300ms, sampling rate: 100ms, GC time: 517ms (0%), Class loading: 0%, load average: 6.57

The stack is from the thread that was blocking EDT

com.intellij.diagnostic.Freeze
	at java.base@11.0.10/jdk.internal.misc.Unsafe.park(Native Method)
	at java.base@11.0.10/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
	at java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:885)
	at java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.doAcquireShared(AbstractQueuedSynchronizer.java:1009)
	at java.base@11.0.10/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireShared(AbstractQueuedSynchronizer.java:1324)
	at java.base@11.0.10/java.util.concurrent.locks.ReentrantReadWriteLock$ReadLock.lock(ReentrantReadWriteLock.java:738)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:347)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.withReadLock(ConnectedSonarLintEngineImpl.java:342)
	at org.sonarsource.sonarlint.core.ConnectedSonarLintEngineImpl.getServerIssues(ConnectedSonarLintEngineImpl.java:233)
	at org.sonarlint.intellij.issue.vulnerabilities.TaintVulnerabilitiesLoader.loadServerTaintVulnerabilitiesForFile(TaintVulnerabilitiesLoader.kt:68)
	at org.sonarlint.intellij.issue.vulnerabilities.TaintVulnerabilitiesLoader.getLocalTaintVulnerabilitiesForFile(TaintVulnerabilitiesLoader.kt:51)
	at org.sonarlint.intellij.issue.vulnerabilities.TaintVulnerabilitiesLoader.getTaintVulnerabilitiesByOpenedFiles(TaintVulnerabilitiesLoader.kt:45)
	at org.sonarlint.intellij.editor.SonarExternalAnnotator.apply(SonarExternalAnnotator.java:80)
	at org.sonarlint.intellij.editor.SonarExternalAnnotator.apply(SonarExternalAnnotator.java:59)
	at com.intellij.codeInsight.daemon.impl.AnnotationHolderImpl.applyExternalAnnotatorWithContext(AnnotationHolderImpl.java:203)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass.doApply(ExternalToolPass.java:217)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$1(ExternalToolPass.java:184)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1$$Lambda$4336/0x0000000102667c40.run(Unknown Source)
	at com.intellij.openapi.application.ReadAction.lambda$run$1(ReadAction.java:52)
	at com.intellij.openapi.application.ReadAction$$Lambda$1206/0x0000000101055c40.compute(Unknown Source)
	at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:849)
	at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)
	at com.intellij.openapi.application.ReadAction.run(ReadAction.java:51)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1.lambda$run$2(ExternalToolPass.java:181)
	at com.intellij.codeInsight.daemon.impl.ExternalToolPass$1$$Lambda$4316/0x0000000102662040.run(Unknown Source)
	at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:178)
	at com.intellij.openapi.progress.impl.CoreProgressManager$$Lambda$373/0x0000000100610c40.run(Unknown Source)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:663)

Hello Damian.

Welcome to the community and thank you for your feedback.
I’m the user of PopOS myself and i don’t have such issues. So i don’t think it’s OS related issue and believe this error is related to project. Can you elaborate more details about what actions you made when this issue did happen? Ideally would be great if you will provide zip with project to reproduce this issue.
From our side we will start investigation based on stack trace you kindly provided. Thanks again for your report.

1 Like

Sorry to say the project can’t be shared/made public, but I can say that settings are the default for sonarcloud (default in a typescript/react app in the cloud, and default in the plugin too)

I’d love to be able to explain a detailed pattern to reproduce, but it happens randomly, although I can say one thing in common (only in some of the cases) and is that I save multiple fast changes to a file, while still running the sonar analysis to it (so it accumulates like 5~6 tasks running simultaneously).

Hello Damian,

We identified what the problem is and created a ticket.

We should work on a fix relatively short term. I will ping you here when the new version is released.

Thanks again,
Damien

1 Like