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
Windows: NAPI FATAL ERROR crash on v1.15.3 (Bun runtime bug, fix PR exists upstream) #28046
Starting a session on Windows immediately crashes with a Bun NAPI fatal error:
panic(thread 17676): NAPI FATAL ERROR: Error::New napi_create_error
This indicates a bug in Bun, not your code. The panic occurred at:
/home/runner/work/bun/bun/packages/bun/src/bun.js/node/types/napi.zig — line:373 col:32
@Hona FYI — the root cause is a Bun N-API bug (oven-sh/bun#30286) with a fix PR already submitted (oven-sh/bun#30291). The crash only occurs on v1.15.3; downgrading to v1.15.0 works. Recompiling the Windows binary with a Bun version that includes PR #30291 should resolve this.
Can confirm this also hits Linux x86_64 (Fedora Linux Silverblue 44) on opencode v1.17.7 (embedded Bun v1.3.14). In my case it manifested as Illegal instruction (core dumped) / exit 132 (SIGILL) after a 4.5-hour session, with the same NAPI FATAL ERROR: Error::New napi_create_error panic preceding it. The SIGILL likely suggests the bug hit an AVX/AVX2 code path during the NAPI cleanup.
panic: NAPI FATAL ERROR: Error::New napi_create_error
oh no: Bun has crashed. This indicates a bug in Bun, not your code.
https://bun.report/1.3.14/Ba10d9b296mxHugooCwgvypDq+6xpDA0eNrzcwzwVHBzDHH0UXANCvIPslJwLSrKL7Ky8kstV8hLLMiMTy5KTSxJjU8FCQMASAIPgQ
^C
Illegal instruction (core dumped)
CPU: Intel with SSE4.2, POPCNT, AVX, AVX2 — so the illegal instruction is almost certainly from a miscompiled or unsupported code path in the embedded Bun, not from an actual unsupported instruction.
Activity
skywalker-35 commentedon May 17, 2026
skywalker-35 commentedon May 17, 2026
@Hona FYI — the root cause is a Bun N-API bug (oven-sh/bun#30286) with a fix PR already submitted (oven-sh/bun#30291). The crash only occurs on v1.15.3; downgrading to v1.15.0 works. Recompiling the Windows binary with a Bun version that includes PR #30291 should resolve this.
jkemp814 commentedon Jun 15, 2026
Can confirm this also hits Linux x86_64 (Fedora Linux Silverblue 44) on opencode v1.17.7 (embedded Bun v1.3.14). In my case it manifested as
Illegal instruction (core dumped)/exit 132 (SIGILL)after a 4.5-hour session, with the sameNAPI FATAL ERROR: Error::New napi_create_errorpanic preceding it. The SIGILL likely suggests the bug hit an AVX/AVX2 code path during the NAPI cleanup.CPU: Intel with SSE4.2, POPCNT, AVX, AVX2 — so the
illegal instructionis almost certainly from a miscompiled or unsupported code path in the embedded Bun, not from an actual unsupported instruction.github-actions commentedon Aug 15, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.