Skip to content

Snapshot git operations fail with paging file too small under memory pressure #43445

Closed as not planned

Description

@AndyS77

Description

During extended sessions on Windows, git processes spawned by the snapshot system fail with "error launching git: The paging file is too small for this operation to complete." and "fatal: Out of memory, malloc failed". The snapshot code at packages/opencode/src/snapshot/index.ts only logs a warning and returns — no retry, no circuit breaker, no user notification. Snapshots silently stop working.

7 occurrences logged between Aug 12–18 in opencode.log. Later occurrences escalated to fatal: Out of memory, malloc failed and die() called many times.

Related: #20695, #42597, #42980

Plugins

N/A

OpenCode version

1.18.x (dev branch)

Steps to reproduce

  1. Run opencode on Windows for an extended session (hours) with multiple parallel sessions
  2. Under memory pressure, the OS cannot allocate virtual memory for new git child processes
  3. Snapshot operations (diff-files, ls-files) fail with "paging file too small"
  4. Snapshots silently degrade — no retry, no user notification, undo/revert stop working

Screenshot and/or share link

N/A

Operating System

Windows 11

Terminal

pwsh

Activity

  1. AndyS77 commented on Aug 19, 2026

    @AndyS77
    Author

    PR opened: #43455

  2. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions