bun icon indicating copy to clipboard operation
bun copied to clipboard

Reading promise from prisma.find causes STATUS_HEAP_CORRUPTION (code 0xC0000374)

Open Arctomachine opened this issue 1 year ago • 0 comments

What version of Bun is running?

1.0.26

What platform is your computer?

Microsoft Windows NT 10.0.19045.0 x64

What steps can reproduce the bug?

Init project, install prisma, create schema, migrate schema. Then execute following code

import { PrismaClient } from '@prisma/client'

const prismaClient = new PrismaClient()

onInit().then(() => console.log('On init done'))

async function onInit () {
	const results = await prismaClient.article.findMany(
		{ where: { title: 'test' } })
	console.log('results', results)
}

What is the expected behavior?

2 outputs:

results []
On init done

What do you see instead?

0 outputs, 1 exit message, process stops even in watch mode:

Process finished with exit code -1073740940 (0xC0000374)

Additional information

No response

Arctomachine avatar Feb 09 '24 21:02 Arctomachine