Cursor Crashing with error code 5 - Dec 14

Describe the Bug

Cursor crashed when opening a project.

Steps to Reproduce

  1. Open cursor
  2. Open a project

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.20 (Universal)
VSCode Version: 1.105.1
Commit: b3573281c4775bfc6bba466bf6563d3d498d1070
Date: 2025-12-12T06:29:26.017Z
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.2.0

Does this stop you from using Cursor

Yes - Cursor is unusable

This error is also happening with Cursor 2.0.77 when I tried downgrading.

Clearing the application support settings seemed to fix the issue.

cd ~/Library
cd “Application Support“
mv Cursor Cursor2

The issue seemed similar to this bug Error: The window terminated unexpectedly (reason: 'crashed', code: '5')

1 Like

what is application support? why this can be fix issues? asking since sometime i got this problem

After that, when I opened the same project again,the same error occurred.
However, after running the following commands:

cd ~/Library
cd “Application Support”
mv Cursor2 Cursor

the issue was resolved.
The Cursor “Allow command” setting was reset,

but the problem is now fixed.

The cursor settings are stored in the Application Support folder. There is some setting causing the Cursor to crash, and moving the Cursor file to Cursor2 essentially clears all the settings while keeping a backup of your original settings in Cursor2.

Revised solution with better naming:

Clearing the application support settings seemed to fix the issue.

cd ~/Library
cd “Application Support“
mv Cursor CursorBackup

The cursor settings are stored in the Application Support folder. There is some setting causing the Cursor to crash, and moving the Cursor file to CursorBackup essentially clears all the settings while keeping a backup of your original settings in CursorBackup.

The issue seemed similar to this bug Error: The window terminated unexpectedly (reason: 'crashed', code: '5')

Hey there.

Thanks for following up with a workaround, @Trent_Walls. :folded_hands:

There are known issues with large databases, and we are rolling out some changes to address them. Apologies for any interruption.

2 Likes

Hi,

I posted a potential solution in another thread that might be relevant here. I managed to fix a similar crash loop by editing state.vscdb directly, which allows you to recover without wiping out your entire data folder.

Since this error code implies a potential issue with the application state, my solution might work for you as well: Cursor crashes constantly on every restart

Hope this helps!

1 Like

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