Skip to content

[Bug] Sidecar crashes with exit code 3221226505 (0xC0000409) on Windows - causes local server to go offline #28413

Closed as not planned

Description

@herbie4106

Description

Environment

  • OS: Windows 10 (10.0.19045)
  • OpenCode Desktop: v1.15.5
  • Plugin: oh-my-openagent@4.0.0

What happens

The sidecar backend process randomly crashes with exit code 3221226505 (0xC0000409 = STATUS_STACK_BUFFER_OVERRUN), causing the local server to go offline. UI shows "prompt send failure". The crash happens both during active use and while idle. Only fix is restarting OpenCode.

Log evidence (main.log)

[2026-05-14 16:15:43] sidecar exited { code: 3221226505 } [2026-05-18 08:09:54] sidecar exited { code: 3221226505 } [2026-05-19 08:06:20] sidecar exited { code: 3221226505 } [2026-05-19 16:01:59] sidecar exited { code: 3221226505 } [2026-05-19 16:26:18] sidecar exited { code: 3221226505 } [2026-05-20 08:57:03] sidecar exited { code: 3221226505 }

Error code

0xC0000409 = STATUS_STACK_BUFFER_OVERRUN
Windows security exception triggered by stack buffer overrun detection in the sidecar process.

Notes

  • Reproducible across v1.14.x → v1.15.5 (not a regression, persistent issue)
  • Crash occurs both during active conversation and while idle
  • Works fine when using OpenCode via VS Code extension (CLI mode) on the same machine

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. github-actions commented on May 20, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • The OpenCode version field is empty (_No response_). Please provide the exact version.
    • The Steps to reproduce field is empty (_No response_). Even if the crash is random/intermittent, please describe the conditions under which it occurs.
    • The Operating System and Terminal template fields are empty — the info is in the Description, but please also fill in the dedicated fields.

    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.

  2. github-actions commented on May 20, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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