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.

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.