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
Can reproduce on Bun 1.1.34 and Windows 10
Edit: The underlying issue which caused this for the library was fixed, although Bun should not be dying like this.
I reproduced this crash with a small example using @napi-rs/canvas v0.1.63, and it's fixed after upgrading to v0.1.64. @AceLikesGhosts if your code still runs into errors even after upgrading, please re-open this issue.
although Bun should not be dying like this.
There isn't really anything better we can do when third-party native code crashes. While in this specific case it may have worked to, say, unwind the stack up to the last JavaScript code and raise some kind of exception:
it's much harder to implement that behavior (especially cross-platform and cross-architecture) than to describe it
we can't assume, after encountering a segmentation fault or an illegal instruction, that the process is in a state fit to continue running. There may be unrecoverable memory corruption, and trying to keep executing code could just crash in a different, harder-to-debug way.
How can we reproduce the crash?
I am experiencing a crash in Bun when using ctx['fillText']("Big smile!", 10, 90) with @napi-rs/canvas while integrating with Elysia on Bun.
Relevant log output
Stack Trace (bun.report)
Bun v1.1.36 (
ededc16
) on windows x86_64 [RunCommand]Illegal instruction at address 0x7FFD829BA420
0x1ea420
in skia.win32-x64-msvc.node0x20e3e9
in skia.win32-x64-msvc.node0x20e3b8
in skia.win32-x64-msvc.node0x17e5b8
in skia.win32-x64-msvc.node0x1eb85
in skia.win32-x64-msvc.node0x1ad29
in skia.win32-x64-msvc.node0x1a94f
in skia.win32-x64-msvc.node0x23ad7
in skia.win32-x64-msvc.node0x3b819
in skia.win32-x64-msvc.nodenapi.cpp:452
:NAPIFunction::call
Features: process_dlopen, Bun.stdin, dotenv, http_server, jsc, transpiler_cache, tsconfig, tsconfig_paths, tsconfig_paths
Sentry Issue: BUN-8TN
The text was updated successfully, but these errors were encountered: