Skip to content

PyCharm 2026.2 AI Assistant spawns 15-22 opencode.exe acp processes on startup, causing memory exhaustion and crash (0xC0000409) #40693

Closed

Description

@opcwj

Description

When PyCharm 2026.2 starts with the AI Assistant configured to use opencode as an ACP provider, the AI Assistant bulk-creates 15-22 chat sessions during IDE initialization. Each session independently spawns a separate opencode.exe acp process, and each process goes through full initialization (model loading, MCP server connections, etc.). This causes memory usage to spike to 100%, eventually crashing PyCharm with exit code 0xC0000409 (STATUS_STACK_BUFFER_OVERRUN).
The following workarounds are NOT acceptable:

  • Disabling JetBrains Client Protocol (JCP)
  • Uninstalling the ml-llm plugin
    Requirement: keep opencode usable inside the IDE via AI Assistant's ACP integration, while preventing the startup-time chat/process explosion.

Plugins

  • JetBrains AI Assistant (bundled with PyCharm 2026.2) - opencode ACP integration (configured as AI Assistant ACP provider)

OpenCode version

1.18.12

Steps to reproduce

  1. Install PyCharm 2026.2, configure AI Assistant to use opencode as ACP provider
  2. Start PyCharm
  3. Observe in Task Manager: opencode.exe acp process count rapidly grows from 0 to 15-22
  4. Memory usage climbs to near 100%
  5. PyCharm crashes; Event Viewer shows exception code 0xC0000409

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on Aug 5, 2026

    @github-actions
    Contributor

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

    If your issue is specifically about ACP bulk-creating sessions during PyCharm IDE initialization triggering the process explosion, it may be a distinct root cause worth keeping separate. But please review the above issues first to see if they cover your scenario.

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