Cursor keeps crashing when I try to open my project

Thanks for reporting a bug you have found in Cursor!
Please add the following info to help us diagnose your issue:

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
:lady_beetle: Provide a clear description of the bug
:arrows_counterclockwise: Explain how to reproduce the bug (if known)
:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).
:computer: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
:no_entry_sign: Tell us if the issue stops you from using Cursor.

After updating to .46, I keep getting this message when trying to open my project:


I am able to open another project. This was the project I had open when I updated to the newest version. I am using Mac OS and this version of cursor: Version: 0.46.1
VSCode Version: 1.96.2
Commit: 69ce6c261e430e5be69213f1e721e50142477710
Date: 2025-02-22T09:53:15.548Z
Electron: 32.2.6
Chromium: 128.0.6613.186
Node.js: 20.18.1
V8: 12.8.374.38-electron.0
OS: Darwin arm64 24.3.0

This is keeping me from using cursor as I need to work on the repo it won’t open now.

Hey, try clearing the cache. Try opening the project by selecting the “Don’t restore editors” option to avoid restoring the previous state that might have caused the crash. Also, try removing your project from the recent projects list and reopening it. I hope this helps.

Thanks for the suggestion, but none of those steps work. The problem is only fixed if I revert to version 0.45.15 of Cursor.

I had the same problem and deleted the chat history. It works now.

It is not an easy task though (at least did not find a easy way).

On MacOs, the chat histories are stored in ~/Library/Application Support/Cursor/User/workspaceStorage.

Here is a script to help you identify the folder that contains the history of your project having issues. You can run the command ./find_cursor_workspaces.py --search “my-project”
(assuming you named the file find_cursor_workspaces.py

It fixed the issue for me. Hope it helps!

(do not forget to update YOURUSERNAME in the code)

#!/usr/bin/env python3

import os
import json
import argparse
from pathlib import Path

def find_related_workspaces(base_path, search_term):
    """
    Find workspaces related to a specific project.
    
    Args:
        base_path (str): Path to Cursor's workspaceStorage directory
        search_term (str): Project identifier to search for in workspace.json
        
    Returns:
        list: List of workspace folders related to the project
    """
    base_path = Path(base_path)
    related_workspaces = []
    
    # Ensure the base path exists
    if not base_path.exists() or not base_path.is_dir():
        print(f"Error: {base_path} does not exist or is not a directory")
        return []
    
    # List all subdirectories
    print(f"Scanning {base_path}...\n")
    try:
        subdirs = [d for d in base_path.iterdir() if d.is_dir()]
        print(f"Found {len(subdirs)} workspace folders to examine\n")
        
        for workspace_dir in subdirs:
            workspace_json = workspace_dir.joinpath('workspace.json')
            
            # Check if workspace.json exists
            if workspace_json.exists():
                try:
                    with open(workspace_json, 'r') as f:
                        data = json.load(f)
                        
                    # Check if the folder path contains the search term
                    if 'folder' in data and search_term in data['folder']:
                        print(f"✅ Match found: {workspace_dir.name}")
                        print(f"   Project path: {data['folder']}")
                        related_workspaces.append({
                            'workspace_dir': str(workspace_dir),
                            'project_path': data['folder']
                        })
                    else:
                        print(f"❌ No match: {workspace_dir.name}")
                        if 'folder' in data:
                            print(f"   Project path: {data['folder']}")
                        else:
                            print(f"   No 'folder' field in workspace.json")
                except json.JSONDecodeError:
                    print(f"❌ Error: {workspace_dir.name} has invalid JSON in workspace.json")
                except Exception as e:
                    print(f"❌ Error reading {workspace_dir.name}/workspace.json: {str(e)}")
            else:
                print(f"❌ No workspace.json: {workspace_dir.name}")
    except Exception as e:
        print(f"Error scanning directory: {str(e)}")
        return []
        
    return related_workspaces

def main():
    parser = argparse.ArgumentParser(
        description="Find Cursor workspaces related to specific projects"
    )
    parser.add_argument(
        "--path", 
        default="/Users/YOURUSERNAME/Library/Application Support/Cursor/User/workspaceStorage",
        help="Path to Cursor's workspaceStorage directory"
    )
    parser.add_argument(
        "--search", 
        default="document-sorter",
        help="Project identifier to search for (e.g., 'fowix-core')"
    )
    
    args = parser.parse_args()
    
    # Find related workspaces
    related = find_related_workspaces(args.path, args.search)
    
    # Print summary
    print("\n" + "="*60)
    print(f"Summary: Found {len(related)} workspaces related to '{args.search}'")
    if related:
        print("\nMatching workspaces:")
        for i, workspace in enumerate(related, 1):
            print(f"{i}. {workspace['workspace_dir']}")
            print(f"   Project: {workspace['project_path']}")
    print("="*60)

if __name__ == "__main__":
    main() 

I also had this issue and was able to solve it by creating a copy of the project folder, naming it something else, and reopening it.

Version: 0.46.8
VSCode Version: 1.96.2

cursor is getting crashed on m1 air 8gb ram. This crash has also happened before, but it cannot run a single command after today’s latest update. I tried by closing everything except the cursor, but generation is failing in between, and the app is getting crashed. Due to this, my 12 credits got eaten up unnecessarily and so my time. Kindly resolve it ASAP.