Open utensil opened 2 weeks ago
@paperdave Hi, thanks for the triage, do you have any clue why this is happening? Thanks!
Locally, I've bypassed this by manually copying the wasm files and set the urls myself. But I'm looking forward to a fix in the long run.
The same issue is still there in 1.1.27:
Bun v1.1.27 ([`267afa2`](<https://github.com/oven-sh/bun/tree/267afa293483d5ed5f834a6d35350232188e3f98>)) on macos aarch64 [RunCommand]
Segmentation fault at address 0x00000004
- *2 unknown/js code*
- `src.bundler.bundle_v2.LinkerContext.generateChunksInParallel`
- `Thread.PosixThreadImpl.spawn__anon_171961.Instance.entryFn`
<!-- from bun.report: KetL-BpxUb76FE7rDeKl -->
What version of Bun is running?
1.1.25+fe62a6140
What platform is your computer?
Darwin 23.4.0 arm64 arm
What steps can reproduce the bug?
bun install @myriaddreamin/typst.ts @myriaddreamin/typst-ts-web-compiler @myriaddreamin/typst-ts-renderer
bun build typst.ts -outdir output
where
typst.ts
isWhat is the expected behavior?
The WASMs loaded as strings to pass to
$typst.set*Options
functions.What do you see instead?
Bun v1.1.25 (
fe62a61
) on macos aarch64 [BuildCommand]Segmentation fault at address 0x00000004
src.bundler.bundle_v2.LinkerContext.generateChunksInParallel
src.cli.build_command.BuildCommand.exec
src.cli.Cli.start
main
Additional information
Similar to #13183 .