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

After quitting bun with ctrl + c Powershell becomes unusable #9354

Closed
Niki2k1 opened this issue Mar 11, 2024 · 6 comments
Closed

After quitting bun with ctrl + c Powershell becomes unusable #9354

Niki2k1 opened this issue Mar 11, 2024 · 6 comments
Labels
bug Something isn't working windows An issue that only occurs on Windows

Comments

@Niki2k1
Copy link

Niki2k1 commented Mar 11, 2024

What version of Bun is running?

1.0.30-canary.40+44959e682

What platform is your computer?

Microsoft Windows NT 10.0.22631.0 x64

What steps can reproduce the bug?

  1. Run a script in any project with bun run xy
  2. Press CTRL + C
  3. Try to execute the same script again bun run xy
  4. See that powershell hangs
  5. Press CTRL + C Again
  6. Now if you press any character only the second press gets recognized

What is the expected behavior?

When CTRL + C to exit a script I want to resuse the terminal afterwards.

What do you see instead?

The terminal hangs, and if ctr + c again I cannot execute something because only each second keypress gets recognized.

Additional information

No response

@Niki2k1 Niki2k1 added the bug Something isn't working label Mar 11, 2024
@Electroid Electroid added the windows An issue that only occurs on Windows label Mar 11, 2024
@paperdave
Copy link
Collaborator

interesting. can you try this again in canary.42? maybe this is a result of the signal handling changes.

@Niki2k1
Copy link
Author

Niki2k1 commented Mar 11, 2024

Thanks for you help 🙏
I tried upgrading, but after the upgrade I can't execute the scripts anymore 😅

PS C:\Users\████████\code\███████> bun run dev
$ nuxt dev
error: Failed to due to error bunsh: No such file or directory:

And when I tried to reinstall packages I got hit with:

PS C:\Users\███████\code\███████> bun install
[0.99ms] ".env"
bun install v1.0.30-canary.42 (c9fe57fa)
  📦 Installing [1018/994]
uh-oh: incorrect alignment
bun will crash now 😭😭😭

----- bun meta -----
Bun v1.0.30-canary.42 (c9fe57fa) Windows x64
InstallCommand: dotenv
Elapsed: 16259ms | User: 125ms | Sys: 4453ms
RSS: 122.36MB | Peak: 122.36MB | Commit: 0.15GB | Faults: 30207
----- bun meta -----

0   00007FF6EB71FE68
1   ???
2   ???
3   ???
4   ???
5   ???
6   ???
7   ???
8   ???
9   ???
10  ???
11  ???
12  ???
13  ???
14  ???

Search GitHub issues https://bun.sh/issues or join in #windows channel in https://bun.sh/discord

thread 19440 panic: incorrect alignment
???:?:?: 0x7ff6ea900fd0 in ??? (bun.exe)
???:?:?: 0x7ff6eb05fd43 in ??? (bun.exe)
???:?:?: 0x7ff6eb05fc81 in ??? (bun.exe)
???:?:?: 0x7ff6eb054833 in ??? (bun.exe)
???:?:?: 0x7ff6eb0541cf in ??? (bun.exe)
???:?:?: 0x7ff6ea2a833b in ??? (bun.exe)
???:?:?: 0x7ff6ea2f3edb in ??? (bun.exe)
???:?:?: 0x7ff6ea2ee411 in ??? (bun.exe)
???:?:?: 0x7ff6ea3a058a in ??? (bun.exe)
???:?:?: 0x7ff6ea0e157f in ??? (bun.exe)
???:?:?: 0x7ff6ecbd62e3 in ??? (bun.exe)
???:?:?: 0x7ffbc8c4257c in ??? (KERNEL32.DLL)
???:?:?: 0x7ffbc9faaa57 in ??? (ntdll.dll)

@Niki2k1 Niki2k1 changed the title After quitting bun with ctrl + c the powerhsell becomes unusable After quitting bun with ctrl + c the Powershell becomes unusable Mar 11, 2024
@Niki2k1 Niki2k1 changed the title After quitting bun with ctrl + c the Powershell becomes unusable After quitting bun with ctrl + c Powershell becomes unusable Mar 11, 2024
@zanhk
Copy link

zanhk commented Mar 16, 2024

Windows, similar error

bun install
bun install v1.0.32-canary.13 (83863c27)
  ⚙️  sharp [1/3]
uh-oh: incorrect alignment
bun will crash now 😭😭😭

----- bun meta -----
Bun v1.0.32-canary.13 (83863c27) Windows x64
InstallCommand: bunfig extracted_packages
Elapsed: 65675ms | User: 38218ms | Sys: 5203ms
RSS: 0.58GB | Peak: 0.58GB | Commit: 0.82GB | Faults: 290384
----- bun meta -----

0   00007FF6B1AEB618
1   ???
2   ???
3   ???
4   ???
5   ???
6   ???
7   ???
8   ???
9   ???
10  ???
11  ???
12  ???
13  ???
14  ???

Search GitHub issues https://bun.sh/issues or join in #windows channel in https://bun.sh/discord

thread 20920 panic: incorrect alignment
???:?:?: 0x7ff6b0cc4bc4 in ??? (bun.exe)
???:?:?: 0x7ff6b142b59f in ??? (bun.exe)
???:?:?: 0x7ff6b142b27d in ??? (bun.exe)
???:?:?: 0x7ff6b141ffe3 in ??? (bun.exe)
???:?:?: 0x7ff6b141f97f in ??? (bun.exe)
???:?:?: 0x7ff6b0668e5b in ??? (bun.exe)
???:?:?: 0x7ff6b06b4ce7 in ??? (bun.exe)
???:?:?: 0x7ff6b06aec71 in ??? (bun.exe)
???:?:?: 0x7ff6b075b2ca in ??? (bun.exe)
???:?:?: 0x7ff6b04a157f in ??? (bun.exe)
???:?:?: 0x7ff6b2fa1713 in ??? (bun.exe)
???:?:?: 0x7ffeb278257c in ??? (KERNEL32.DLL)
???:?:?: 0x7ffeb42aaa57 in ??? (ntdll.dll)
"dependencies": {
		"@astrojs/cloudflare": "^9.1.0",
		"@astrojs/markdoc": "^0.9.2",
		"@astrojs/react": "^3.1.0",
		"@astrojs/rss": "^4.0.5",
		"@astrojs/sitemap": "^3.1.1",
		"@astrojs/tailwind": "^5.1.0",
		"@cloudflare/pages-plugin-mailchannels": "^0.1.2",
		"@keystatic/astro": "^5.0.0",
		"@keystatic/core": "^0.5.3",
		"astro": "^4.5.3",
		"gsap": "npm:@gsap/business@^3.12.5",
		"react": "^18.2.0",
		"react-dom": "^18.2.0"
	},
	"devDependencies": {
		"@astrolib/seo": "1.0.0-beta.5",
		"@biomejs/biome": "1.6.1",
		"@cloudflare/workers-types": "^4.20240312.0",
		"@iconify-json/ic": "^1.1.17",
		"@iconify-json/mdi": "^1.1.64",
		"@iconify-json/solar": "^1.1.9",
		"@tailwindcss/aspect-ratio": "^0.4.2",
		"@tailwindcss/forms": "^0.5.7",
		"@tailwindcss/typography": "^0.5.10",
		"@types/react": "^18.2.65",
		"@types/react-dom": "^18.2.22",
		"@vite-pwa/astro": "^0.3.0",
		"@vite-pwa/assets-generator": "^0.2.4",
		"astro-icon": "^1.1.0",
		"tailwindcss": "^3.4.1",
		"workbox-window": "^7.0.0"
	},
	"pnpm": {
		"overrides": {
			"gsap": "npm:@gsap/business@^3.12.5"
		}
	}

@avvo-na
Copy link

avvo-na commented Apr 3, 2024

Hvaing a similar issue as well!

@UnrilWever
Copy link

UnrilWever commented Apr 4, 2024

Got the same error "error: Failed due to error: bunsh: No such file or directory:" when running scripts in windows.

@Niki2k1
Copy link
Author

Niki2k1 commented Apr 8, 2024

Seems fixed in 1.1.3. I didn't had any of the other errors as well

@Niki2k1 Niki2k1 closed this as completed Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working windows An issue that only occurs on Windows
Projects
None yet
Development

No branches or pull requests

6 participants