Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-230

AssentionError, project already disposed when updating server and closing window

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1
    • Component/s: Connected Mode
    • Labels:
      None

      Description

      Possible repro:

      1. Open two windows with different projects, but both connected to the same SonarQube server
      2. Trigger a change to trigger "update server" notification in a window
      3. Click on update server, and close one of the windows, at around the same time
      4. Observe the exception complaining about the project in the closed window

      Seen by Simon. Stack trace:

      Already disposed: Project (Disposed) orchestrator-parent
      java.lang.AssertionError: Already disposed: Project (Disposed) orchestrator-parent
        at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:164)
        at org.sonarlint.intellij.ui.SonarLintConsole.get(SonarLintConsole.java:57)
        at org.sonarlint.intellij.tasks.ServerUpdateTask.analyzeOpenFiles(ServerUpdateTask.java:197)
        at java.util.ArrayList.forEach(ArrayList.java:1251)
        at org.sonarlint.intellij.tasks.ServerUpdateTask.updateModule(ServerUpdateTask.java:183)
        at org.sonarlint.intellij.tasks.ServerUpdateTask.updateModules(ServerUpdateTask.java:161)
        at org.sonarlint.intellij.tasks.ServerUpdateTask.run(ServerUpdateTask.java:106)
        at org.sonarlint.intellij.tasks.ServerUpdateTask$2.run(ServerUpdateTask.java:81)
        at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:718)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$1(CoreProgressManager.java:170)
        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:548)
        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:493)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:94)
        at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:165)
        at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:342)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Assignee:
              duarte.meneses Duarte Meneses
              Reporter:
              janos.gyerik Janos Gyerik
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: