Code 5 crash need help

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

i keep gettng this code 5 error everytime i run a prompt within cursor. im new to cursor and i have been using it for a long project and i have seen in other threads that deleting chat history helps but i need the chat history and my chat is not that long to begin with

Steps to Reproduce

simply just running any prompt reproduces the error however it diesnt happen every time, mayne every second or thrid prompt

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.4.28
VSCode Version: 1.105.1
Commit: f3f5cec40024283013878b50c4f9be4002e0b580
Date: 2026-02-03T00:56:18.293Z (4 days ago)
Build Type: Stable
Release Track: Default
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 23.6.0

For AI issues: which model did you use?

auto mode

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After I updated today, Cursor keeps freezing and crashing every 5 minutes. If it crashes, the error is “The window terminated unexpectedly (reason: ‘crashed’,
code: ‘5’)”.

Steps to Reproduce

I use Team plan and Opus through AWS API key.

Screenshots / Screen Recordings

Operating System

MacOS

Version Information

Version: 2.4.30
VSCode Version: 1.105.1
Commit: 0f8217a84adf66daf250228a3ebf0da631d3c9b0
Date: 2026-02-06T23:20:57.191Z (18 hrs ago)
Build Type: Stable
Release Track: Early Access
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Darwin arm64 24.6.0

For AI issues: which model did you use?

AWS API key + eu.anthropic.claude-opus-4-5-20251101-V1:0v

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. This is a known issue, a few users are seeing the same code 5 crash on macOS.

Try these steps to help diagnose it:

  1. Reset Cursor data (this helped a few users):
cd ~/Library/Application\ Support/
mv Cursor CursorBackup

This will reset your settings, but keep a backup in CursorBackup.

  1. Check extensions:
cursor --disable-extensions

If the crashes stop, one of the extensions is the cause.

  1. If that didn’t help:
cursor --disable-gpu

We’ll need logs to pass to the team:

  • Help > Open Logs Folder > send main.log here
  • Help > Toggle Developer Tools > Console, send a screenshot if you see errors
  • The Request ID from the chat where it crashes (Chat context menu > Copy Request ID)
  • A list of installed extensions
  • Whether you’re using MCP servers or devcontainers

It’s already logged, but the more data we have, the faster the team can narrow it down. Let me know what the tests above show.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.