The window terminated unexpectedly (reason: 'oom', code: '-536870904')

This also work for me

Ok. So, maybe I’m dumb. But did they just add the ability to start/open a new chat or something? New chat fixes it for me?

. new chat doesn’t solve anything, it just accumulates several and over time you have to delete some, I’m deleting the oldest ones.

Interesting. For me I had a folder I deleted, but when I recreated it, the chat history was there, and simply opening the newly remade, empty folder would cause Cursor to crash within seconds, repeatedly. But, I was able to JUST slip in and create a new chat. And then it stopped crashing. I did delete the older chats and it was super fast again. The deletion of the older chats may NOT be as necessary though I"m thinking…depending how frequently you start a new chat.

Meaning where I have just banged at one chat endlessly until it stops cursor from working, if I start a new chat every new branch…or even every new commit…I wonder if lots of much smaller saved chat history would cause the problem the VERY LARGE chat history clearly does.

How can I downgrade the version?

I have tried every method from the forums, but there is no solution. Please release an update or provide a fix. My project is stuck.


There is no solution? I deleted the cursor, formatted the computer, and upgraded the RAM, but I still couldn’t fix the crash issue. My project is left incomplete. I tried every piece of information from the forum, but it didn’t work. Please provide a definite solution.

1 Like

Thank you! I used this suggestion along with deleting the contents of the %APPDATA%\Cursor\User\workspaceStorage folder.

That made a big difference.

1 Like

I am assuming that by changing the project directory, you are sort of creating a new entry in that workspaceStorage folder. I wonder whether just deleting the entries are enough to trigger this same response.

Did you try this?

Yeah, might be the same effect. I got the idea from ChatGTP :slight_smile:

I’m due a reset soon on my current project so I’ll test this theory and report back.

1 Like

The cursor opens and then closes after 1 minute. I don’t know how to fix it. I uninstalled and reinstalled the program, but it didn’t solve the problem."

I made this script on windows to delete all the cahce folders…
And just use this when it gets heavy, ofc. all context is deleted, but then i ask cursor to read .cursorrules and README.md before start coding and sometimes ask if to update README with important info about my app

Save as .bat and run as administrator

@echo off
setlocal enabledelayedexpansion
echo.
echo "===== Running VS Code & Cursor Cache Cleanup ====="
echo "Please close VS Code and Cursor before running this script."
echo.

REM Kill VS Code and Cursor if running
echo "Attempting to close VS Code and Cursor..."
taskkill /IM code.exe /F >nul 2>&1
taskkill /IM cursor.exe /F >nul 2>&1
echo "VS Code and Cursor processes terminated (if running)."

REM Define cache paths
for %%A in (Code Cursor) do (
    set "roamingCache=%AppData%\%%A\Cache"
    set "roamingCachedData=%AppData%\%%A\CachedData"
    set "roamingWorkspaceStorage=%AppData%\%%A\User\workspaceStorage"

    set "localCache=%LocalAppData%\%%A\Cache"
    set "localCachedData=%LocalAppData%\%%A\CachedData"
    set "localWorkspaceStorage=%LocalAppData%\%%A\User\workspaceStorage"

    set "extensionsFolder=%UserProfile%\.%%A\extensions"

    for %%F in (
        "!roamingCache!"
        "!roamingCachedData!"
        "!roamingWorkspaceStorage!"
        "!localCache!"
        "!localCachedData!"
        "!localWorkspaceStorage!"
        "!extensionsFolder!"
    ) do (
        if exist "%%~F" (
            echo "Taking ownership of %%~F..."
            takeown /f "%%~F" /r /d y >nul 2>&1
            icacls "%%~F" /grant Administrators:F /t >nul 2>&1

            echo "Deleting: %%~F"
            rmdir /s /q "%%~F"

            if exist "%%~F" (
                echo "Could not delete: %%~F"
            ) else (
                echo "Successfully deleted: %%~F"
                set /a deletedFiles+=1
            )
        ) else (
            echo "Skipping: %%~F (not found)."
        )
    )
)

REM Delete test file (if it exists)
set "testFile=%UserProfile%\Desktop\test.txt"
if exist "%testFile%" (
    echo "Deleting test file: %testFile%"
    del /f /q "%testFile%"
    if exist "%testFile%" (
        echo "Failed to delete test file!"
    ) else (
        echo "Test file deleted successfully!"
        set /a deletedFiles+=1
    )
) else (
    echo "Test file not found. Skipping deletion..."
)

echo.
if %deletedFiles% GTR 0 (
    echo "Cleanup completed: %deletedFiles% items deleted."
) else (
    echo "No cache files or folders were found to delete."
)

echo.
echo "Process Complete."
echo "Press any key to exit..."
pause
exit

The problem is caused by the graphics card. I opened it on another computer and it worked. The cursor is working for now.

This is due to chat history being too long and the system having to cache all convos in the chat. If you delete your history of chats it will fix it, depending on how cocmplex your codebase if this could cause issues but doesnt really for me, as long as i describe the system , attach files, it does a good job picking up what to do, i wouldnt reccommend copying project to new folder, just delete chats and keep going. If you copy folder and open in new folder, the new chat isnt as good.

This helped me a lot

Performance and crashes should be improved in 0.48.x, which is available under Cursor Settings > Beta > Update Frequency: Early Access

Please try it and let us know your experience

1 Like

this issue drived me insaned for the whole day, and it crashed like every min…untill 00:20 am i find a solution… Files - duplicate the workspace and save a new name