Skip to content

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

@yanmingzhang2000

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions