opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Bun keep crashing when run Opencode on Windows (Bash)

Open SavageBug opened this issue 1 year ago • 11 comments

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.

SavageBug avatar Jul 08 '25 00:07 SavageBug

btw opening a pr today to fix the issue

nektro avatar Jul 09 '25 00:07 nektro

Image

nektro avatar Jul 09 '25 00:07 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 :)

nektro avatar Jul 09 '25 04:07 nektro

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 avatar Sep 07 '25 12:09 guyulmaz

Is anyone still running into this?

rekram1-node avatar Oct 21 '25 20:10 rekram1-node

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 avatar Oct 22 '25 11:10 bogorad

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

rekram1-node avatar Oct 22 '25 14:10 rekram1-node

Image

i wish i didnt upgrade :(

stellar-ssj avatar Nov 07 '25 15:11 stellar-ssj

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

rekram1-node avatar Nov 07 '25 15:11 rekram1-node

@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 avatar Nov 07 '25 16:11 stellar-ssj

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 avatar Jan 21 '26 00:01 MachineXu