You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Opencode keeps crashing despite updating bun to latest version #30424
Crash 1 is the same NAPI finalizer panic already investigated in #30286 and fixed in PR #30291 ("napi: clear pending exceptions between
finalizers during env cleanup"). Root cause per that PR:
NapiEnv::cleanup did not clear pending exceptions between finalizers
— a throw from one finalizer bled into the next.
napi_create_error refused to run with a pending VM exception,
unlike Node.js. Combined with napi_is_exception_pending skipping
the VM check during cleanup, node-addon-api's Error::New(env)
tripped NAPI_FATAL_IF_FAILED → the panic.
Feature fingerprints match: napi_module_register, process_dlopen, workers_spawned, workers_terminated — a native module (tree-sitter
is commonly used inside opencode) throwing during worker shutdown.
Crash 2 is a C++ exception caught while process.exit() runs from a
microtask — consistent with the same shutdown scenario where a thrown
value escapes into JSC's microtask queue during worker exit.
Both crash reports originate from the same user's opencode session and
share the same feature fingerprint — consistent with the same root cause.
Next step
Track under #30286 / PR #30291. No new work needed — close as duplicate
once that PR merges.
If you can provide a minimal reproduction (exact command, Bun version, platform), please update the issue.
Automated investigation. Reopen with more context if this is wrong.
Activity
robobun commentedon May 9, 2026
Unable to reproduce this.
Crash reports decoded
Bun version:
1.3.13(bf2e2ce) on macOS aarch64 [StandaloneExecutable]Crash 1
Crash 2
Analysis
Crash 1 is the same NAPI finalizer panic already investigated in
#30286 and fixed in PR #30291 ("napi: clear pending exceptions between
finalizers during env cleanup"). Root cause per that PR:
NapiEnv::cleanupdid not clear pending exceptions between finalizers— a throw from one finalizer bled into the next.
napi_create_errorrefused to run with a pending VM exception,unlike Node.js. Combined with
napi_is_exception_pendingskippingthe VM check during cleanup, node-addon-api's
Error::New(env)tripped
NAPI_FATAL_IF_FAILED→ the panic.Feature fingerprints match:
napi_module_register,process_dlopen,workers_spawned,workers_terminated— a native module (tree-sitteris commonly used inside opencode) throwing during worker shutdown.
Crash 2 is a C++ exception caught while
process.exit()runs from amicrotask — consistent with the same shutdown scenario where a thrown
value escapes into JSC's microtask queue during worker exit.
Both crash reports originate from the same user's opencode session and
share the same feature fingerprint — consistent with the same root cause.
Next step
Track under #30286 / PR #30291. No new work needed — close as duplicate
once that PR merges.
If you can provide a minimal reproduction (exact command, Bun version, platform), please update the issue.
Automated investigation. Reopen with more context if this is wrong.
github-actions commentedon May 9, 2026
Found 3 possible duplicate issues:
This issue will be automatically closed as a duplicate in 3 days.
🤖 Generated with Claude Code