Memory Bleeding

Describe the Bug

The app’s own background process is using about 15 GB of 16 GB on Grok Bot’s computer, every command gets killed for running out of memory, it’s been like this since this morning (and last night), and Update says it’s already on the latest version.

The process is node /opt/sand/sand-host/host-main.cjs, the app’s own host process. It holds about 15 GB of the box’s 16 GB of RAM, leaving roughly 150 to 290 MB free with no swap.

Load average is 40 to 60 on 8 CPUs. The kernel’s out-of-memory killer keeps killing small processes like Xvfb, python3 and node, but never the leaking process, which is shielded from being killed.

It started around 8:30 AM CT on Oct 7 and hasn’t recovered since. A similar leak happened on Oct 6 after a system update.

Commands fail with “Service temporarily unavailable” or hang for minutes. Even free -m didn’t finish in over a minute.

Update Grok Bot’s Computer says it’s already on the latest version. I’m avoiding Reset because it could lose recent work.

Is there a way to restart that host process without losing files or logins,or can the cause of the leak to be fixed.
the impact: I can’t reach our live server to make time-sensitive changes.

Steps to Reproduce

We don’t have a clean step-by-step trigger, so I’d describe what was running when it happened:

Run Grok Bot with one bot doing long sessions of background work: many shell commands, long-running background subagents, and repeated gcloud compute ssh connections over IAP (Google’s tunnel to a cloud server). Have several other bots share the same computer, each with its own desktop.
Leave it running for many hours. On Oct 6 the leak showed up after a system update. On Oct 7 it built up overnight and hit the limit around 8:30 AM CT.
Watch node /opt/sand/sand-host/host-main.cjs climb until it’s using about 15 GB of 16 GB. After that, every new command hangs or gets killed for lack of memory.
Try Update Grok Bot’s Computer. It says the computer is already up to date, and nothing improves.

Expected Behavior

Expected: the host process stays at a normal size, or the app restarts it when it gets too big. Actual: it keeps growing until the computer is unusable, and there’s no way to recover without a Reset.

Operating System

MacOS

Version Information

IOS 0.68.1

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey @David_St, thanks for the report.

Your computer’s memory has been completely full since about 8:30 AM CT yesterday, and it’s the app’s own background process holding it. Update can’t help in that state: it needs the computer to respond before it will swap it out, so it reports “up to date” and stops. There isn’t a separate way to restart just that process.

Reset is the way out, and it’s safer than it sounds. It restores from the last saved snapshot, and your computer last saved a few minutes before it got stuck, so your Bots, conversations and files should come back. Anything you installed yourself (for example the gcloud CLI) may need to be installed and signed in again.

To do it: Settings → Grok Bot’s Computer → Reset Grok Bot’s Computer, confirm, and give it a few minutes to come back.

I’ve passed this to the team, since the same growth showed up within about an hour of the fresh computer you got on Oct 6. To help them, could you reply with roughly how many Bots share the computer and which one runs the gcloud ssh work? If memory starts climbing again after the reset, the time you noticed it would help too.

Hi @Colin I have done all the recommended steps to fix but the memory leak still persists. And now Grok bot is completely unresponsive. Has the team made any progress? It’s really affecting my work.

@Colin @SupportTeam This is now Day 4 that I have not been able to use Grok bot.

Free memory dropped from 5.4 GB to under 1.8 GB within a minute after I reset the computer today and tried to work.

I’ve not been able to work for the last 4 days… I’m paying for the top subscription and even pay more because I always go over my weekly usage.

Please Help Me. PLEASE.

Any update on this issue? @Colin @SupportTeam @SupportTeam I really need help. it’s been now 6 days that Grok Bot has not been able to work. Memory bleeding persists and Grok Bot cannot run more than a few minutes before it freezes.

Hey @David_St, I’m sorry for the wait, and thanks for sticking with us.

We’ve found what’s filling your computer’s memory. One of your saved skills contains a very large file (several hundred MB or more). The app reads your skills each time your computer starts, and that file is too big for it, so it keeps retrying and memory climbs until everything freezes. That’s also why Reset didn’t help: it brings the same file back. Please don’t Reset again.

You can clear it yourself in a few minutes, and nothing gets deleted:

  1. Open Grok Bot and wait for your computer to connect.
  2. Right away, start a new chat with any Bot and send: “List every file larger than 100 MB inside my saved skills folder, with its full path and size. Don’t change anything.”
  3. For each file it lists, send: “Move that file out of my saved skills folder into my home folder.” This keeps the file, it just stops the app from loading it on startup.

If one of your Bots or routines writes logs or exports into a skill’s folder, point it somewhere else, or the file will grow back.

Let me know how this goes!

@Colin Thank you so much :slight_smile: I appreciate you