bun icon indicating copy to clipboard operation
bun copied to clipboard

pure virtual method called

Open shybovycha opened this issue 2 years ago • 4 comments

What version of Bun is running?

1.0.0

What platform is your computer?

Ubuntu 20.04 LTS on WSL on x64 Win 11

What steps can reproduce the bug?

  1. have await Bun.file(path).text() calls in the code (example )
  2. run bun run file.ts

What is the expected behavior?

No error, code getting executed

What do you see instead?

STDOUT:

pure virtual method called

exit code: 1

Additional information

Replacing the calls with fsPromise.readFile() or fs.readFileSync() works. Bun.write() works just fine.

shybovycha avatar Sep 08 '23 11:09 shybovycha

This is also something I have experienced on MacOS.

libc++abi: Pure virtual function called!

jdgriffith avatar Sep 28 '23 16:09 jdgriffith

i did not do much digging, but few points:

  1. the issue is still present on v 1.0.3
  2. seems like this might be related to the Blob class not providing an implementation for the text method: 1 2 3

shybovycha avatar Sep 29 '23 00:09 shybovycha

me too on MacOS M1 Bun 1.20.0

imadbz avatar Dec 29 '23 17:12 imadbz

Also experiencing this with v1.0.31, v1.0.33 and v1.1.3 on macOS 14.4 (arm)

lenovouser avatar Mar 17 '24 19:03 lenovouser

I am getting this on bun 1.1.4, intel mac 14.4.1

paschun avatar Apr 23 '24 00:04 paschun