Stream: bugs

Topic: Memory Leak issue when programming Roc in Zed


view this post on Zulip Scally (Dec 11 2024 at 02:15):

Not sure what a god place for this is, probably an issue with Zed or the Roc extension for Zed, but I'm just initially trying to find out if anyone here has had similar experiences.
When I do Roc programming in Zed for a while my PC continuously runs out of memory (RAM) - in a magnitude of ~9-12 GB
When I restart the language server I get back ~3 GB, when I close the entire editor I get back the full 9-12 GB.

Has anyone else observed similar behavior?

view this post on Zulip Anthony Bullard (Dec 11 2024 at 03:12):

I had mine on Mac get to 68GB!

view this post on Zulip Anthony Bullard (Dec 11 2024 at 03:13):

But my program also has an infinite loop when running

view this post on Zulip Anthony Bullard (Dec 11 2024 at 03:13):

Had

view this post on Zulip Anthony Bullard (Dec 11 2024 at 03:14):

From some weird ir issue

view this post on Zulip Brendan Hansknecht (Dec 11 2024 at 04:40):

you have 68GB of ram + compressed ram on a mac...wow

view this post on Zulip Anthony Bullard (Dec 11 2024 at 12:36):

Yeah 32GB of physical memory. I don't really understand macOS memory model and how i technically had something like 225% memory usage.

view this post on Zulip Brendan Hansknecht (Dec 11 2024 at 17:02):

That's not hard. With compress you can generally get up to around 2 to 3x memory

view this post on Zulip Brendan Hansknecht (Dec 11 2024 at 17:03):

So maybe 10GB was uncompressed and 22GB was compress at ~3x to get ~72GB of ram (or in this case 68GB)

view this post on Zulip Richard Feldman (Dec 11 2024 at 17:27):

also swapfiles right?

view this post on Zulip Brendan Hansknecht (Dec 11 2024 at 17:50):

I don't think Mac does swap files (by default)

view this post on Zulip Brendan Hansknecht (Dec 11 2024 at 17:53):

I stand correct, looks like it has a dynamic pager now.

view this post on Zulip Brendan Hansknecht (Dec 11 2024 at 17:53):

Sound like it creates swap files on the fly


Last updated: Jul 06 2025 at 12:14 UTC