Bun keep crashing when run Opencode on Windows (Bash)
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.
btw opening a pr today to fix the issue
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 :)
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
Is anyone still running into this?
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.
Then ill close for now, if anyone still hits this i will reopen. Thanks!
i wish i didnt upgrade :(
@stellar-ssj you should prolly downgrade then, is this a constant issue for you?
@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.
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