Skip to content

bug: fbuild-daemon stays running after autoresearch, causes memory pressure on Windows #51

@zackees

Description

@zackees

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:

  1. The daemon should have an idle timeout and shut itself down after N minutes of inactivity
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions