Skip to content

Windows: Process explosion and severe memory leak on startup #32274

Closed as not planned

Description

@yanmingzhang2000

Bug Report: Windows Client - Process Leak and High Memory Usage on Launch

Description

After installing or reinstalling OpenCode on Windows, launching the app spawns numerous extra processes. Memory usage rises rapidly, accompanied by high CPU load, and the program eventually freezes and becomes unresponsive.

I have tried all common fixes with no improvement:

  • Reboot the computer
  • Install and run the program as administrator
  • Complete uninstall and full cleanup of all config and cache folders
  • Re-download the installation package for a fresh install

Steps to Reproduce

  1. Download the latest OpenCode installer from official site
  2. Install with default settings
  3. Launch OpenCode
  4. Check Task Manager: multiple processes start up right away, memory keeps increasing, and the UI stops responding soon after

OpenCode version

Latest official release

Operating System

Windows 11 (64-bit)

Terminal

Default Windows environment, no custom terminal applied

Expected Behavior

The app launches with a normal number of processes and stable, reasonable memory usage, and keeps responsive during use.

Actual Behavior

Multiple redundant processes are created on startup. Memory and CPU usage keep climbing continuously, leading to program freeze. I have to force end the processes to close it.

Additional Context

This issue has the same symptoms as existing tracked problems #28680 and #20695 related to memory leak on Windows. I can provide logs or screenshots if required.

Activity

  1. yanmingzhang2000 commented on Jun 14, 2026

    @yanmingzhang2000
    Author
    Image Image
  2. github-actions commented on Jun 14, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • No issue template was used. Please use one of the three required templates: Bug Report, Feature Request, or Question. Each template has required fields that must be filled in.
    • The bug report template requires specific fields (Description, Steps to Reproduce, OpenCode version, Operating System, Terminal, etc.). The current issue is missing structured template fields.
    • Version information is listed as a placeholder ("安装包的版本号" / "the version number of the installer") rather than an actual version.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. changed the title [-]真难搞啊一直无响应[/-] [+]Windows: Process explosion and severe memory leak on startup[/+] on Jun 14, 2026
  4. github-actions commented on Jun 14, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now meets the contributing guidelines and has all the required information. We appreciate you taking the time to improve it.

  5. github-actions commented on Aug 14, 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