Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't install @livekit/agents-plugin-openai #16470

Open
ArnoChenFx opened this issue Jan 17, 2025 · 2 comments · May be fixed by #16489
Open

can't install @livekit/agents-plugin-openai #16470

ArnoChenFx opened this issue Jan 17, 2025 · 2 comments · May be fixed by #16489
Labels
bun install Something that relates to the npm-compatible client crash An issue that could cause a crash windows An issue that is known to occur on Windows

Comments

@ArnoChenFx
Copy link

package.json file

{
  "name": "realtime-livekit",
  "module": "index.ts",
  "type": "module",
  "devDependencies": {
    "@types/bun": "latest"
  },
  "peerDependencies": {
    "typescript": "^5.0.0"
  },
  "dependencies": {
    "@livekit/agents": "^0.6.2",
    "@livekit/agents-plugin-openai": "^0.8.1"
  }
}

How can we reproduce the crash?

bun i @livekit/agents-plugin-openai

Relevant log output

Stack Trace (bun.report)

Bun v1.1.44 (ec11ea4) on windows x86_64 [InstallCommand]

panic: reached unreachable code

@ArnoChenFx ArnoChenFx added the crash An issue that could cause a crash label Jan 17, 2025
@github-actions github-actions bot added the windows An issue that is known to occur on Windows label Jan 17, 2025
Copy link
Contributor

Thank you for reporting this crash.

For Bun's internal tracking, this issue is BUN-A2E.

@Jarred-Sumner
Copy link
Collaborator

Repro:

 bun-debug add abc@^0.0.0x
Bun Debug v1.1.42 (c03d799c) macOS Silicon
macOS v15.2
Args: "bun-debug" "add" "abc@^0.0.0x"
Elapsed: 26ms | User: 30ms | Sys: 9ms
RSS: 44.91MB | Peak: 44.91MB | Commit: 5.83MB | Faults: 63

panic(main thread): reached unreachable code
/Users/jarred/Code/bun/src/install/semver.zig:1644:37: 0x10129494f in parse (bun-debug)
                            else => unreachable,
                                    ^
/Users/jarred/Code/bun/src/install/semver.zig:2637:51: 0x10122f7e3 in parse (bun-debug)
                const parse_result = Version.parse(sliced.sub(input[i..]));
                                                  ^
/Users/jarred/Code/bun/src/install/dependency.zig:933:47: 0x101232007 in parseWithTag (bun-debug)
            const version = Semver.Query.parse(
                                              ^
/Users/jarred/Code/bun/src/install/dependency.zig:876:24: 0x10122e41b in parseWithOptionalTag (bun-debug)
    return parseWithTag(
                       ^
/Users/jarred/Code/bun/src/install/install.zig:10425:62: 0x1016a6b4f in parseWithError (bun-debug)
                var version = Dependency.parseWithOptionalTag(
                                                             ^
/Users/jarred/Code/bun/src/install/install.zig:10377:34: 0x10132e4d3 in parse (bun-debug)
            return parseWithError(allocator, pm, log, positionals, update_requests, subcommand, true) catch Global.crash();
                                 ^
/Users/jarred/Code/bun/src/install/install.zig:10711:32: 0x101395343 in updatePackageJSONAndInstallWithManager__anon_84584 (bun-debug)
            UpdateRequest.parse(ctx.allocator, manager, ctx.log, manager.options.positionals[1..], &update_requests, manager.subcommand);
                               ^
/Users/jarred/Code/bun/src/install/install.zig:10551:90: 0x1013ddf1b in updatePackageJSONAndInstall (bun-debug)
            inline else => |log_level| try manager.updatePackageJSONAndInstallWithManager(ctx, original_cwd, log_level),
                                                                                         ^
/Users/jarred/Code/bun/src/install/install.zig:9243:36: 0x1013de74b in updatePackageJSONAndInstallCatchError (bun-debug)
        updatePackageJSONAndInstall(ctx, subcommand) catch |err| {
                                   ^
/Users/jarred/Code/bun/src/install/install.zig:9232:50: 0x1013de85b in add (bun-debug)
        try updatePackageJSONAndInstallCatchError(ctx, .add);
                                                 ^

fish: Job 1, 'bun-debug add abc@^0.0.0x' terminated by signal SIGTRAP (Trace or breakpoint trap)

Assertion failure caused by assuming that a Semver.Version cannot contain a x at the end

@DonIsaac DonIsaac added the bun install Something that relates to the npm-compatible client label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bun install Something that relates to the npm-compatible client crash An issue that could cause a crash windows An issue that is known to occur on Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants