oven-sh / bun

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

bun run dev, crashes after running killall bun #15329

Open Tharusha-dev opened 6 hours ago

Tharusha-dev commented 6 hours ago

How can we reproduce the crash?

1) run bun start in background with : nohup bun start > output_1732202307.log 2>&1 &

2) run killall bun in bash 3) run bun run dev

note : bun run build followed by bun start works.

Relevant log output

--- Bun is auto-restarting due to crash [time: 1732242915359] ---
============================================================
Bun v1.1.34 (5e5e7c60) Linux x64
Linux Kernel v6.9.3 | glibc v2.35
CPU: sse42 popcnt avx avx2 avx512
Args: "bun" "run" "--watch" "src/index.ts"
Features: jsc tsconfig 
Elapsed: 4ms | User: 3101ms | Sys: 5934ms
RSS: 1.07GB | Peak: 25.95MB | Commit: 1.07GB | Faults: 0

panic(main thread): Failed to enable File Watcher: ProcessFdQuotaExceeded
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.34/lr15e5e7c6AgggkggCw6tg9C+tr07Cqmj28C0767/D63647Cy8h57Cwpxg2C234/1CA0eNpzS8zMSU1RKMlXSM1LTMpJVXDLzElVCE8sSc5ILbJSCCjKT04tLnZLCSzNL0l0rUhOTU1JTQEA/ggTYg

--- Bun is auto-restarting due to crash [time: 1732242915365] ---

Stack Trace (bun.report)

Bun v1.1.34 (5e5e7c6) on linux x86_64 [RunCommand]

panic: Failed to enable File Watcher: ProcessFdQuotaExceeded

Features: jsc, tsconfig

github-actions[bot] commented 6 hours ago

@Tharusha-dev, thank you for reporting this crash. The latest version of Bun is v1.1.36, but this crash was reported on Bun v1.1.34.

Are you able to reproduce this crash on the latest version of Bun?

bun upgrade

For Bun's internal tracking, this issue is BUN-8RR.

Tharusha-dev commented 6 hours ago

upgraded, the issue is still the same.