sourcegraph / jetbrains

Apache License 2.0
73 stars 23 forks source link

bug: com.intellij.serviceContainer.AlreadyDisposedException: Container is already disposed #2653

Open cbgrasshopper opened 3 hours ago

cbgrasshopper commented 3 hours ago

IDE Information

JetBrains Rider 2024.2.7 Build #RD-242.23726.100, built on October 22, 2024 Licensed to Christopher Bradford You have a perpetual fallback license for this version. Subscription is active until October 17, 2025. Runtime version: 21.0.4+13-b509.26 aarch64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 15.1 .NET Core v8.0.4 ARM64 (Server GC) GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 4096M Cores: 12 Metal Rendering is ON Registry: ide.balloon.shadow.size=0 ide.intellij.laf.enable.animation=true ide.experimental.ui=true i18n.locale= Non-Bundled Plugins: com.intellij.datagen (242.20224.159) uk.co.hadoopathome.intellij.avro.intellijavroviewer (3.1.0) com.github.leomillon.uuidgenerator (4.5.1) fluentvalidation-rider (2024.2.0) lermitage.intellij.extratci (2024.5.4) com.intellij.resharper.HeapAllocationsViewer (2024.2.0) com.berzanmikaili.intellij.monokai_pro (2.0.2c) fluentassertions-rider (2024.2.0) org.intellij.plugins.hcl (242.23339.11) com.thvardhan.gradianto (5.5) PythonCore (242.23726.103) org.toml.lang (242.20224.155) com.vecheslav.darculaSolidTheme (1.0.3) com.elliotwaite.godot_theme (1.1.0) com.mallowigi.idea (23.0.0) aws.toolkit.core (3.40-242) wallaby.js (1.0.311) com.jetbrains.space (242.23726.16) com.hiberbee.intellij.hiberbee-theme (2024.2.28.2100) color.scheme.Monokai Materialized (1.1) monokai-pro (1.10) quokka.js (1.0.457) com.jetbrains.rider.android (242.23726.100) org.jetbrains.plugins.go-template (242.20224.155) one.util.ideaplugin.screenshoter (1.8.1) nsubstitutecomplete-rider (2024.2.0) com.vecheslav.darculaDarkerTheme (1.2.0) com.intellij.ideolog (242.23726.110) com.markskelton.one-dark-theme (5.12.0) cognitivecomplexity-rider (2024.2.0) fr.socolin.application-insights-debug-log-viewer (2024.2.0) String Manipulation (9.14.1) com.github.ushiosan23.darktheme (1.0.2) Key Promoter X (2024.2.2) com.yemreak.DarkCode-Theme (1.1) pl.tigersoft.intellij.faker (1.3.0) net.seesharpsoft.intellij.plugins.file-preview (1.6.4) Abc.MoqComplete.Rider (2024.1.1.1) AceJump (3.8.20) indent-rainbow.indent-rainbow (2.2.0) com.intellij.resharper.StructuredLogging (2024.2.0.339) com.samdark.intellij-visual-studio-code-dark-plus (2.9.0) net.reqnroll (2024.2.2) com.intellij.aqua (242.23726.162) gherkin (242.20224.159) com.intellij.ml.llm (242.23726.20) net.seesharpsoft.intellij.plugins.csv (4.0.0) com.intellij.bigdatatools.core (242.23726.103) com.intellij.bigdatatools.binary.files (242.20224.159) com.intellij.bigdatatools.rfs (242.23726.103) com.github.ArtsiomCh.NestedBracketsColorer (0.7.2) com.intellij.tide (242.23726.162) com.github.dinbtechit.vscodetheme (1.10.12) com.github.copilot (1.5.29.7524) org.sonarlint.idea (10.12.0.79769) codiumai.codiumai (0.12.0) com.sourcegraph.jetbrains (7.1.0) com.microsoft.vso.idea (1.162.2) com.mallowigi (97.0.0) mobi.hsz.idea.gitignore (4.5.4) color.scheme.GapStyle (4.1) com.intellij.resharper.azure (4.2.6) aws.toolkit (3.40-242) izhangzhihao.rainbow.brackets.lite (1.2.0)

Bug Description

IDE reported an error

Additional context

Stacktrace:


com.intellij.serviceContainer.AlreadyDisposedException: Container is already disposed
    at com.intellij.serviceContainer.ComponentManagerImplKt.throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1672)
    at com.intellij.serviceContainer.ComponentManagerImplKt.access$throwAlreadyDisposedIfNotUnderIndicatorOrJob(ComponentManagerImpl.kt:1)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:716)
    at com.intellij.serviceContainer.ComponentManagerImpl.getService(ComponentManagerImpl.kt:690)
    at com.sourcegraph.cody.agent.CodyAgentService$Companion.getInstance(CodyAgentService.kt:227)
    at com.sourcegraph.cody.agent.CodyAgentService$Companion.withAgent$lambda$2(CodyAgentService.kt:191)
    at com.intellij.concurrency.client.ClientIdPropagation.captureClientIdInRunnable$lambda$3(ClientIdPropagation.kt:43)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport$executeOnPooledThread$1.run(AnyThreadWriteThreadingSupport.kt:134)
    at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
    at com.intellij.concurrency.client.ClientIdPropagation.captureClientIdInCallable$lambda$5(ClientIdPropagation.kt:53)
    at com.intellij.util.concurrency.ContextCallable.call(ContextCallable.java:32)
    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
    at com.intellij.concurrency.client.ClientIdPropagation.captureClientIdInRunnable$lambda$3(ClientIdPropagation.kt:43)
    at com.intellij.util.concurrency.ContextRunnable.run(ContextRunnable.java:27)
    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:735)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:732)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:400)
    at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:732)
    at java.base/java.lang.Thread.run(Thread.java:1583)
Caused by: com.intellij.platform.instanceContainer.internal.ContainerDisposedException: Container 'ProjectImpl@2059792392 services' was disposed
    at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:60)
    at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.state(InstanceContainerImpl.kt:40)
    at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.getInstanceHolder(InstanceContainerImpl.kt:277)
    at com.intellij.serviceContainer.ComponentManagerImpl.doGetService(ComponentManagerImpl.kt:712)
    ... 18 more
Caused by: com.intellij.platform.instanceContainer.internal.DisposalTrace
    at com.intellij.platform.instanceContainer.internal.InstanceContainerImpl.dispose(InstanceContainerImpl.kt:266)
    at com.intellij.serviceContainer.ComponentManagerImpl.dispose(ComponentManagerImpl.kt:1164)
    at com.intellij.openapi.project.impl.ProjectImpl.dispose(ProjectImpl.kt:321)
    at com.intellij.openapi.util.ObjectTree.runWithTrace(ObjectTree.java:131)
    at com.intellij.openapi.util.ObjectTree.executeAll(ObjectTree.java:163)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:205)
    at com.intellij.openapi.util.Disposer.dispose(Disposer.java:193)
    at com.intellij.openapi.project.impl.ProjectManagerImpl.closeProject$lambda$15(ProjectManagerImpl.kt:423)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction$lambda$4(AnyThreadWriteThreadingSupport.kt:318)
    at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runWriteAction(AnyThreadWriteThreadingSupport.kt:328)
    at com.intellij.openapi.application.impl.AnyThr...
linear[bot] commented 3 hours ago

BUGS-736 bug: com.intellij.serviceContainer.AlreadyDisposedException: Container is already disposed