Error: The window terminated unexpectedly (reason: 'crashed', code: '5')

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When opening my existing repository and scrolling up on a chat, I am getting: “The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)”

Steps to Reproduce

  1. have an existing cursor instance
  2. upgrade to v2.1.39
  3. Cursor opens with the default dashboard not into a project
  4. Click on my most recent project
  5. Either get “The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)” or “The window is not responding”

Within 30 seconds, “Cursor Render” uses 5gb+ of RAM

Expected Behavior

Cursor should open as expected

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.1.39 (Universal)
VSCode Version: 1.105.1
Commit: 60d42bed27e5775c43ec0428d8c653c49e58e260
Date: 2025-11-27T02:30:49.286Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 25.1.0

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

Hey, thanks for the report. The massive RAM spike in version 2.1.39 suggests something specific is causing the crash. Let’s narrow it down:

First, try these checks:

  • Run cursor --disable-extensions from the terminal - does it still crash?
  • Open Cursor’s Process Explorer (CMD+Shift+P → “Developer: Open Process Explorer”) - which process shows high memory usage?
  • Open the DevTools Console (Help → Toggle Developer Tools) and share any errors you see.

Let me know what you find!

2 Likes

@deanrie Running cursor --disable-extensions does nothing, also crashes cursor, no terminal output, cursor window shows up for 1 second than exists / crashes.

System info:
```
OS: macOS Tahoe 26.1 arm64
Host: MacBook Air (15-inch, M3, 2024)
Kernel: Darwin 25.1.0
Uptime: 3 days, 3 hours, 11 mins
Packages: 129 (brew), 1 (brew-cask)
Shell: zsh 5.9
Display (Color LCD): 3840x2486 @ 60 Hz (as 192
DE: Liquid Glass
WM: Quartz Compositor 341.1.4
WM Theme: Red (Dark)
Font: .AppleSystemUIFont [System], Helvetica [
Cursor: Fill - Black, Outline - White (32px)
Terminal: Apple Terminal 465
Terminal Font: SFMono-Regular (11pt)
CPU: Apple M3 (8) @ 4.06 GHz
GPU: Apple M3 (10) @ 1.34 GHz [Integrated]
Memory: 16.69 GiB / 24.00 GiB (70%)
Swap: 7.52 GiB / 9.00 GiB (84%)
Disk (/): 167.80 GiB / 460.43 GiB (36%) - apfs
Disk (/Volumes/Cursor Installer): 601.62 MiB )
Local IP (en0): [CENSORED_LOCAL_IP]
Battery (bq40z651): 80% (7 hours, 52 mins rema
Locale: C.UTF-8
```

```log

➜  ~ cursor --disable-extensions --verbose
[main 2025-11-27T11:11:52.039Z] PolicyConfiguration#initialize
[main 2025-11-27T11:11:52.039Z] PolicyConfiguration#updatePolicyDefinitions [
  'update.mode',
  'update.channel',
  'update.showReleaseNotes',
    ... (many initialization policies removed)
  'http.fetchAdditionalSupport',
  'crashReporting.enabled',
  'telemetry.feedback.enabled',
  'telemetry.enableTelemetry'
]
[main 2025-11-27T11:11:52.042Z] [File Watcher (node.js)] Request to start watching: /Users/[USER_NAME]/Library/Application Support/Cursor/User (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>),/Users/[USER_NAME]/Library/Application Support/Cursor/User/settings.json (excludes: <none>, includes: <all>, filter: <none>, correlationId: <none>)
[main 2025-11-27T11:11:52.051Z] Starting VS Code
[main 2025-11-27T11:11:52.052Z] args: {
    ... (many launch arguments removed for brevity)
  'disable-extensions': true,
  verbose: true,
  logsPath: '/Users/[USER_NAME]/Library/Application Support/Cursor/logs/20251127T121152'
}
[main 2025-11-27T11:11:52.052Z] Resolved machine identifier: 9658f2ea600ff1a350f70f487fd4aa50da19f95ed04d4ccf5ccbb354f96a3a5f
[main 2025-11-27T11:11:52.074Z] lifecycle (main): phase changed (value: 2)
[main 2025-11-27T11:11:52.130Z] window#load: attempt to load window (id: 1)
[main 2025-11-27T11:11:52.206Z] updateURL https://api2.cursor.sh/updates/api/update/darwin-arm64/cursor/2.2.0-pre.14.patch.0/9658f2ea600ff1a350f70f487fd4aa50da19f95ed04d4ccf5ccbb354f96a3a5f/dev
[main 2025-11-27T11:11:52.668Z] window#load: window reported ready (id: 1)
[main 2025-11-27T11:11:52.668Z] TracingService: set user to {"email":"[CENSORED_EMAIL]","id":"[CENSORED_USER_ID]"}
[main 2025-11-27T11:11:52.703Z] [UtilityProcess type: ptyHost, pid: <none>]: creating new...
[main 2025-11-27T11:11:52.704Z] PtyHostService#_startPtyHost 
    at Tf._startPtyHost (file:///Applications/Cursor.app/Contents/Resources/app/out/main.js:75:4236)
    ... (long stack trace removed for brevity)
[main 2025-11-27T11:11:52.738Z] [UtilityProcess id: 1, type: extensionHost, pid: <none>]: creating new...
[main 2025-11-27T11:11:52.739Z] [UtilityProcess id: 1, type: extensionHost, pid: 78382]: successfully created
[78372:1127/121152.775196:INFO:CONSOLE:9506] "[TerminalExecutionServiceProxy] Extension host not ready, retrying in 200ms (attempt 2/10)...", source: vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js (9506)

<--- Last few GCs --->

[78372:0x10c00530000]     1134 ms: Mark-Compact 39.5 (55.1) -> 33.7 (55.4) MB, pooled: 0.0 MB, 3.46 / 0.00 ms (+ 1.9 ms in 97 steps since start of marking, biggest step 0.1 ms, walltime since start of marking 19 ms) (average mu = 0.994, current mu = 0.994
[78372:1127/121153.300457:ERROR:electron/shell/common/node_bindings.cc:179] OOM error in V8: Zone Allocation failed - process out of memory
[1127/121153.304071:WARNING:third_party/crashpad/crashpad/util/process/process_memory_mac.cc:94] mach_vm_read(0x16b9d0000, 0x8000): (os/kern) invalid address (1)
[1127/121153.500905:WARNING:third_party/crashpad/crashpad/util/numeric/in_range_cast.h:38] value -97304226 out of range
[1127/121153.501612:WARNING:third_party/crashpad/crashpad/snapshot/mac/mach_o_image_annotations_reader.cc:92] unexpected crash info version 7 in /System/Library/Frameworks/IOSurface.framework/Versions/A/IOSurface
[1127/121153.501635:WARNING:third_party/crashpad/crashpad/snapshot/mac/mach_o_image_annotations_reader.cc:92] unexpected crash info version 7 in /System/Library/Frameworks/Foundation.framework/Versions/C/Foundation
[1127/121153.501648:WARNING:third_party/crashpad/crashpad/snapshot/mac/mach_o_image_annotations_reader.cc:92] unexpected crash info version 7 in /System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation
    ... (the rest of the repetitive Crashpad warnings removed)
[1127/121153.503271:WARNING:third_party/crashpad/crashpad/snapshot/mac/mach_o_image_annotations_reader.cc:92] unexpected crash info version 7 in /usr/lib/dyld
➜  ~

Version:
2.2.0-pre.14.patch.0

d576f9e62b4c634201c236e492be240db8122e50

arm64

@ItsWendell, thanks for the detailed logs. This is clearly a memory leak issue, not an extension problem.

A couple of quick questions to help us narrow this down:

  • Does v2.1.39 work fine for you? (This helps confirm it’s a regression)

I’ll escalate this to the team.

Definitely a memory leak issue and likely related to the existing SQL database (I wiped the Cursor instance / deleted all preferences from Application Support and started my Cursor instance and preferences from scratch ad it is working again)