Cursor crashes repeatedly on Ubuntu 24.04.4 during Agent usage (Window terminated unexpectedly, code 5)

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

After updating Cursor a few days ago, Cursor has started crashing repeatedly on Ubuntu 24.04.4 LTS.

The crash occurs approximately every few minutes, most commonly while an Agent task is running. When the crash happens, Cursor displays:

The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)

The issue began immediately after updating Cursor. Prior to the update, Cursor was stable on the same machine.

Steps to Reproduce

Open Cursor.
Open a project/workspace.
Start an Agent task (Auto model).
Continue working or allow the Agent to run.

After a few minutes, Cursor crashes with:

The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)

Expected Behavior

Cursor should remain stable while running Agent tasks and normal editing workflows.

Operating System

Linux

Version Information

Cursor Version:

3.6.31

Commit:

81fcf2931d7687b4ff3f3017858d0c6dee7e2a60

Architecture:

x64

Hardware:

GPU: Intel Iris Xe Graphics (Alder Lake-UP3 GT2)
RAM: 31 GiB

For AI issues: which model did you use?

AUTO

Additional Information

Relevant log excerpts:

The window terminated unexpectedly (reason: ‘crashed’, code: ‘5’)
Error sending from webFrameMain:
Error: Render frame was disposed before WebFrameMain could be accessed
[PowerMainService] Started wakelock id=1 owner=window:2 reason=“agent-loop”
MaxListenersExceededWarning:
Possible EventEmitter memory leak detected.
11 child-process-gone listeners added to [EventEmitter]

System memory is not exhausted when the crash occurs:

31 GiB RAM total
~20 GiB free
Swap unused

The issue started immediately after a recent Cursor update and has been reproducible multiple times per day.

Does this stop you from using Cursor

Yes - Cursor is unusable

I have installed - sudo dpkg -i cursor_3.4.20_amd64.deb

On this version the crashes are not happening