oven-sh / bun

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

panic(main thread): cast causes pointer to be null #15104

Open JayLovesProgramming opened 2 weeks ago

JayLovesProgramming commented 2 weeks ago

How can we reproduce the crash?

Create an RTMP server for live streaming in js and run it for no longer than 5 minutes. If I had to guess I would say this isn't a Bun issue but I was told otherwise by the log message.

The last RTMP disconnect:

12/11/2024 14:40:36 4540 [INFO] [rtmp disconnect] id=3ZPDSSHK [NodeEvent on doneConnect] id=3ZPDSSHK

Relevant log output

Bun v1.1.33 (247456b6) Windows x64
Windows v.win10_fe
CPU: sse42 avx avx2
Args: "C:\Users\jayxw\AppData\Roaming\npm\node_modules\bun\bin\bun.exe" "rtmp.js"   
Features: Bun.stdin fetch http_server(2) jsc spawn(4) transpiler_cache tsconfig(9)  
Builtins: "bun:main" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:events" "node:fs" "node:http" "node:https" "node:net" "node:os" "node:path" "node:querystring" "node:stream" "node:string_decoder" "node:tls" "node:tty" "node:url" "node:util" "node:util/types" "node:zlib" "ws" "node:http2" 
Elapsed: 147566ms | User: 1609ms | Sys: 687ms
RSS: 0.27GB | Peak: 0.27GB | Commit: 0.33GB | Faults: 105703

Stack Trace (bun.report)

Bun v1.1.33 (247456b) on windows x86_64 [AutoCommand]

panic: cast causes pointer to be null

Features: dotenv, fetch, http_server, jsc, tsconfig

Sentry Issue: BUN-4YM

github-actions[bot] commented 2 weeks ago

@JayLovesProgramming, the latest version of Bun is v1.1.34, but this crash was reported on Bun v1.1.33.

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

bun upgrade
JayLovesProgramming commented 2 weeks ago

Error still occurs on latest version of Bun šŸ‘

github-actions[bot] commented 2 weeks ago

Hello @JayLovesProgramming. Please provide a minimal reproduction using a GitHub repository, Replit, CodeSandbox, or provide a bulleted list of commands to run that reproduce this issue. Issues marked with needs repro will be closed if they have no activity within 3 days.