Seeing huge hang ups, memory leaks and missing chats right after upgrading to 2.3.40

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I’m using cursor IDE just fine for months… then today my chat is gone (says its too long and hidden now in a txt file), and i’m having it try to run a script and it keep sitting there over and over. I’ve reset the app, still happens. So I open the menu to see what happening and looks like a leak, memory issues.. can someone help me? I had AI summarize the loooong errror log:

Bug Report: Critical Database Corruption & Memory Leaks in v2.4.30

Version: 2.4.30 (stable channel)
Platform: Windows x64
Impact: Composer/Agent completely unusable

Key Errors:

Database Corruption:
[DiffHashTracker] Error tracking NAL edit: Error: SQLITE_ERROR: cannot start a transaction within a transaction
[AiCodeTracking] Error processing files after shell call: Error: SQLITE_ERROR: cannot start a transaction within a transaction
Composer Timeouts:
[composer] No first token received within 2s/4s/6s/8s/10s/12s/14s/16s/32s
requestId: b5f927ee-b367-4f35-80a8-a7cbd4151434
Stream Errors:
ERR WritableIterable is closed: WriteIterableClosedError
[composer] Client stream abort Error: submit_chat_abort_existing
[transport] Agent client stream abort Error: conversation_action_abort
Memory Leaks:
[003] potential listener LEAK detected, having 400/600/800/1000/1200/1596/1996/2196 listeners already
[002] potential listener LEAK detected, having 200/300/400/544/644/744/844/942/1042/1142/1242/1342/1442/1534 listeners already
Diff Computation Failures:
[composer] Diff computation timed out for XYZ-database.php. File has 938 original lines and 1032 new lines. Treating entire file as changed.
UI Crashes:
SOMETHING WENT WRONG!!! (2)
[ExtensionService] No inspect port found for LocalProcess
Reproduction: Occurs when using Composer with multiple file edits. Errors cascade rapidly, making the tool completely unusable. Database transaction errors prevent tracking of any code changes.

Expected: Composer should process requests without database errors or memory leaks.

Steps to Reproduce

Using the chat to do normal tasks… build a ZIP file was the last thing I had it doing.

Expected Behavior

Not hang

Operating System

Windows 10/11

Version Information

Version: 2.4.30 (system setup)
VSCode Version: 1.105.1
Commit: 0f8217a84adf66daf250228a3ebf0da631d3c9b0
Date: 2026-02-06T23:20:57.191Z
Build Type: Stable
Release Track: Early Access
Electron: 39.2.7
Chromium: 142.0.7444.235
Node.js: 22.21.1
V8: 14.2.231.21-electron.0
OS: Windows_NT x64 10.0.26200

For AI issues: which model did you use?

Opus 4.6

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

This looks like an SQLite concurrency bug we’re already tracking. Transaction errors can cascade and break other features.

Try resetting the corrupted state (make a backup first):

  1. Fully close Cursor
  2. Delete %APPDATA%\Cursor\User\workspaceStorage
  3. Restart Cursor

If that doesn’t help, also delete %APPDATA%\Cursor\User\globalStorage (or do a full reinstall).

Also check extensions: CTRL + Shift + P > Developer: Open Extension Monitor. Or run cursor --disable-extensions from the command line to rule them out.

A couple of questions:

  • How big is the project (roughly how many files)?
  • Did you have a lot of files open when the issue started?

The team is aware of this bug. Let me know how it goes after the cleanup.

How about the mac user? How can I recover from this.

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.