Renderer crashes (code 5) during long agent sessions due to SQLite nested transaction bug

Hey, thanks for the detailed report and the CPU load analysis. That’s really helpful.

This is a known issue. During long agent sessions, the renderer can crash. The SQLite nested transaction error from AgentAnalyticsOperationsMainService, together with the main process sitting around ~120% CPU, is a clear sign of what’s happening. The main process gets overloaded and stops responding, and then the renderer crashes.

Similar symptoms are described here: Keeps crashing while agent running in long session Keeps crashing while agent running in long session

For now, the best workaround is:

  • Fully restart Cursor every 1 to 2 hours during long agent sessions (fully quit and relaunch, not just Reload)
  • Start new chat threads from time to time instead of keeping one very long session

Let me know if it gets worse, or if you notice any other patterns.