oven-sh / bun

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

Crash while installing package #11530

Open imkhoirularifin opened 1 month ago

imkhoirularifin commented 1 month ago

How can we reproduce the crash?

No response

JavaScript/TypeScript code that reproduces the crash?

No response

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.9 (bb13798) on windows x86_64 [InstallCommand]

panic: Ran callback to install enqueued packages, but there was no task associated with it. 1717 src.install.install.ExtractData{ .url = { 104, 116, 116, 112, 115, 58, 47, 47, 114, 101, 103, 105, 115, 116, 114, 121, 46, 110, 112, 109, 106, 115, 46, 111, 114, 103, 47, 98, 105, 103, 110, 117, 109, 98, 101, 114, 46, 106, 115, 47, 45, 47, 98, 105, 103, 110, 117, 109, 98, 101, 114, 46, 106, 115, 45, 57, 46, 48, 46, 50, 46, 116, 103, 122 }, .resolved = { }, .json_path = { }, .json_buf = { } }

BrandonTing commented 4 weeks ago

Same error happened on my end. I don't have a Windows machine so couldn't reproduce this locally, but this error continuously happen in CICD pipeline.

This is the Repo: https://github.com/BrandonTing/team-version-control You can see errors showing in Github Actions.

Bun v1.1.12 ([`43f0913`](<https://github.com/oven-sh/bun/tree/43f0913c3875cbf260c60868268adc5953b09a80>)) on windows x86_64 [InstallCommand]

**panic**: Ran callback to install enqueued packages, but there was no task associated with it. 715 src.install.install.ExtractData{ .url = { 104, 116, 116, 112, 115, 58, 47, 47, 114, 101, 103, 105, 115, 116, 114, 121, 46, 110, 112, 109, 106, 115, 46, 111, 114, 103, 47, 64, 116, 97, 117, 114, 105, 45, 97, 112, 112, 115, 47, 97, 112, 105, 47, 45, 47, 97, 112, 105, 45, 49, 46, 53, 46, 54, 46, 116, 103, 122 }, .resolved = {  }, .json_path = {  }, .json_buf = {  } }

- [`output.zig:833`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/output.zig#L833>): `printError`
- [`writer.zig:28`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/deps/zig/lib/std/io/writer.zig#L28>): `print`
- [`hash_map.zig:1097`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/deps/zig/lib/std/hash_map.zig#L1097>): `fetchRemove`
- [`fmt.zig:482`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/deps/zig/lib/std/fmt.zig#L482>): `formatType`
- [`install.zig:5840`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/install/install.zig#L5840>): `runTasks`
- [`install.zig:10031`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/install/install.zig#L10031>): `installPackageWithNameAndResolution`
- [`event_loop.zig:1875`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/bun.js/event_loop.zig#L1875>): `tick`
- [`filter_run.zig:431`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/cli/filter_run.zig#L431>): `install`
- [`cli.zig:1450`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/cli.zig#L1450>): `start`
- [`cli.zig:62`](<https://github.com/oven-sh/bun/blob/43f0913c3875cbf260c60868268adc5953b09a80/src/cli.zig#L62>): `start`

<!-- from bun.report: cZaH0WgKEXBAWFJmyTzq -->