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

Closed
opened 2026-02-16 17:27:14 -05:00 by yindo · 11 comments
Owner

Originally created by @SavageBug on GitHub (Jul 7, 2025).

Originally assigned to: @thdxr on GitHub.

Bun crashed when run Opencode
I reported to Bun, https://github.com/oven-sh/bun/issues/20869#event-18506588669

It appear to be it's very common according to Bun team., as below.
https://github.com/oven-sh/bun/issues/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.

Originally created by @SavageBug on GitHub (Jul 7, 2025). Originally assigned to: @thdxr on GitHub. Bun crashed when run Opencode I reported to Bun, https://github.com/oven-sh/bun/issues/20869#event-18506588669 It appear to be it's very common according to Bun team., as below. https://github.com/oven-sh/bun/issues/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.
yindo added the windows label 2026-02-16 17:27:14 -05:00
yindo closed this issue 2026-02-16 17:27:14 -05:00
Author
Owner

@nektro commented on GitHub (Jul 8, 2025):

btw opening a pr today to fix the issue

@nektro commented on GitHub (Jul 8, 2025): btw opening a pr today to fix the issue
Author
Owner

@nektro commented on GitHub (Jul 8, 2025):

Image
@nektro commented on GitHub (Jul 8, 2025): <img width="800" height="320" alt="Image" src="https://github.com/user-attachments/assets/a3ffe24c-e0b0-456f-8e27-e58686bb8a23" />
Author
Owner

@nektro commented on GitHub (Jul 9, 2025):

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 :)

@nektro commented on GitHub (Jul 9, 2025): 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 :)
Author
Owner

@guyulmaz commented on GitHub (Sep 7, 2025):

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

@guyulmaz commented on GitHub (Sep 7, 2025): 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
Author
Owner

@rekram1-node commented on GitHub (Oct 21, 2025):

Is anyone still running into this?

@rekram1-node commented on GitHub (Oct 21, 2025): Is anyone still running into this?
Author
Owner

@bogorad commented on GitHub (Oct 22, 2025):

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.

@bogorad commented on GitHub (Oct 22, 2025): > 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.
Author
Owner

@rekram1-node commented on GitHub (Oct 22, 2025):

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

@rekram1-node commented on GitHub (Oct 22, 2025): Then ill close for now, if anyone still hits this i will reopen. Thanks!
Author
Owner

@stellar-ssj commented on GitHub (Nov 7, 2025):

Image

i wish i didnt upgrade :(

@stellar-ssj commented on GitHub (Nov 7, 2025): ![Image](https://github.com/user-attachments/assets/c68bddf3-3ad8-48a6-b9b2-3476b848cf1e) i wish i didnt upgrade :(
Author
Owner

@rekram1-node commented on GitHub (Nov 7, 2025):

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

@rekram1-node commented on GitHub (Nov 7, 2025): @stellar-ssj you should prolly downgrade then, is this a constant issue for you?
Author
Owner

@stellar-ssj commented on GitHub (Nov 7, 2025):

@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.

@stellar-ssj commented on GitHub (Nov 7, 2025): > [@stellar-ssj](https://github.com/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.
Author
Owner

@MachineXu commented on GitHub (Jan 20, 2026):

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

@MachineXu commented on GitHub (Jan 20, 2026): [Releases](https://github.com/anomalyco/opencode/releases) [v1.1.27](https://github.com/anomalyco/opencode/releases/tag/v1.1.27) [opencode-windows-x64.zip](https://github.com/anomalyco/opencode/releases/download/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 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#543