Error in SonarLint for IntelliJ 10.4.2: AlreadyDisposedException: Container is already disposed

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Mac OS X aarch64
  • IDE: PhpStorm 2024.1
  • SonarLint: 10.4.2.78113
c.ij.serviceContainer.AlreadyDisposedException: Container is already disposed
	at c.ij.serviceContainer.ComponentManagerImplKt.throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1622)
	at c.ij.serviceContainer.ComponentManagerImplKt.access$throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1)
	at c.ij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:724)
	at c.ij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:698)
	at o.sl.ij.common.util.SonarLintUtils.getService(SonarLintUtils.java:62)
	at o.sl.ij.common.ui.SonarLintConsole.get(SonarLintConsole.java:31)
	at o.sl.ij.core.BackendService.getExcludedFiles(BackendService.kt:936)
	at o.sl.ij.analysis.LocalFileExclusions.filterWithServerExclusions(LocalFileExclusions.java:271)
	at o.sl.ij.analysis.LocalFileExclusions.retainNonExcludedFilesByModules(LocalFileExclusions.java:163)
	at o.sl.ij.ui.AutoTriggerStatusPanel.lambda$switchCards$2(AutoTriggerStatusPanel.java:100)
	at o.sl.ij.util.ThreadUtilsKt.runOnPooledThread$lambda$1(ThreadUtils.kt:38)
	at c.ij.oa.application.impl.RwLockHolder$executeOnPooledThread$1.run(RwLockHolder.kt:154)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
	at c.ij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at c.ij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)

Hi @Christian_Castelli, thank you for your report. We already identified this issue and it will be fixed in the next release. For now, you can safely ignore it.

We just released SonarLint 10.5, which includes a fix to this issue; if it even re-happens, do not hesitate to create a new thread!

2 Likes