Describe the Bug
Cursor window crashes every 5-10 minutes with code 5 — only one specific workspace, survives all troubleshooting
Environment:
macOS ARM64 (Apple Silicon)
Cursor 2.6.13 (also reproduced on 2.6.11, 2.6.12)
Workspace: Python/Django project (~4,600 files after cleanup, originally ~95,000)
Description: One specific workspace consistently crashes the renderer process every 5-10 minutes with The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’). Other workspaces open at the same time (mixedstuff, ecuro) never crash. Only this workspace.
What I’ve tried — none of these fixed it:
Fresh Cursor reinstall (3 times)
–disable-extensions (all extensions disabled, including bundled)
–disable-gpu
Removed all third-party extensions (GitLens, Atlascode, Laravel pack, etc.)
Deleted workspace storage / repo cache under ~/Library/Application Support/Cursor/User/workspaceStorage/
Deleted .git/cursor/crepe index cache
Moved project out of iCloud-synced Desktop to ~/dev/
Shallow cloned the repo (from 17,000 commits / 425MB .git to 100 commits / 51MB .git)
Added aggressive .cursorignore excluding venvs, node_modules, data files
Switched from prerelease to stable release track
Enabled Privacy Mode
Set “telemetry.telemetryLevel”: “off”
Crash pattern:
Always the same workspace window
Crashes ~5-10 minutes after opening
main.log shows: CodeWindow: renderer process gone (reason: crashed, code: 5)
No useful stack trace in renderer.log — crash happens below Cursor’s logging level
Extension host exits cleanly with code 0 (it’s the renderer dying, not extensions)
Additional observations from logs:
[AgentAnalyticsOperationsMainService] Error getting AI code hashes: Maximum call stack size exceeded appeared in earlier sessions
Bundled extension anysphere.cursor-socket fails to load every session (Cannot find module …/cursor-socket/out/main) — the out/ directory is missing from the app bundle
OTLPExporterError (“Trace spans collection is not enabled for this user”) fires repeatedly every ~8 seconds in every window
Logs attached: Full session logs from 20260306T163227 including main.log and all window renderer/exthost logs.
Steps to Reproduce
jsut opening that repo and keep it open for 5min
Expected Behavior
not crash
Operating System
MacOS
Version Information
Cursor 2.6.13 (also reproduced on 2.6.11, 2.6.12)
For AI issues: which model did you use?
gpt5.4 but also others
Additional Information
Additional technical details from crash logs:
Crash timing pattern:
Crash 1: window opened at 16:32:29, crashed at 16:37:38 — exactly 5 min 9 sec after open
Crash 2: window reopened at 16:38:53, crashed at 16:44:00 — exactly 5 min 7 sec after open
Crash 3: window reopened at 17:04:13, crashed at 17:05:21 — 1 min 8 sec after open
The ~5 minute interval matches the CursorProclistService subsample polling cycle (configured at 10-second subsamples, 5-minute sample collection).
Crash is always the Inventree window. Other windows (mixedstuff, ecuro) open at the same time in the same Cursor process never crash.
Indexer completes successfully before the crash:
Remote indexing handshake succeeds: STATUS_UP_TO_DATE
Local grep index builds in ~1.5 seconds, reports index OK
2,381 embeddable files synced, no errors
Indexing finishes within 4 seconds of window open
Crash happens ~5 minutes later, long after indexing is done
What happens at crash moment:
Extension host logs only show Canceled: Canceled (clean teardown after renderer dies)
main.log shows Render frame was disposed before WebFrameMain could be accessed immediately after crash
No stack trace, no OOM message, no extension error — the renderer just dies
Bundled extension issue (present in all windows, not just Inventree):
anysphere.cursor-socket fails to load every session: Cannot find module …/cursor-socket/out/main
The out/ directory is missing from the app bundle — only package.json exists in that extension folder
Other noise (present but likely not causal):
OTLPExporterError: Trace spans collection is not enabled for this user fires every ~8 seconds in every window
command ‘mcp.probeAllServers’ not found fires once per Inventree window
Does this stop you from using Cursor
Yes - Cursor is unusable