Windows: Runaway Git indexing and Tree-sitter parsing cause extreme memory/disk usage and prevent Warp from exiting
Pre-submit Checks
- [x] I have searched Warp bugs and there are no duplicates
- [x] I have searched Warp known issues page and my issue is not there
- [ ] I have an issue with AI and have included the debugging ID (Optional, but helps expedite the AI quality fix). Debugging ID instructions
- [x] I have technical issue and have included the logs (optional, but helps expedite the bug fix). Log instructions
Describe the bug
On Windows, Warp can enter a runaway background Git indexing and syntax parsing state that results in unbounded memory growth, sustained disk I/O, and an inability to exit the application cleanly.
In this incident, Warp reached approximately 30 GB of committed memory and performed roughly 22 GB of disk writes. All agents were stopped successfully, but the Warp process itself could not be closed via normal means (Alt+F4 or menu quit) and required force termination.
WinDbg analysis of a full user-mode process dump shows Warp repeatedly executing the following code paths:
warp!git_index_checksumwarp!tree_sitter_rustwarp!onig_get_string_by_callout_args
This strongly indicates a runaway Git repository indexing and syntax parsing loop (Tree-sitter + Oniguruma regex), rather than an AI model–related issue.
To reproduce
Exact reproduction is not yet deterministic, but the issue appears correlated with opening or working in a Git repository that triggers background indexing and code intelligence.
Observed steps:
- Open Warp on Windows
- Open a workspace or directory containing a Git repository
- Allow background Git indexing and syntax parsing to begin
- Continue normal usage or leave Warp idle
- Within minutes (or after background indexing begins), observe rapidly increasing memory usage and sustained disk writes
- Stop all Warp agents (succeeds)
- Attempt to close Warp via menu or Alt+F4
- Warp remains running and unresponsive; force termination is required
Once the runaway state begins, memory and disk usage continue increasing until the process is forcibly killed.
Expected behavior
- Background Git indexing and syntax parsing should complete, terminate, or throttle correctly without runaway loops.
- Warp should release memory once background tasks complete or are cancelled.
- Warp should exit cleanly, even if background workers encounter errors or cannot quiesce immediately.
- Disk I/O should remain bounded during idle or steady-state operation.
Screenshots, videos, and logs
Attached:
WinDbg_Analyze_Output.txt— output from WinDbg!analyze -vWinDbg_Thread_Stacks_Output.txt— output from WinDbg~* kb(all thread stacks)
Observed during investigation (screenshots no longer available):
- Task Manager showed approximately 30 GB of committed memory for one
Warp.exeprocess - Sustained disk I/O totaling approximately 22 GB of writes
- Two
Warp.exePIDs present (expected for an Electron-based application) - All Warp agents were successfully stopped, but the Warp process itself could not exit cleanly
Logs:
- The Warp logs directory was inspected; it did not reflect the observed volume of disk writes, suggesting internal buffering, temporary files, or non-standard logging paths.
Notable stack pattern (from dump analysis)
warp!git_index_checksum
warp!git_index_checksum
warp!git_index_checksum
warp!onig_get_string_by_callout_args
warp!tree_sitter_rust
KERNELBASE!WaitOnAddress
ntdll!NtWaitForAlertByThreadId
The thread stacks show one or more threads actively looping in Git indexing and syntax parsing code paths, while many background executor threads were blocked waiting on shared state. The UI thread was idle in the Windows message loop.
Note: A full user-mode process dump (~30 GB) was captured and analyzed locally using WinDbg. Due to its size and sensitivity, the dump file is not attached, but it can be provided via Dropbox Transfer or another secure channel upon request.
WinDbg_Analyze_Output.txt WinDbg_Thread_Stacks_Output.txt
Operating system (OS)
Windows
Operating system and version
Microsoft Windows 11 Pro for Workstations (10.0.26200 Build 26200)
Shell Version
PowerShell 7.5.4
Current Warp version
v0.2026.01.21.08.14.stable_04
Regression
No, this bug or issue has existed throughout my experience using Warp
Recent working Warp date
1/30/2026
Additional context
- This issue is not related to AI model responses (distinct from #8544); no AI interactions were occurring when the runaway behavior began.
- Analysis of a full user-mode process dump strongly suggests a runaway background executor involved in Git repository indexing and syntax parsing (Tree-sitter / Oniguruma), rather than a UI, shell, or AI-related issue.
- The behavior appears related in class to memory growth during Git change analysis (e.g. #8413), but with additional and more severe symptoms:
- Sustained, unbounded disk I/O growth
- Memory consumption increasing to tens of gigabytes
- Warp unable to exit cleanly even after all agents are stopped
- No wait-chain deadlock was detected. At the time of capture, the process was actively running, with multiple background threads blocked waiting on shared state while one or more threads continued looping in indexing/parsing code paths.
Observed impact:
- Memory and disk usage began increasing shortly after background indexing activity started and continued until the process was forcibly terminated.
- Because background workers did not quiesce, Warp could not shut down cleanly, leaving the main process running indefinitely.
Impact / Severity
High severity. When this condition is triggered, Warp becomes effectively unusable:
- Memory usage grows without bound, exhausting system resources
- Sustained disk writes significantly degrade overall system performance
- Warp cannot shut down cleanly and must be force terminated
- Active sessions risk data or state loss
This blocks normal daily use of Warp until the process is forcibly killed.
Hypothesis
A background executor responsible for Git repository indexing and syntax parsing enters a non-terminating loop, repeatedly reprocessing repository state. This causes continuous memory allocation and disk writes while preventing background workers from quiescing during shutdown, leaving the main Warp process unable to exit cleanly.
Does this block you from using Warp daily?
Yes, this issue prevents me from using Warp daily.
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
For clarity: this issue is distinct from AI-related memory spikes (e.g. #8544).
The attached WinDbg outputs (!analyze -v and ~* kb) show repeated execution of git_index_checksum, Tree-sitter, and Oniguruma parsing paths, with background executor threads looping while others wait on shared state. The UI thread remains idle in the Windows message loop, which appears to prevent Warp from exiting cleanly once the condition is triggered.
A full user-mode dump (~30 GB) was captured and analyzed locally and can be provided via secure transfer if needed.
@tbitcs Sorry about the issue here. We made a bunch of performance improvements in the latest release. Do you mind updating to that and see if that resolves your issue?
If it still persists, feel free to send me a process sample so I can dig into it more!
Yes I am now running the latest build. I will update this ticket once I have some time using this build. Thank you @kevinyang372!
hi @tbitcs - can you share the raw windbg dump? the binary largely doesn't include symbols, and as such, the symbols shown by windbg are incorrect. i've often seen it attributing things to onig_* functions incorrectly.
at 30GB, though, that's pretty large. any way that can be trimmed down?
at 30GB, though, that's pretty large. any way that can be trimmed down?
@vorporeal Thanks — I don’t see a reliable way to meaningfully trim the existing 30 GB Task Manager dump after the fact. WinDbg can analyze it, but it can’t re-emit a smaller heap/thread-only dump from an existing full dump.
I would need to reproduce the issue in order to capture a smaller, targeted dump (e.g. heap + threads only via ProcDump). I can try to do that, but I don’t currently have a deterministic repro.
If the full dump is still useful with internal symbols, I’m happy to provide it via a secure transfer such as Dropbox Transfer. Let me know which path you’d prefer.
Possible new occurrence / variant of this on the same machine: #12793 (Warp v0.2026.06.10.09.27.stable_01; same Windows 11 build 26200).
Same subsystem signature — the pre-freeze log backtrace runs through onig_get_string_by_callout_args → git_index_checksum — and the same "won't exit cleanly" outcome. The difference is the capture phase: in #12793 the process was caught fully quiesced rather than mid-runaway:
- All 123 threads parked (78 in
ntdll!NtWaitForAlertByThreadId), ~0 CPU, no active indexing/parsing loop. !locks: 0 of 23 critical sections contended; no SRW/critical-section waits; no synchronous file/socket I/O; UI thread idle inwin32u!NtUserMsgWaitForMultipleObjectsEx.- Triggered after a power-loss restart while restoring a large session (
warp.sqlite3.3 GB;agent_tasks≈ 2.6 GB), following SQLite WAL recovery.
This looks consistent with the stalled end-state of the same Git-indexing / Tree-sitter executor described here. A fresh full user-mode dump (~9.6 GB) + cdb analysis log are available on request.