SonarLint 10.4.1 - ContainerDisposedException: 'ProjectImpl@... services' was disposed

I updated to SonarLint 10.4.2.78113, and today I updated IntelliJ IDEA to version 2024.1 (Ultimate Edition). The error with the ContainerDisposedException is gone and the code analysis is now running for just some seconds. But now, a new exception popped up related to SonarLint:

Environment:

  • Java: JetBrains s.r.o. 17.0.10
  • OS: Windows 11 amd64
  • IDE: IntelliJ IDEA 2024.1
  • SonarLint: 10.4.2.78113
c.ij.oa.diagnostic.RuntimeExceptionWithAttachments: Read access is allowed from inside read-action only (see Application.runReadAction()); see https://jb.gg/ij-platform-threading for details
Current thread: Thread[sonarlint-vfs-events-notifier,6,main] 468185796 (EventQueue.isDispatchThread()=false)
SystemEventQueueThread: Thread[AWT-EventQueue-0,6,main] 116182174
	at c.ij.util.concurrency.ThreadingAssertions.createThreadAccessException(ThreadingAssertions.java:180)
	at c.ij.util.concurrency.ThreadingAssertions.softAssertReadAccess(ThreadingAssertions.java:131)
	at c.ij.oa.application.impl.ApplicationImpl.assertReadAccessAllowed(ApplicationImpl.java:908)
	at c.ij.psi.impl.source.PsiFileImpl.assertReadAccessAllowed(PsiFileImpl.java:182)
	at c.ij.psi.impl.source.PsiFileImpl.getStubTree(PsiFileImpl.java:617)
	at c.ij.psi.impl.source.PsiFileImpl.getGreenStubTree(PsiFileImpl.java:952)
	at c.ij.psi.impl.source.PsiFileImpl.getGreenStub(PsiFileImpl.java:607)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.getGreenJSFileStub(JSFileBaseImpl.java:65)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.getCachedData(JSFileBaseImpl.java:52)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.getTestFileType(JSFileBaseImpl.java:124)
	at c.ij.lang.javascript.psi.impl.JSFileBaseImpl.isTestFile(JSFileBaseImpl.java:119)
	at c.ij.javascript.testFramework.JsTestFileIndexingHandler.isTestFile(JsTestFileIndexingHandler.java:92)
	at c.ij.javascript.testing.JsTestSourcesFilter.isTestSource(JsTestSourcesFilter.java:12)

Thank you the confirmation. This error is unrelated to the ContainerDisposedException, you can get more information on this thread.

We will fix it for the next release that will come soon, and unless it’s a blocking error for you, you can ignore it.