oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
71.81k stars 2.56k forks source link

Crashed on Windows when using node-hid library #11878

Open lingrottin opened 3 weeks ago

lingrottin commented 3 weeks ago

How can we reproduce the crash?

The crash happens when I tried to run some node.js code from Adafruit's TinyUSB Arduino library, which showcases how the associated code works. Reproduction steps:

  1. Clone the repository at https://github.com/adafruit/Adafruit_TinyUSB_Arduino
  2. cd into examples/HID/hid_generic_inout
  3. (as follow)
    bun install -g windows-build-tools
    bun install
    bun hid_test,js

Relevant log output

Bun v1.1.12 (43f0913c) Windows x64
Args: "C:\Users\Tienyu Yang\.bun\bin\bun.exe" "hid_test.js"
Features: jsc
Builtins: "bun:main" "node:events" "node:fs" "node:os" "node:path" "node:string_decoder" "node:util" "node:util/types"
Elapsed: 52ms | User: 0ms | Sys: 15ms
RSS: 104.24MB | Peak: 104.24MB | Commit: 117.43MB | Faults: 25686

panic(main thread): Segmentation fault at address 0x0

Stack Trace (bun.report)

Bun v1.1.12 (43f0913) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x00000000

lingrottin commented 3 weeks ago

Bun v1.1.13 appeared the same question, with stack trace presented below:
Bun v1.1.13 (bd6a605) on windows x86_64 [AutoCommand]

Segmentation fault at address 0x00000000