Summary
The fbuild daemon process persists after autoresearch completes and accumulates memory. On Windows with limited resources, having the daemon, zccache-daemon, and multiple Python processes running simultaneously causes OSError: [WinError 8] Not enough memory resources are available when trying to compile (cargo build, maturin develop, etc.).
Observed behavior
fbuild-daemon.exe stays resident at ~58MB after autoresearch ends
zccache-daemon.exe also stays resident
- Combined with Claude Code's multiple Python processes, the system runs out of process creation memory
_winapi.CreateProcess fails with WinError 8
Expected behavior
Either:
- The daemon should have an idle timeout and shut itself down after N minutes of inactivity
- Or autoresearch should explicitly stop the daemon when it's done (if no other consumers need it)
Workaround
Manual taskkill /F /IM fbuild-daemon.exe before running memory-intensive builds.
Context
Encountered while developing fbuild#50 (adding reset_device() to SerialMonitor). The daemon from a prior autoresearch session was still running and consuming memory when cargo build was attempted.
Related
Summary
The fbuild daemon process persists after autoresearch completes and accumulates memory. On Windows with limited resources, having the daemon, zccache-daemon, and multiple Python processes running simultaneously causes
OSError: [WinError 8] Not enough memory resources are availablewhen trying to compile (cargo build, maturin develop, etc.).Observed behavior
fbuild-daemon.exestays resident at ~58MB after autoresearch endszccache-daemon.exealso stays resident_winapi.CreateProcessfails with WinError 8Expected behavior
Either:
Workaround
Manual
taskkill /F /IM fbuild-daemon.exebefore running memory-intensive builds.Context
Encountered while developing fbuild#50 (adding
reset_device()to SerialMonitor). The daemon from a prior autoresearch session was still running and consuming memory when cargo build was attempted.Related