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

**URL:** <https://forum.cursor.com/t/the-window-terminated-unexpectedly-reason-crashed-code-5/147525>\
**Category:** Bug Reports\
**Created:** [December 28, 2025, 2:09pm UTC](https://forum.cursor.com/t/the-window-terminated-unexpectedly-reason-crashed-code-5/147525 "2025-12-28T14:09:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![UrbanEgo](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/urbanego/32/73935_2.png) [@UrbanEgo](https://forum.cursor.com/u/UrbanEgo)\
**Post date:** [December 28, 2025, 2:09pm UTC](https://forum.cursor.com/t/the-window-terminated-unexpectedly-reason-crashed-code-5/147525/1 "2025-12-28T14:09:56Z")

</div>

### Where does the bug appear (feature/product)?

Cursor IDE

### Describe the Bug

I permanently get crashes of the cursor app, latest version, macOS.

The app just turns black and tells me:

The window terminated unexpectedly (reason: ‘crashed’, code: "5’)

We are sorry for the inconvenience. You can reopen the window to continue where you left off.

### Steps to Reproduce

Not at all. Sometimes it happens, sometimes the app is stable for about 30 minutes just to crash again. No clue why …

### Screenshots / Screen Recordings

 ![screenshot cursor crash.jpg](https://us1.discourse-cdn.com/cursor1/original/3X/a/9/a90678884b99f2b4a4704b88ec4b598ef800fcdc.jpeg)

### Operating System

MacOS

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.2.44  
VSCode Version: 1.105.1  
Commit: 20adc1003928b0f1b99305dbaf845656ff81f5d0  
Date: 2025-12-24T21:41:47.598Z  
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

---

<div class="post-metadata">

**Author:** ![deanrie](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/deanrie/32/1263_2.png) [@deanrie](https://forum.cursor.com/u/deanrie)\
**Post date:** [December 28, 2025, 4:42pm UTC](https://forum.cursor.com/t/the-window-terminated-unexpectedly-reason-crashed-code-5/147525/2 "2025-12-28T16:42:26Z")

</div>

Hey, thanks for the report.

This is a known crash issue on macOS. Try resetting Cursor’s data, it helped other users:

```auto
cd ~/Library
cd "Application Support"
mv Cursor CursorBackup

```

This will clear your settings while keeping a backup in CursorBackup.

If that doesn’t help, also try:

- Launch without extensions: `cursor --disable-extensions`
- Launch without GPU: `cursor --disable-gpu`

Also please share:

- Help \> Open Logs Folder \> attach main.log
- Your list of installed extensions (if any)
- Whether you’re using devcontainers or any MCP servers

Related solved thread: [Cursor Crashing with error code 5 - Dec 14](https://forum.cursor.com/t/cursor-crashing-with-error-code-5-dec-14/146258)

The team is working on a fix. Let me know if the data reset helps.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/99069_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [January 19, 2026, 4:42pm UTC](https://forum.cursor.com/t/the-window-terminated-unexpectedly-reason-crashed-code-5/147525/3 "2026-01-19T16:42:31Z")

</div>

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