IDE got slower and slower until it crashed. Seems like there's a memory leak somewhere
Additional context
Stacktrace:
java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached
at java.base/java.lang.Thread.start0(Native Method)
at java.base/java.lang.Thread.start(Thread.java:1553)
at java.base/java.lang.System$2.start(System.java:2577)
at java.base/jdk.internal.vm.SharedThreadContainer.start(SharedThreadContainer.java:152)
at java.base/java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:953)
at java.base/java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1375)
at com.intellij.util.concurrency.AppScheduledExecutorService$BackendThreadPoolExecutor.execute(AppScheduledExecutorService.java:148)
at java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:123)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.executeOnPooledThread(AnyThreadWriteThreadingSupport.kt:127)
at com.intellij.openapi.application.impl.ApplicationImpl.executeOnPooledThread(ApplicationImpl.java:233)
at com.sourcegraph.cody.agent.CodyAgentService$Companion.withAgent(CodyAgentService.kt:179)
at com.sourcegraph.cody.agent.CodyAgentService$Companion.withAgent$default(CodyAgentService.kt:171)
at com.sourcegraph.cody.agent.CodyAgentService$Companion.withAgent(CodyAgentService.kt:202)
at com.sourcegraph.cody.listeners.CodySelectionListener.selectionChanged(CodySelectionListener.kt:25)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.intellij.util.EventDispatcher.dispatchVoidMethod(EventDispatcher.java:119)
at com.intellij.util.EventDispatcher.lambda$createMulticaster$1(EventDispatcher.java:84)
at jdk.proxy2/jdk.proxy2.$Proxy141.selectionChanged(Unknown Source)
at com.intellij.openapi.editor.impl.SelectionModelImpl.broadcastSelectionEvent(SelectionModelImpl.java:81)
at com.intellij.openapi.editor.impl.SelectionModelImpl.fireSelectionChanged(SelectionModelImpl.java:75)
at com.intellij.openapi.editor.impl.CaretImpl.lambda$removeSelection$7(CaretImpl.java:1203)
at com.intellij.openapi.editor.impl.CaretModelImpl.doWithCaretMerging(CaretModelImpl.java:412)
at com.intellij.openapi.editor.impl.CaretImpl.removeSelection(CaretImpl.java:1193)
at com.maddyhome.idea.vim.newapi.IjVimCaret.removeSelection(IjVimCaret.kt:173)
at com.maddyhome.idea.vim.helper.EngineModeExtensionsKt.exitVisualMode(EngineModeExtensions.kt:29)
at com.maddyhome.idea.vim.action.motion.visual.VisualExitModeAction.runAsMulticaret(VisualExitModeAction.kt:37)
at com.maddyhome.idea.vim.handler.VimActionHandler.baseExecute(VimActionHandler.kt:89)
at com.maddyhome.idea.vim.handler.EditorActionHandlerBase.doExecute(EditorActionHandlerBase.kt:135)
at com.maddyhome.idea.vim.handler.EditorActionHandlerBase.execute$lambda$0(EditorActionHandlerBase.kt:94)
at com.maddyhome.idea.vim.handler.EditorActionHandlerBase.execute(EditorActionHandlerBase.kt:112)
at com.maddyhome.idea.vim.helper.IjActionExecutor.executeVimAction$lambda$1(IjActionExecutor.kt:195)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:217)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
at com.maddyhome.idea.vim.helper.IjActionExecutor.executeVimAction(IjActionExecutor.kt:193)
at com.maddyhome.idea.vim.KeyHandler$ActionRunner.run(KeyHandler.kt:348)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction$lambda$2(AnyThreadWriteThreadingSupport.kt:217)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:228)
at com.intellij.openapi.application.impl.AnyThreadWriteThreadingSupport.runReadAction(AnyThreadWriteThreadingSupport.kt:217)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:847)
at com.maddyhome.idea.vim.helper.RunnableHelper.runReadCommand$lambda$1(RunnableHelper.kt:26)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:217)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:178)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:168)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:154)
at com.maddyhome.idea.vim.helper.RunnableHelper.runReadCommand(RunnableHelper.kt:26)
at com.maddyhome.idea.vim.newapi.IjVimApplication.runReadCommand(IjVimApplication.kt:66)
at com.maddyhome.idea.vim.KeyHandler.executeCommand(KeyHandler.kt:259)
at com.maddyhome.idea.vim.KeyHandler.finishedCommandPreparation$vim_engine(KeyHandler.kt:184)
at com.maddyhome.idea.vim.KeyHandler.processKey$lambda$10$lambda$7(KeyHandler.kt:155)
at com.maddyhome.idea.vim.KeyProcessResult$SynchronousKeyProcessBui...
IDE Information
IntelliJ IDEA 2024.2.3 (Ultimate Edition) Build #IU-242.23339.11, built on September 24, 2024 Licensed to Indeed
Runtime version: 21.0.4+13-b509.17 aarch64 (JCEF 122.1.9) VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Toolkit: sun.lwawt.macosx.LWCToolkit macOS 14.6.1 GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation Memory: 4096M Cores: 10 Metal Rendering is ON Registry: debugger.new.tool.window.layout=true ide.experimental.ui=true idea.ignore.disabled.plugins=true i18n.locale= java.additional.external.annotations.root.url=file:///Users/jsnelgrove/.gradle/indeed_ij_annotations scala.erase.compiler.process.jdk.once=false eslint.additional.file.extensions=svelte ide.images.show.chessboard=true Non-Bundled Plugins: com.intellij.javafx (1.0.4) detekt (2.4.2) com.thvardhan.gradianto (5.5) IdeaVIM (2.16.0) org.jetbrains.plugins.go (242.23339.11) com.intellij.notebooks.core (242.22855.32) intellij.jupyter (242.23339.11) com.4lex4.intellij.solarized (2.4.0) org.intellij.plugins.hcl (242.23339.11) PythonCore (242.23339.11) com.jetbrains.CyanTheme (1.3) com.jetbrains.darkPurpleTheme (1.3) com.jetbrains.space (242.23339.11) com.tang (1.4.14-IDEA242) org.jetbrains.plugins.hocon (2024.2.0) CheckStyle-IDEA (5.98.0) com.github.camork.fileExpander (2.5) com.markskelton.one-dark-theme (5.12.0) org.jetbrains.plugins.localization (242.20224.159) org.jetbrains.plugins.kotlin.jupyter (242.22855.74) Pythonid (242.23339.11) com.intellij.nativeDebug (242.21829.165) com.sourcegraph.jetbrains (7.0.18) mobi.hsz.idea.gitignore (4.5.4) org.jetbrains.plugins.astro (242.22855.32) dev.blachut.svelte.lang (242.22855.32) LivePlugin (0.9.3 beta) com.github.inxilpro.intellijalpine (v0.4.2) mdx.js (242.20224.159) org.intellij.prisma (242.22855.32) com.intellij.lang.jsgraphql (242.21829.3) deno (242.21829.3) org.intellij.scala (2024.2.29) izhangzhihao.rainbow.brackets (2024.2.7-241) Kotlin: 242.23339.11-IJ
Bug Description
IDE got slower and slower until it crashed. Seems like there's a memory leak somewhere
Additional context
Stacktrace: