Repository navigation
Description
UPDATE: so i built it from source via git and used bun 1.3.6 and it still crashes
Bun v1.3.6 (d530ed9) on windows x86_64 [AutoCommand]
Segmentation fault at address 0x5C22E1E0100
- 1 unknown/js code
interpreter.zig:1248:deinitFromFinalizerZigGeneratedClasses.zig:20066:ShellInterpreterClass__finalizememory:3426:std::unique_ptr<WTF::EmbeddedFixedVector<JSC::WriteBarrier<JSC::Unknown,WTF::RawValueTraits<JSC::Unknown> >,WTF::FastMalloc>,std::default_delete<WTF::EmbeddedFixedVector<JSC::WriteBarrier<JSC::Unknown,WTF::RawValueTraits<JSC::Unknown> >,WTF::FastMalloc> > >::~unique_ptrPreciseAllocation.h:155:JSC::PreciseAllocation::isLowerTierPreciseMarkedSpace.cpp:256:JSC::MarkedSpace::sweepPreciseAllocationsmemory:3461:std::unique_ptr<JSC::IsoSubspace,std::default_delete<JSC::IsoSubspace> >::operator boolHeap.cpp:2222:JSC::Heap::handleNeedFinalizeHeap.cpp:2230:JSC::Heap::handleNeedFinalizeHeap.cpp:1806:JSC::Heap::changePhaseHeap.cpp:1430:JSC::Heap::runCurrentPhaseHeap.cpp:2059:JSC::Heap::collectInMutatorThread::<lambda_2>::operator()ScopedLambda.h:58:WTF::ScopedLambda<void (...)>::operator()CollectingScope.h:43:JSC::CollectingScope::~CollectingScopeHeap.cpp:2039:JSC::Heap::stopIfNecessarySlowHeapInlines.h:224:JSC::Heap::reportExtraMemoryAllocatedtypes.zig:918:deinitAndUnprotect
Features: spawn, standalone_executable, transpiler_cache, tsconfig, tsconfig_paths, workers_spawned, napi_module_register, process_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, abort_signal, dotenv, fetch, http_server, jsc, shell, shell
If this a bug in bun, then how do we force the upgrade or downgrade of the bundled bun that comes inside opencode???
Description
just using base vanilla opencode and no matter what I do it crashes continuously. ive removed every plugin. tried just cli, vscode, no vsocde, powershell, nothing works. its unusable.
Bun v1.3.5 (1e86cebd) Windows x64 (baseline)
Windows v.win10_cux M2.1 OpenCode Zen
CPU: sse42 avx avx2▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Args: "\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin\opencode.exe" "--user-agent=opencode/1.1.26" "--use-system-ca " "--" "-c" tab agents ctrl+p commands
Features: Bun.stderr(4) Bun.stdin(4) Bun.stdout(4) abort_signal(2) dotenv(2) fetch(6) jsc shell(34) spawn(29) standalone_executable transpiler_cache tsconfig workers_spawned(2) napi_module_register process_dlopen
Builtins: "bun:ffi" "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:console" "node:crypto" "node:dns" "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" "node:worker_threads" "undici" "node:v8" "node:http2" "node:diagnostics_channel" "node:dgram"
Elapsed: 57407ms | User: 4984ms | Sys: 578ms
RSS: 0.78GB | Peak: 0.93GB | Commit: 1.00GB | Faults: 302009 | Machine: 17.09GB
panic(thread 16668): Segmentation fault at address 0x32F1F372C20
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:
Bun v1.3.5 (1e86ceb) on windows x86_64_baseline [AutoCommand]
Segmentation fault at address 0x21E42971020
queue.h:81:uv__queue_insert_taillibuv.zig:1371:initprocess.zig:1227:spawnProcessCmd.zig:338:nextYield.zig:115:runJSGlobalObject.zig:484:hasExceptionJSCJSValue.h:753:JSC::ensureStillAliveHere- 2 unknown/js code
llint_entry
Features: spawn, standalone_executable, transpiler_cache, workers_spawned, napi_module_register, process_dlopen, Bun.stderr, Bun.stdin, Bun.stdout, abort_signal, fetch, http_server, jsc, shell, shell
Plugins
none
OpenCode version
1.1.26
Steps to reproduce
just use it normally and itll crash, seriously. happens every few minutes. ram gets chewed up and boom.
Screenshot and/or share link
No response
Operating System
No response
Terminal
No response
Activity
github-actions commentedon Jan 20, 2026
This issue might be a duplicate of existing issues. Please check:
All of these report similar Bun segmentation faults on Windows with continuous crashes and memory issues. These might be related to the same underlying Bun issue on Windows.
Feel free to ignore if your specific case differs from these.
Aaalice233 commentedon Jan 20, 2026
same
zoonosis commentedon Jan 20, 2026
i built it from source using the latest bun and it still crashes
git clone https://github.com/anomalyco/opencode.git
cd opencode
bun install
rekram1-node commentedon Jan 20, 2026
Yeah these crashes come from Bun itself, if you don't mind opening issues in Bun :)
zoonosis commentedon Jan 21, 2026
@rekram1-node I send it to them via the automated crash link that pops up when it crashes. ive also logged it with them on their github. Is there anything I can do in the meantime to stop this? i can only work for like 2 minutes before it falls over. Do I have to use linux or something in the meantime?