Skip to content

Bun keep crashing when run Opencode on Windows (Bash) #750

Closed

Description

@SavageBug

Bun crashed when run Opencode
I reported to Bun, oven-sh/bun#20869 (comment)

It appear to be it's very common according to Bun team., as below.
oven-sh/bun#16551

I am on Win 11 x64, it looks like it's fine on Mac and Linux.
Can we have other option rather than Bun for Windows user.

Activity

  1. nektro commented on Jul 9, 2025

    @nektro

    btw opening a pr today to fix the issue

  2. nektro commented on Jul 9, 2025

    @nektro
    Image
  3. self-assigned this
    on Jul 9, 2025
  4. nektro commented on Jul 9, 2025

    @nektro

    pr i mentioned above just merged and will be available in canary soon and Bun v1.2.19. if you run into any further issues don't hesitate to open another issue and let us (bun) know :)

  5. guyulmaz commented on Sep 7, 2025

    @guyulmaz

    Bun v1.2.19 (aad3abea) Windows x64 (baseline) ┃
    Windows v.win10_cu interrupt opencode Grok Code Fast 1
    CPU: sse42 avx avx2 avx512
    Args: "C:\Users\xxx\AppData\Local\Microsoft\WinGet\Links\opencode.exe" tab ┃ BUILD AGENT
    Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(5) http_server jsc shell(2) spawn(3) standalone_executable workers_spawned
    Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:fs" "node:fs/promises" "node:module" "node:net" "node:os" "node:path" "node:process" "node:readline" "node:stream" "node:tty" "node:url" "node:util"
    Elapsed: 282348ms | User: 1234ms | Sys: 515ms
    RSS: 0.45GB | Peak: 0.45GB | Commit: 0.60GB | Faults: 171332 | Machine: 16.86GB

    panic(main thread): integer overflow
    oh no: Bun has crashed. This indicates a bug in Bun, not your code.

    To send a redacted crash report to Bun's team,
    please file a GitHub issue using the link below:

    https://bun.report/1.2.19/e_1aad3abegEz/7r/fw2qpN8x6tSmnltK01m5H6+jpE410wgBq1nkqB__6+i+wCA0eNrLzCtJTU8tUsgvSy1Ky8kvBwA2xQaD
    PS C:\ozel\kod\AspireApp1> opencode -version
    0.6.4

  6. rekram1-node commented on Oct 21, 2025

    @rekram1-node
    Contributor

    Is anyone still running into this?

  7. bogorad commented on Oct 22, 2025

    @bogorad

    Is anyone still running into this?

    I used to see a couple of those with previous versions, but as of 0.15.13 is't all good. win11/amd64 with both wezterm and ms-terminal-preview -- works fine.

  8. rekram1-node commented on Oct 22, 2025

    @rekram1-node
    Contributor

    Then ill close for now, if anyone still hits this i will reopen. Thanks!

  9. stellar-ssj commented on Nov 7, 2025

    @stellar-ssj

    Image

    i wish i didnt upgrade :(

  10. rekram1-node commented on Nov 7, 2025

    @rekram1-node
    Contributor

    @stellar-ssj you should prolly downgrade then, is this a constant issue for you?

  11. stellar-ssj commented on Nov 7, 2025

    @stellar-ssj

    @stellar-ssj you should prolly downgrade then, is this a constant issue for you?

    yeah i am going to downgrade back to where i was, unfortunately 1.0.39 has rendered OC useless for me - nothing really works, tool calls are broken, constant aborts and syntax errors, the UI gets messed up if i scroll.. its bad.

  12. MachineXu commented on Jan 21, 2026

    @MachineXu

    Releases v1.1.27
    opencode-windows-x64.zip

    PS E:\user\Download\opencode-windows-x64> .\opencode.exe -v
    ============================================================
    Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
    Windows v.win10_cu
    CPU: sse42 avx avx2
    Args: "E:\xuzhaoqiang\Download\opencode-windows-x64\opencode.exe" "--user-agent=opencode/1.1.27" "--use-system-ca " "--" "-v"
    Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch jsc standalone_executable
    Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:events" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:querystring" "node:readline" "node:stream" "node:string_decoder" "node:timers" "node:timers/promises" "node:tls" "node:tty" "node:url" "node:util" "undici" "node:v8" "node:dgram"
    Elapsed: 1288ms | User: 2593ms | Sys: 375ms
    RSS: 0.38GB | Peak: 0.38GB | Commit: 0.49GB | Faults: 114905 | Machine: 8.45GB
    
    panic(main thread): Segmentation fault at address 0x5549740AAAA
    oh no: Bun has crashed. This indicates a bug in Bun, not your code.
    
    To send a redacted crash report to Bun's team,
    please file a GitHub issue using the link below:
    
     https://bun.report/1.3.5/ea11e86cebEugogCCcLHShield64.dll4oyhCCcLHShield64.dlly2xhCCcLHShield64.dllugoOCcLHShield64.dllmhjTCcLHShield64.dllwgVCcLHShield64.dlls45tCCcLHShield64.dllizxfCcLHShield64.dll66mfCcLHShield64.dlloyyyB+52nuBu32mgB61/8f__0shkwCA2o1Ct1q93oD
    
    
  13. added a commit that references this issue on May 12, 2026
    ab2a20c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions