Crashed Code 5 keeps on crashing

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Seeing this a lot in current and last versions.
Editor has crashed 5 or 6 times in last week.
Always while its almost finished writing lots of code. On reboot its lost everything from the last prompt. The code is written, but its lost from the stream and apparently llm memory that it completed the task, or how far it got. So you have to re-prompt it and it has to check every file to see what it has or hasn’t already fixed. With something like opus that can be 10 mins of work involving lots of files.

Steps to Reproduce

Use opus to do complex tasks

Expected Behavior

Not crash and forget what it did

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.5.25
VSCode Version: 1.105.1
Commit: 7150844152b426ed50d2b68dd6b33b5c5beb73c0
Date: 2026-02-24T07:17:49.417Z (21 hrs ago)
Build Type: Stable
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Darwin x64 23.6.0

For AI issues: which model did you use?

opus high

Does this stop you from using Cursor

No - Cursor works, but with this issue

1 Like

Hey, crash code 5 on macOS means the renderer process ran out of memory. This is a known issue, especially with long agent sessions that edit a lot of files.

A few things to try:

  1. Start new chats more often. Don’t keep one long chat. When the agent edits lots of files in one session, memory usage can grow until it crashes. Close the chat and start a new one from time to time.

  2. Check if your project folder is inside an iCloud-synced directory (Desktop, Documents). If it is, move it to a local path like ~/dev.

  3. Try without extensions:

    cursor --disable-extensions
    

    If the crashes stop, turn extensions back on one by one to find the one causing it.

  4. Watch memory before the next crash: Cmd+Shift+PDeveloper: Open Process Explorer. If the renderer goes above 3 to 4 GB, that confirms it’s an OOM. A screenshot would be really helpful.

  5. Try disabling GPU hardware acceleration:

    cursor --disable-gpu
    

About losing context after a crash, sadly, if the renderer crashes during streaming, the chat state isn’t fully saved. For now, the best workaround is shorter, more focused chats.

If none of that helps, I’ll need:

  • Logs from Help > Open Logs Folder (the main.log around the crash time)
  • Your list of installed extensions
  • Whether you’re using a VPN or proxy

The team is aware of the issue. Let me know how it goes.

thanks for the reply Dean..

its happened a couple more times since I posted this. seems pretty consistent with any multi step task now. I think opus is just way more powerful than the earlier models and the editor can’t keep up?

no extensions enabled.

”cursor --disable-gpu” where am I typing this? can’t get it to do anything anywhere i’ve tried.

”Help > Open Logs Folder” can’t find this either, you mean Process Explorer?
That’s through the roof on mem and cpu. 500% at one point, but it crashed 30 mins ago at 200%

I see the screenshots. The Renderer is at 2.5 GB, so that confirms it’s an OOM. Thanks for sending that.

About what you can’t find:

cursor --disable-gpu: you need to run this from the macOS Terminal app (Terminal or iTerm), not inside Cursor. Fully quit Cursor, open Terminal, and run:

cursor --disable-gpu

Help > Open Logs Folder: try it via the Command Palette: Cmd+Shift+P > “Open Logs Folder”. I need the main.log file from there. I’m interested in the part around the crash.

Since extensions are already disabled and it still crashes, a couple more things:

  1. For now, the most reliable workaround is to split tasks into smaller steps. Opus generates a lot of content at once, and the renderer can’t handle it. Instead of one big request across 10+ files, do 2 to 3 files at a time and start a new chat.

  2. Fully restart Cursor every 1 to 1,5 hours (Cmd+Q, not just Reload Window).

This is a known issue and the team is aware. Your report helps prioritize a fix. Let me know if any of this helps at least reduce how often it crashes.

i disabled gpu

my main.log only contains a few lines, since the last restart.

i’ve been using cursor for like 21 hours now, there were at least 4 crashes in this session.

obviously its super inconvenient to keep starting new chats, and forcing a powerful model to limp along. but as long as your guys know how serious an issue it is, i’ll not ■■■■■ about it any more and leave you all to fix it :slight_smile:

cheers

çözüldü mü sorun