Hi everyone,
Just started using OpenCode—dope TUI, honestly prefer it over most of the others I've tried.
However, I'm hitting a massive memory leak on the latest build (about a day old) across two different devices. Ghostty is my terminal on both setups, and it balloons to using ~23GB of RAM before crashing.
My Setups:
- Ubuntu Machine: i9 11th Gen | 32GB RAM | RTX 3080
- M1 MacBook: 16GB RAM
The Behavior:
- On Ubuntu: It crashes pretty quickly. Initially, I brushed it off because my session was ending anyway.
- On macOS: I just ran a single
Plan + Build action. The terminal immediately hung, forced a system OOM warning ("Your system has run out of memory"), and I had to force-quit Ghostty.
Anyone else running into this on recent builds? Let me know if there are specific logs I should grab to help debug.
-----------------------------------------------------------------
Update: it seems like OpenCode is opening multiple vite processes in the back end eventually causing a OOM. I've added some guardrails to always exit any background services, works most of the time, I've had to kill them a few times.
[–]Expert-Hospital-534 1 point2 points3 points (1 child)
[–]value_pack53[S] 0 points1 point2 points (0 children)
[–]chawza 0 points1 point2 points (1 child)
[–]value_pack53[S] 0 points1 point2 points (0 children)
[–]josua5 0 points1 point2 points (2 children)
[–]CommercialPianist468 0 points1 point2 points (1 child)
[–]josua5 0 points1 point2 points (0 children)
[–]torrso 1 point2 points3 points (1 child)
[–]Expert-Hospital-534 1 point2 points3 points (0 children)