Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
On Linux, Cursor is repeatedly killed by the kernel OOM killer. The desktop
notification blames app-org.chromium.Chromium-.scope, but that systemd
scope is Cursor itself (Electron), not the Chromium browser.
Root cause from journalctl: one or more shellcheck processes (ShellCheck
extension timonwong.shellcheck + /usr/bin/shellcheck 0.11.0) run inside
Cursor’s cgroup and allocate pathological RAM (~11–27 GiB RSS, ~1 TiB
virtual). The kernel kills shellcheck; systemd then SIGKILLs all cursor
processes in the scope. Peak scope usage ~28 GiB RAM + ~29 GiB swap on a
31 GiB machine.
This correlates with Agent (agent-loop wakelock) on a workspace with many
large Bash scripts (~549 *.sh under ~/w/serv-vidy).
Steps to Reproduce
- Install Cursor 3.12.30 on Ubuntu 26.04 (31 GiB RAM).
- Enable extension timonwong.shellcheck (shellcheck 0.11.0 available).
- Open a workspace with many large Bash scripts (tens of KiB each; hundreds of files).
- Start an Agent chat and work (edit/open .sh files so ShellCheck lints).
- Within minutes to ~2 hours: system OOM; Plasma shows
“Falta de memória evitada” for app-org.chromium.Chromium-.scope;
Cursor window dies / is SIGKILL’d.
Expected Behavior
- A runaway shellcheck/linter child must not take down the entire IDE.
- Child tools should be in a separate cgroup or have MemoryMax so OOM is
limited to the linter. - systemd/desktop app id should be co.anysphere.cursor / “Cursor”, not
org.chromium.Chromium (misleading notifications). - Agent-loop should cancel extreme child RSS instead of dying with the scope.
Screenshots / Screen Recordings
Operating System
Linux
Version Information
Cursor: 3.12.30 (stable)
Commit: 63a2996a10d9e476b6c28e951dd7691d9c0cf480
OS: Ubuntu 26.04 LTS (Resolute Raccoon)
Kernel: Linux 7.0.0-28-generic x86_64
RAM: 31 GiB + 32 GiB swap
Extensions: timonwong.shellcheck-0.39.5-linux-x64, mads-hartmann.bash-ide-vscode-1.43.0
shellcheck: 0.11.0-2 (Debian/Ubuntu package)
For AI issues: which model did you use?
Agent mode. Crash-time model name is not stored in local requestTraces;
please resolve via Request ID below.
This follow-up / diagnostic chat used: Cursor Grok 4.5.
For AI issues: add Request ID with privacy disabled
18ee323f-9961-4185-a0cb-c96109a7778a
Additional Information
Repeated same-day OOMs (all shellcheck inside Cursor scope):
- 10:51 scope …-3133 ~24 GiB shellcheck; scope peak 28.3G / swap 28.1G
- 11:10 scope …-26949 ~11 GiB shellcheck; peak 28.4G / swap 28.7G
- 11:29 scope …-33830 ~21 GiB shellcheck; peak 28.8G / swap 29.2G
- 12:04 scope …-43598 shellcheck pid 47472 ~26.1 GiB anon-rss;
5 concurrent shellcheck PIDs; then 12:06 scope peak 27.9G / swap 28.6G;
Killing process 43598 (cursor) SIGKILL
Kernel: “cursor invoked oom-killer”; memcg=
/user.slice/…/app-org.chromium.Chromium-43598.scope
flatpak uninstall org.chromium.Chromium → not installed (false lead).
Does this stop you from using Cursor
Yes - Cursor is unusable

