Cursor crashes all the time (code 5)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

Cursor IDE has become completely unusable after the latest update (v2.6.21). The following issues are observed:

  • Cursor always terminates with exit code 5, reason: crash. This behavior is not related to any specific AI model.
  • The crash is specifically triggered when entering a prompt — the application can be opened and remains stable until a prompt is typed.
  • Cursor consumes excessive RAM, causing degraded performance within the application itself. macOS and other applications remain unaffected.
  • Overall usability is degraded — the application feels sluggish and unresponsive.
  • The prompt cursor blinks erratically and sometimes appears to hang/freeze.

I would like to downgrade to version 2.6 (a previous stable release), but the download page only offers a downgrade to v2.5.

Prior to the last update, Cursor was working reasonably well.

Steps to Reproduce

Open Cursor IDE
Open a project or start a session
Begin typing a prompt in the prompt input field
Observe: application crashes with exit code 5, reason crash

Expected Behavior

  • Cursor should launch and remain stable without crashing.
  • Entering a prompt should not cause a crash — the prompt should be submitted and processed normally.
  • Cursor should manage memory efficiently and not consume all available RAM.
  • The UI should be responsive, with no hanging or erratic cursor blinking.
  • It should be possible to run two instances simultaneously, as before.
  • A downgrade path to v2.6.x (a previous stable build) should be available.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.6.21
VSCode Version: 1.105.1
Commit: fea2f546c979a0a4ad1deab23552a43568807590
Date: 2026-03-21T22:09:10.098Z
Build Type: Stable
Release Track: Default
Electron: 39.8.1
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Darwin arm64 25.3.0

For AI issues: which model did you use?

Irrelevant

For AI issues: add Request ID with privacy disabled

Not applicable

Does this stop you from using Cursor

Yes - Cursor is unusable

1 Like

Hi @ThorBl ,

Thanks for the message, and sorry to hear about the Cursor app crashing. This issue sounds similar to the recent macOS code: 5 crash pattern some users have been hitting in 2.6.x.

As a first pass, could you please try these steps:

  1. Upgrade to the latest Cursor version + Restart.

  2. Launch Cursor with extensions disabled and see if the crash still happens:
    cursor --disable-extensions

  3. Try launching with GPU disabled:
    cursor --disable-gpu

  4. Check whether the project is inside an iCloud-synced folder like Desktop or Documents. If so, move it to a local path like that is not iCloud-synced and retry.

  5. If it still reproduces, please send:

    • main.log from Command Pallette: Developer: Open Logs Folder. You can access it with Command+Shift+P on the Mac, then type in “Developer: Open Logs Folder”.

    • a screenshot of Developer: Open Process Explorer right before the crash

    • your installed extensions list

    • whether you’re using any MCP servers

Thanks!

Thanks for the suggestions. I will keep an eye on the log files if this happens again. So far, everything runs smoothly. I investigated a bit and it seems like the issue was related to a specific chat.

  • At first it looked like the issue was related to the size of the chat, because starting a fresh, clean chat works perfectly without any issues, while the problematic chat (export size around 163 KB) repeatedly caused hangs and unresponsiveness (e.g., clicking Run).

  • However, it now seems that the problem was bound to this particular chat, rather than to chat size alone. It might be that one specific prompt in that chat caused the Agent to behave unhealthily (e.g., getting stuck in some internal loop or state), rather than a hard size limit.

  • I eventually had to delete the problematic chat entirely, because it was stuck in an endless “Thinking…” loop. The chat was grayed out, and it was not possible to stop the Agent, so deletion was the only option.

  • After deleting that specific chat, Cursor went back to normal behavior in other chats.

The following log entries were found :

  • Multiple repeated occurrences of the following error were found in the logs, suggesting a missing or inaccessible transcript file:
2026-03-25 08:05:23.108 [error] [FileAppendMainService] Failed to append to file: ~/.cursor/projects/project1/agent-transcripts/d514d61a-ef2c-4d79-bd3b-a805098dd0f9/d514d61a-ef2c-4d79-bd3b-a805098dd0f9.jsonl A system error occurred (ENOENT: no such file or directory, open '~/.cursor/projects/project1/agent-transcripts/d514d61a-ef2c-4d79-bd3b-a805098dd0f9/d514d61a-ef2c-4d79-bd3b-a805098dd0f9.jsonl')
  • When the application fully crashes, the following entry appears in the logs, confirming the exit code 5 and reason crashed:
2026-03-25 08:20:41.823 [error] CodeWindow: renderer process gone (reason: crashed, code: 5)

This suggests there may be a combination of factors:

  • A specific chat and/or prompt that puts the Agent into a bad state (e.g., endless “Thinking…” loop, unresponsive UI), and

  • A missing transcript file (ENOENT on the .jsonl file) that the Agent is repeatedly trying to write to.

3 Likes