You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While using TypeORM, the operations seem to "work" however after a certain point the process hangs and does not finish. This is quickly visible iterating and bulk inserting records into the sqlite database using TypeORM.
while executing the typescript file with bun bun run typeorm-example.ts or the transpiled javascript (using tsc or bun) with bun bun run dist/typeorm-example.js, the output begins as expected, but the freezes and does not print more than X iterations. Seems it gets farther when running the transpiled version instead of the TS directly.
With the transpiled JS, it gets 9, 11, or 16 iterations before freezing. With the TS directly, it usually chokes around 3 or 4 iterations. Once it stops, it makes no further progress, even if left for minutes.
> bun run typeorm-example.ts
1000
2000
3000
Additional information
No response
The text was updated successfully, but these errors were encountered:
I'm able to reproduce a crash when sqlite3 is not installed. The crash becomes an error in #12246 (likely due to WebKit/WebKit#30298), but I'm not yet able to reproduce the hanging.
What version of Bun is running?
1.1.17+bb66bba1b
What platform is your computer?
Darwin 23.2.0 arm64 arm
What steps can reproduce the bug?
While using TypeORM, the operations seem to "work" however after a certain point the process hangs and does not finish. This is quickly visible iterating and bulk inserting records into the sqlite database using TypeORM.
typeorm-example.ts:
tsconfig:
What is the expected behavior?
the output of the script above should be 50 console.logs incrementing by 1000 each time (the number of records), followed by a Time taken.
while either using
ts-node
or transpiring to to a javascript file and runningnode dist/typeorm-example.js
the output results in the expected.What do you see instead?
while executing the typescript file with bun
bun run typeorm-example.ts
or the transpiled javascript (usingtsc
orbun
) with bunbun run dist/typeorm-example.js
, the output begins as expected, but the freezes and does not print more than X iterations. Seems it gets farther when running the transpiled version instead of the TS directly.With the transpiled JS, it gets 9, 11, or 16 iterations before freezing. With the TS directly, it usually chokes around 3 or 4 iterations. Once it stops, it makes no further progress, even if left for minutes.
Additional information
No response
The text was updated successfully, but these errors were encountered: