Closed tiagorangel2011 closed 2 weeks ago
@tiagorangel2011, the latest version of Bun is v1.1.20, but this crash was reported on Bun v1.1.17.
Are you able to reproduce this crash on the latest version of Bun?
bun upgrade
Yes, the crash is still there after upgrading.
1 | var robotjs = require('./build/Release/robotjs.node');
^
TypeError: LoadLibrary failed: A dynamic link library (DLL) in
at C:\<path>\node_modules\robotjs\index.js:1:5
Bun v1.1.20 (Windows x64)
============================================================
Bun v1.1.20 (ae194892) Windows x64
CPU: sse42 avx avx2
Args: "C:\Users\HUAWEI\.bun\bin\bun.exe" "run" "index.js"
Features: jsc tsconfig(2)
Builtins: "bun:main" "node:timers"
Elapsed: 625ms | User: 46ms | Sys: 93ms
RSS: 100.49MB | Peak: 100.49MB | Commit: 0.14GB | Faults: 24792
panic(main thread): Segmentation fault at address 0x7FFAF0AB976C
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.1.20/wr1ae19489AiggggC_CU\ntdll.dll+k/gBCU\ntdll.dll6wxbCU\ntdll.dll8vsbCa\KERNEL32.DLL21gR66wgjDonxgjDsuz5Fk1f+tphHA20//Bpp0xqP
Same thing with the cap lib
Bun v1.1.20 (ae19489
) on windows x86_64 [AutoCommand]
Segmentation fault at address 0x7FF9BF4C3DB0
0x5177c
in ntdll.dll0x514d7
in ntdll.dll0x5117d
in ntdll.dll0x17fab
in KERNEL32.DLLexit.cpp:137
: exit_or_terminate_process
exit.cpp:274
: common_exit
Global.zig:123
: exitWide
Global.zig:106
: exit
javascript.zig:1132
: eventLoop
RobotJS uses V8 C++ APIs
@190n is actively implementing support for V8 C++ APIs in Bun
Please follow along in #4290
Duplicate of #4290
How can we reproduce the crash?
package.json
index.js
jsconfig.json
Relevant log output
Stack Trace (bun.report)
Bun v1.1.17 (
bb66bba
) on windows x86_64 [RunCommand]Segmentation fault at address 0x7FFAB780976C
0x83e4f
in ntdll.dll0x6e30d
in ntdll.dll0x6d8fe
in ntdll.dll0x4415b
in KERNEL32.DLL0xc2ca4
in ucrtbase.dll0x9bbca
in ucrtbase.dllGlobal.zig:123
:exitWide
Global.zig:106
:exit
bun_js.zig:313
:start