Org.sonarlint holds disposed projects

org.sonarlint holds disposed projects holds references to multiple disposed projects which leads to a memory leak.

Android Studio Iguana | 2023.2.1 Canary 14

Here are the parts of the Android Studio memory reports:

Root 3:
    51.2MB/1 objects          (root): java.lang.Class(org.sonarlint.intellij.finding.issue.vulnerabilities.TaintVulnerabilitiesCache)
    51.2MB/1 objects          (static): java.util.HashMap
    51.2MB/1 objects          table: [Ljava.util.HashMap$Node;
    51.2MB/2 objects          []: java.util.HashMap$Node
    40.2MB/2 objects          +-key: com.intellij.openapi.project.impl.ProjectImpl(disposed)
    10.9MB/1 objects          \-next: java.util.HashMap$Node
    10.9MB/1 objects            key: com.intellij.openapi.project.impl.ProjectImpl(disposed)
Root 5:
    33.4MB/1 objects          (root): java.lang.Thread
    33.4MB/1 objects          inheritableThreadLocals: java.lang.ThreadLocal$ThreadLocalMap
    33.4MB/1 objects          table: [Ljava.lang.ThreadLocal$ThreadLocalMap$Entry;
    33.4MB/1 objects          []: java.lang.ThreadLocal$ThreadLocalMap$Entry
    33.4MB/1 objects          value: org.sonarlint.intellij.util.ProjectLogOutput
    33.4MB/1 objects          project: com.intellij.openapi.project.impl.ProjectImpl(disposed)

So it’s 3 disposed projects with total memory of ~85mb leaking, these projects were held for many hours. Could you please take a look?


Welcome to the community and thanks for this report!

You skipped over the topic template, which prompts for the information we need to respond effectively. Can you provide, please

  • Operating system:
  • SonarLint plugin version:
  • Programming language you’re coding in:
  • Is connected mode used:
    • Connected to SonarCloud or SonarQube (and which version):


This report is based on the Android Studio memory usage report and unfortunately we don’t have access to the version of the plugin. Can’t find anything related to SonarCloud or SonarCube in the report.

The application being developed is an Android app with a native C++ part. Mac OS X, Android Studio Iguana | 2023.2.1 Canary 14

Hello @viuginov.nickolay,

Thanks a lot for this report, it’s very helpful. I created this ticket to fix one problem. A second problem is already under rework.

Don’t hesitate to send other reports in the future!