oven-sh / bun

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

Bun crashing while installing packages #12059

Closed PythonicBoat closed 1 month ago

PythonicBoat commented 2 months ago

How can we reproduce the crash?

image

Relevant log output

No response

Stack Trace (bun.report)

Bun v1.1.14 (7c27f3f) on windows x86_64 [InstallCommand]

panic: index out of bounds

PythonicBoat commented 2 months ago

On trying to update bun , I have already tried reinstalling bun on my system after performing a clean uninstall

image

PythonicBoat commented 2 months ago

any updates on this @dylan-conway

dylan-conway commented 2 months ago

Could you share the package.json and bun.lockb that gives you the index out of bounds error? I almost have a fix for bin executable does not exist on disk, but I'm struggling to repro the index out of bounds bug

PythonicBoat commented 2 months ago

sure, @dylan-conway

package.json

{
  "name": "xyzproject",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev --turbo",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@radix-ui/react-icons": "^1.3.0",
    "@react-three/drei": "^9.107.1",
    "@react-three/fiber": "^8.16.8",
    "@vercel/analytics": "^1.3.1",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.1",
    "framer-motion": "^11.2.12",
    "lucide-react": "^0.397.0",
    "next": "^14.2.4",
    "next-auth": "^4.24.7",
    "react": "^18.3.1",
    "react-dom": "^18.3.1",
    "tailwind-merge": "^2.3.0",
    "tailwindcss-animate": "^1.0.7",
    "three": "^0.165.0",
    "three-globe": "^2.31.1"
  },
  "devDependencies": {
    "typescript": "^5.5.2",
    "@types/node": "^20.14.9",
    "@types/react": "^18.3.3",
    "@types/react-dom": "^18.3.0",
    "postcss": "^8.4.38",
    "tailwindcss": "^3.4.4",
    "eslint": "^9.5.0",
    "eslint-config-next": "14.2.4"
  }
}

bun.lockb file

https://mega.nz/file/zmIwmLaZ#oD2rxQmpYASoDeQyIdrgzyQcnjkshlyC5L9X-d-hc3Y

PythonicBoat commented 2 months ago

is this fixed @dylan-conway ? thanks!

dylan-conway commented 1 month ago

Fixed with #12485 in bun v1.1.20