oven-sh / bun

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

Windows crash when reading 2 files #10890

Open JonnyBurger opened 1 week ago

JonnyBurger commented 1 week ago

How can we reproduce the crash?


import { createReadStream } from 'fs';

const file = 'iphone-hevc.mov'

const stream = createReadStream(file, {end: 1024});
stream.on('data', () => {});
createReadStream(file );

File:

https://github.com/oven-sh/bun/assets/1629785/15b08b0b-21fc-468d-b32f-8c25f5d2021b

JavaScript/TypeScript code that reproduces the crash?

See above

Relevant log output

Bun v1.1.7 (b0b7db5c) Windows x64
Args: "C:\Users\Jonny\.bun\bin\bun.exe", ".\src\test\parse-video.test.ts"
Features: jsc tsconfig(5) 
Builtins: "bun:main" "node:fs" "node:string_decoder" "node:util/types" 
Elapsed: 58ms | User: 15ms | Sys: 15ms
RSS: 0.14GB | Peak: 0.14GB | Commit: 0.22GB | Faults: 33580

panic(main thread): Internal assertion failure
oh no: Bun has crashed. This indicates a bug in Bun, not your code.

Stack Trace (bun.report)

Bun v1.1.7 (b0b7db5) on windows x86_64 [RunAsNodeCommand]

panic: Internal assertion failure