Summary
A user reported in #8 that running DreamCoder on Linux causes RAM usage to spike to 12 GB+, with the app freezing to the point of being unclickable even after configuring swap.
"It was using too much ram like 12gb+ and i work on linux even tho i created a swap memory to run it but it was still freezing and i couldnt click anywhere on the app."
— @Kafkacodes, #8 (comment)
This is a critical bug. A desktop app cannot ship to Linux users in this state.
Severity: critical
- 12 GB RSS for a Tauri + Bun app is at least an order of magnitude beyond expected behaviour. Steady-state on Windows is in the hundreds of MB.
- The freeze is total — the user could not click anywhere. So Linux users have effectively zero usable workflow today.
- This is the first feedback we have from a Linux user trying to contribute. If we don't fix it, we lose every future Linux contributor the same way.
Honest disclosure of investigation state
DreamCoder is currently developed and verified by the maintainer on Windows x64 only. The codebase includes Linux platform branches (#[cfg(target_os = "linux")]) but the maintainer does not run Linux day-to-day, so:
- We do not have a confirmed reproduction yet.
- We cannot bisect this against a "known good" Linux baseline because no such baseline has been established.
- Investigation will need help from Linux users who can run the app and attach diagnostics.
This does not lower the severity. It just means the path to a fix runs through community collaboration rather than a maintainer hot-fix.
Likely suspects (hypotheses, not assertions)
- WebKitGTK behaviour: Tauri uses WebKitGTK on Linux instead of WebView2. Some WebKitGTK versions have runaway-memory patterns under HMR + large bundles in dev mode.
- Sidecar process leak:
dreamcoder-sidecar is a compiled bun bundle. On Linux it's launched as a child via portable-pty. PTY buffer / session state leaks would balloon over time.
- Computer Use mode: screenshot mode allocates large image buffers. It should be off by default on Linux but the gating may not be tight.
- MCP server lifecycle: spawn-but-never-reap.
- Bun runtime memory under long-lived servers — known rough edges.
What we need from Linux users to reproduce
If you hit this, the following information would massively accelerate the fix:
- Distro + kernel (
uname -a, cat /etc/os-release)
- Desktop environment + display server (X11 / Wayland)
- WebKitGTK version (
pkg-config --modversion webkit2gtk-4.1 or similar)
- DreamCoder source: dev mode (
bun run dev) vs an installed binary? Commit SHA or version?
- When did the freeze happen: first launch? After loading a project? After an extended session? With Computer Use enabled?
- Snapshot of
ps aux | grep -iE "dreamcoder|sidecar|claude" near the freeze, if obtainable
Acceptance / fix criteria
Related
Summary
A user reported in #8 that running DreamCoder on Linux causes RAM usage to spike to 12 GB+, with the app freezing to the point of being unclickable even after configuring swap.
This is a critical bug. A desktop app cannot ship to Linux users in this state.
Severity: critical
Honest disclosure of investigation state
DreamCoder is currently developed and verified by the maintainer on Windows x64 only. The codebase includes Linux platform branches (
#[cfg(target_os = "linux")]) but the maintainer does not run Linux day-to-day, so:This does not lower the severity. It just means the path to a fix runs through community collaboration rather than a maintainer hot-fix.
Likely suspects (hypotheses, not assertions)
dreamcoder-sidecaris a compiled bun bundle. On Linux it's launched as a child viaportable-pty. PTY buffer / session state leaks would balloon over time.What we need from Linux users to reproduce
If you hit this, the following information would massively accelerate the fix:
uname -a,cat /etc/os-release)pkg-config --modversion webkit2gtk-4.1or similar)bun run dev) vs an installed binary? Commit SHA or version?ps aux | grep -iE "dreamcoder|sidecar|claude"near the freeze, if obtainableAcceptance / fix criteria
Related