After some time coding, Cursor crashes and shows a window:
“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”.
Hey, I see a screenshot from Process Explorer showing a 2.8 GB peak across 18 processes, that really doesn’t look like a typical OOM. Thanks for the logs, they confirm the renderer is crashing repeatedly (09:41 and 09:47).
Since a few users in this thread report crashes right after updating to 2.6.11, this looks more like a regression in that version.
A few things that would help narrow it down:
I see the CodeStream extension (294 MB, 10.5%) and three extension-host processes totaling about 1.1 GB. Can you share your full extension list? Also try running cursor --disable-extensions. If it stops crashing, it’s likely one of the extensions.
Are you using MCP servers?
If you haven’t already, try --disable-gpu. Exit code 5 is sometimes related to the GPU or the rendering process, not memory.
I think this is rendering problem of the tool responses. I see the problem on 2.5.x and 2.6.x version, not on.
I’m using Cursor on Ubuntu 24.04
Scenario:
Do query like this: `XXX tool: ‘YYY’ - use this tool to get information how to … . Do several queries in parallel` with Composer
In 70% after received tool responses (for 4-5 tool calls), the Cursor freeze. You need to wait 1-5min to become responsible and start working again.
Next close Cursor with the chat visible and open it again. It will start with the last project with chat open and here it become unresponsive/freeze for couple of minutes. Then unfreeze
Starting new Chat, again freeze Cursor.
At the end, the project cannot be use in Cursor anymore.
I’m using tool to query RAG and it returns JSON - list of documents in markdown with links, images, tables, etc, + sources ~8k tokens. I think such tool response kills Cursor especial when several tool calls is done in parallel.
The window terminated unexpectedly (reason: 'crashed', code: '5')
Console errors:
Activating extension 'anysphere.cursor-socket' failed: Cannot find module
'/Applications/Cursor.app/Contents/Resources/app/extensions/cursor-socket/out/main'
[transport] ConnectError: [unauthenticated] You must be a team member to access this resource
Troubleshooting already completed (none resolved the issue):
Updated Cursor via Cmd+Shift+P > “Cursor: Attempt Update”
Fully uninstalled, emptied Trash, and did a clean reinstall from Cursor · Download
Disabled majority of extensions, including github.vscode-pull-request-github and openai.chatgpt which had API proposal errors
Reduced project/codebase size
Checked macOS Privacy & Security settings
Issue started suddenly today with no changes made to the setup
Summary: The anysphere.cursor-socket core internal extension fails to activate on every launch after multiple clean installs. Cursor crashes within moments of opening. This appears to be a broken or missing file in the distributed build, not a user-side configuration issue.
Also getting a crash after the last update with multiple models after testing. Looks like complex tasks might be the issue here but can’t confirm. Causing additional credit usage after each crash.
Hi all, tried a lot of things.
Uninstalling and then installing the previous version 2.5.x works. Not the best fix for now but at least you can still use it and keep going
I still see a problem with freezing during the rendering of folded previews of tool responses, especially when they are called in parallel. I think the issue might be related to downloading or processing URI images from the markdown response or processing not-well formatted markdown. I didn’t notice this problem in version 2.4 with the simple preview.