warp icon indicating copy to clipboard operation
warp copied to clipboard

Warp uses > 70GB RAM -> System crash

Open mwesox opened this issue 11 months ago • 9 comments

Pre-submit Checks

Describe the bug

Warp uses over 70 GB RAM and crashed the system. Was running multiple Claude Code AI Coding sessions.

Let me know if I can help you debug the issue or send you logs etc.

@alokedesai

To reproduce

Dont know

Expected behavior

Use normal amount of memory

Screenshots, videos, and logs

Image.

warp-logs.zip

Operating system (OS)

macOS

Operating system and version

MacOS 26.2

Shell Version

zsh 5.9 (arm64-apple-darwin25.0)

Current Warp version

v0.2025.12.17.17.17.stable_02

Regression

No, this bug or issue has existed throughout my experience using Warp

Recent working Warp date

No response

Additional context

No response

Does this block you from using Warp daily?

No

Is this an issue only in Warp?

Yes, I confirmed that this only happens in Warp, not other terminals.

Warp Internal (ignore): linear-label:b9d78064-c89e-4973-b153-5178a31ee54e

None

mwesox avatar Dec 19 '25 23:12 mwesox

I have also this problem, but i have only 30gb free memory so it's crashing with 40-50gb application memory usage, it started recently 2-3 days ago

Muhammadali-gold avatar Dec 23 '25 12:12 Muhammadali-gold

it's crazy, eating all the memory and causing OS app pauses! seem to be related to the session saving. have to close and open it every few hours

nocoderoi avatar Dec 28 '25 23:12 nocoderoi

@mwesox @nocoderoi Very sorry for the issues here, fixing this is very important for us. Next time you see this could you please take a process sample and send it to us? That should provide the necessary information we need to fix.

You can do that by:

  1. Opening Activity Monitor
  2. Selecting Warp
  3. Clicking the 3 dots at the top
  4. Selecting "Sample Process"

alokedesai avatar Dec 29 '25 20:12 alokedesai

I have the samples. it getting rediciouls , every few days, over 30GB memory usage

nocoderoi avatar Jan 11 '26 22:01 nocoderoi

Just want to add I had it crash at 100gb.

No idea what is going on here

adiberk avatar Feb 14 '26 20:02 adiberk

+1: 14GB leak over 4 days (arm64, macOS 15.4)

Environment

  • Warp: v0.2026.02.18.08.22.02
  • macOS: 15.4 (24E248), Apple Silicon, 24 GB RAM
  • Runtime: 3 days, 22 hours
  • Usage: Claude Code + pi.dev

Memory Stats

  • RSS: ~9 GB → Total: ~14 GB
  • Virtual: ~495 GB
  • Threads: 64, File handles: 662

Root Cause (from stack trace)

Leak is in Metal renderer, not stored data:

  • warpui::platform::mac::rendering::metal::renderer::render
  • warp::terminal::grid_renderer::render_grid → render_cell_glyph
  • glyph_cache::get

SQLite DB is only 20 MB, so this is purely GPU memory leak.

vadim-isakov avatar Feb 25 '26 13:02 vadim-isakov

For folks experiencing this on Mac, could you download this build and see if you can reproduce the memory usage issues? https://drive.google.com/file/d/1ePsaG1DqfhbTDNkUh65bCh0_ncYno08b/view?usp=sharing

This is a custom build with heap profile collection enabled. Once Warp users over 10GB of memory it should automatically send us a heap profile which should help us fix this issue once and for all. Thanks!

alokedesai avatar Feb 27 '26 16:02 alokedesai

Adding a reproducible data point — this reproduces reliably here, and the per-tab reclaim behavior points at where the memory is held. (Likely the same root cause as #10992, which is the multi-tab/multi-day variant of this.)

Setup: macOS (Apple Silicon, 16-core), Warp stable. Several tabs each running a long-running, high-output AI coding TUI (kiro-cli plus an agentic dev tool streaming thousands of output blocks over a multi-hour session).

Observed: With ~4 such tabs active for a few hours, Warp RSS climbed to ~50GB. Closing all but one AI-TUI tab dropped RSS to ~4.3GB within seconds — and ps showed the main stable process itself at only ~166MB at that point. So the retained memory tracks the number of open long-running high-output tabs, not the core process, and it is reclaimed promptly on tab close.

Repro:

  1. Open 3–4 tabs, each running an AI coding TUI that streams continuous high-volume output (kiro-cli, claude-code, or any agentic loop emitting thousands of blocks/scrollback rows).
  2. Let them run a multi-hour session (or pipe a synthetic high-rate output stream into each).
  3. Warp RSS climbs roughly with (tab count × session output volume).
  4. Close all but one tab → RSS drops by an order of magnitude within seconds.

Interpretation: consistent with per-tab block/scrollback buffers growing unbounded over long high-output sessions (cf. #12694 on in-band block accumulation). It frees on tab close, so it reads as missing eviction rather than a true leak — but with no per-tab cap, a few long AI-TUI sessions exhaust system RAM. A configurable scrollback cap (#11867) with oldest-block eviction would bound this.

rndjams avatar Jun 26 '26 23:06 rndjams

I am seeing this today on v0.2026.06.17.09.49.stable_02 . I unfortunately didn't get much diagnostic output because the Mac crashed while trying to force quit Warp. Warp was showing at 303GB in the Force Quit dialog.

I had a single long running Warp Session that had had several long claude code sessions over ~48 hours with a tmux setup with multiple tmux panes within a single warp pane.

These are from the system diagnostic reports right before and at the crash. The second one isn't particularly helpful but aligns with the behavior - the Mac hard froze (not even caps lock toggle) - so the watchdog reset isnt' surprising.

Date/Time: 2026-06-29 01:51:09.653 -0500 End time: 2026-06-29 12:21:33.672 -0500 OS Version: macOS 26.5.1 (Build 25F80) Architecture: arm64e Report Version: 72 Incident Identifier: 7733CFE0-EC9D-48EE-8E39-4836BEAB92A2 Share With Devs: Yes

Data Source: Microstackshots Shared Cache: FF7119A7-F64D-305D-8135-7E6EB1C207D1 slid base address 0x18d46c000, slide 0xd46c000

Command: turbo Path: /Users/Shared/*/turbo Codesigning ID: com.vercel.turbo Team ID: JW6Y669B67 Resource Coalition: "dev.warp.Warp-Stable"(348591) Architecture: arm64 Parent: UNKNOWN [33409] PID: 33415

Event: disk writes Action taken: none Writes: 34.36 GB of file backed memory dirtied over 37824 seconds (908.41 KB per second average), exceeding limit of 397.68 KB per second over 86400 seconds Writes limit: 34.36 GB Limit duration: 86400s Writes caused: 34.36 GB Writes duration: 37824s Duration: 37824.02s Duration Sampled: 378.04s (event starts 37445.69s before samples, event ends 0.28s after samples) Steps: 9 (10.49 MB/step)

Hardware model: Mac17,6 Active cpus: 18 Memory size: 128 GB HW page size: 16384 VM page size: 16384 Shared cache residency: 24.23% (1340.39 MB / 5531.98 MB)

Time Since Boot: 2235963s Time Awake Since Boot: 1782307s Time Since Wake: 88734s

Total CPU Time: 0.625s Advisory levels: Battery -> 3, User -> 2, ThermalPressure -> 0, Combined -> 2 Free disk space: 1405.42 GB/3721.82 GB, low space threshold 3072 MB Vnodes Available: 76.41% (201082/263168) Models: none

Preferred User Language: en-US Country Code: US OS Cryptex File Extents: 1

Heaviest stack for the target process: 9 thread_start + 8 (libsystem_pthread.dylib + 7196) [0x18d958c1c] 9 _pthread_start + 136 (libsystem_pthread.dylib + 27736) [0x18d95dc58] 9 ??? (turbo + 7089476) [0x10340ad44] 9 ??? (turbo + 7395560) [0x1034558e8] 9 ??? (turbo + 7358604) [0x10344c88c] 9 ??? (turbo + 7371792) [0x10344fc10] 9 ??? (turbo + 7342960) [0x103448b70] 9 ??? (turbo + 7339188) [0x103447cb4] 9 ??? (turbo + 12367748) [0x103913784] 9 ??? (turbo + 11908124) [0x1038a341c] 9 ??? (turbo + 11883720) [0x10389d4c8] 9 ??? (turbo + 11189716) [0x1037f3dd4] 9 ??? (turbo + 10628876) [0x10376af0c] 9 ??? (turbo + 10640388) [0x10376dc04] 9 ??? (turbo + 14808224) [0x103b674a0] 7 write + 8 (libsystem_kernel.dylib + 18484) [0x18d91d834]

Powerstats for: turbo [33415] [unique pid 4085015] UUID: 4C4C4451-5555-3144-A130-8A9FAFF85940 Path: /Users/Shared/*/turbo Codesigning ID: com.vercel.turbo Team ID: JW6Y669B67 Resource Coalition: 9 samples "dev.warp.Warp-Stable"(348591) Architecture: arm64 Parent: UNKNOWN [33409] UID: 501 Footprint: 53.28 MB -> 206.91 MB (+153.62 MB) (max 231.62 MB ) Start time: 2026-06-29 12:15:15.347 -0500 End time: 2026-06-29 12:21:33.389 -0500 Num samples: 9 (100%) Energy: 324.73 uWh Num threads: 1 Primary state: 9 samples Non-Frontmost App, Non-Suppressed, Kernel mode, Effective Thread QoS Default, Requested Thread QoS Default, Override Thread QoS Unspecified, p-core User Activity: 0 samples Idle, 9 samples Active Power Source: 0 samples on Battery, 9 samples on AC 9 thread_start + 8 (libsystem_pthread.dylib + 7196) [0x18d958c1c] 9 _pthread_start + 136 (libsystem_pthread.dylib + 27736) [0x18d95dc58] 9 ??? (turbo + 7089476) [0x10340ad44] 9 ??? (turbo + 7395560) [0x1034558e8] 9 ??? (turbo + 7358604) [0x10344c88c] 9 ??? (turbo + 7371792) [0x10344fc10] 9 ??? (turbo + 7342960) [0x103448b70] 9 ??? (turbo + 7339188) [0x103447cb4] 9 ??? (turbo + 12367748) [0x103913784] 9 ??? (turbo + 11908124) [0x1038a341c] 9 ??? (turbo + 11883720) [0x10389d4c8] 9 ??? (turbo + 11189716) [0x1037f3dd4] 9 ??? (turbo + 10628876) [0x10376af0c] 9 ??? (turbo + 10640388) [0x10376dc04] 9 ??? (turbo + 14808224) [0x103b674a0] 7 write + 8 (libsystem_kernel.dylib + 18484) [0x18d91d834] 1 2 ??? (turbo + 8700484) [0x103594244] 2 write + 8 (libsystem_kernel.dylib + 18484) [0x18d91d834]

Binary Images: 0x102d48000 - 0x104bbbfff turbo <4C4C4451-5555-3144-A130-8A9FAFF85940> /Users/Shared/*/turbo 0x18d919000 - 0x18d9562af libsystem_kernel.dylib (12377.121.6) /usr/lib/system/libsystem_kernel.dylib 0x18d957000 - 0x18d963b3b libsystem_pthread.dylib (539.100.4) <4F33683C-18C8-39A1-800B-2E3BD43BCC13> /usr/lib/system/libsystem_pthread.dylib

And:

{"os_version":"macOS 26.5.1 (25F80)","bug_type":"115","timestamp":"2026-06-29 12:37:31.00 -0500","name":"Reset count","roots_installed":0,"incident_id":"56AED21C-6A9F-4C41-875D-5C2CBD5503BD"} Incident Identifier: 56AED21C-6A9F-4C41-875D-5C2CBD5503BD CrashReporter Key: AB7BDA4D-526F-FF6D-E7A2-D8721CB7E134 Date: 2026-06-29 12:37:31.08 -0500 Reset count: 1 Boot failure count: 0 Boot faults: wdog,reset_in_1 Boot stage: 0x0 Boot app: 0 socId: 6050 socRevision: 11

markfrommn avatar Jun 29 '26 17:06 markfrommn